Skip to content

Commit

Permalink
Drop unused dependencies
Browse files Browse the repository at this point in the history
This makes our binary 56KB in size. Yay for small binaries!
  • Loading branch information
walles committed Nov 4, 2023
1 parent ce7c0e8 commit 2e71f39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions devbin/make-executable-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ echo 'import px.px; px.px.main()' >"$WORKDIR/__main__.py"
cp -a "$ROOTDIR/px" "$WORKDIR/"

# Dependencies, must match list in requirements.txt
cp -a "$ENVDIR"/lib/python*/site-packages/dateutil "$WORKDIR/"
cp -a "$ENVDIR"/lib/python*/site-packages/six.py "$WORKDIR/"
#
# NOTE: This section intentionally left blank

# Tidy up a bit
find "$WORKDIR" -name '*.pyc' -delete
Expand Down
10 changes: 2 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,5 @@
# NOTE: If you change something here, you must update make-executable-zip.sh as
# well, search for "requirements.txt"!

# NOTE: We don't use six ourselves, but python-dateutil does. Do remove once
# we're on a Python-3-only python-dateutil!
six

# 2.6.1 is what we started out using, older is probably fine
# as well but I don't know *how* old. If anybody wants older,
# let me know and we'll see. /[email protected] 2019mar11
python-dateutil >= 2.6.1
# NOTE: This file intentionally left blank because we don't have any third-party
# runtime dependencies.
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ depends = version.py ruff-format
deps =
pytest == {[tox]pytest_version}
pytest-avoidance == 0.3.0
python-dateutil >= 2.6.1
-r requirements.txt
commands =
pytest --durations=10 --color=yes tests
Expand Down

0 comments on commit 2e71f39

Please sign in to comment.