Skip to content

Commit

Permalink
chore: Add makefile rule to bundle app with pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Dec 6, 2019
1 parent 9fa8f53 commit 7eabbb4
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 16 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -6,6 +6,10 @@ PY_SRC := src/ tests/ scripts/*.py docs/conf.py
build: ## Build sdist and wheel.
poetry build

.PHONY: bundle
bundle: ## Build one-file executable.
poetry run bash -c 'pyinstaller -F -n aria2p -p $$VIRTUAL_ENV/lib/python3.6/site-packages src/aria2p/__main__.py'

.PHONY: clean
clean: clean-tests ## Delete temporary files.
@rm -rf build 2>/dev/null
Expand Down
54 changes: 38 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Expand Up @@ -33,6 +33,7 @@ flake8 = "^3.6"
ipython = "^7.2"
isort = { version = "^4.3", extras = ["pyproject"] }
jinja2-cli = "^0.7.0"
pyinstaller = "^3.5"
pylint = { git = "https://github.com/PyCQA/pylint" }
pytest = "^4.3"
pytest-cov = "^2.8"
Expand Down

0 comments on commit 7eabbb4

Please sign in to comment.