mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
Add make bundle
for creating a pyz bundle
This commit is contained in:
parent
24866bd4e4
commit
e8dac36de3
10
.gitignore
vendored
10
.gitignore
vendored
@ -6,12 +6,14 @@
|
||||
/.env
|
||||
/.envrc
|
||||
/.pytest_cache/
|
||||
/book
|
||||
/build/
|
||||
/bundle/
|
||||
/dist/
|
||||
/htmlcov/
|
||||
/tmp/
|
||||
/toot-*.tar.gz
|
||||
debug.log
|
||||
/pyrightconfig.json
|
||||
/tmp/
|
||||
/toot-*.pyz
|
||||
/toot-*.tar.gz
|
||||
/venv/
|
||||
/book
|
||||
debug.log
|
||||
|
14
Makefile
14
Makefile
@ -20,7 +20,7 @@ coverage:
|
||||
|
||||
clean :
|
||||
find . -name "*pyc" | xargs rm -rf $1
|
||||
rm -rf build dist MANIFEST htmlcov toot*.tar.gz
|
||||
rm -rf build dist MANIFEST htmlcov bundle toot*.tar.gz toot*.pyz
|
||||
|
||||
changelog:
|
||||
./scripts/generate_changelog > CHANGELOG.md
|
||||
@ -34,3 +34,15 @@ docs-serve:
|
||||
|
||||
docs-deploy: docs
|
||||
rsync --archive --compress --delete --stats book/ bezdomni:web/toot
|
||||
|
||||
bundle:
|
||||
mkdir bundle
|
||||
cp toot/__main__.py bundle
|
||||
pip install . --target=bundle
|
||||
rm -rf bundle/*.dist-info
|
||||
find bundle/ -type d -name "__pycache__" -exec rm -rf {} +
|
||||
python -m zipapp \
|
||||
--python "/usr/bin/env python3" \
|
||||
--output toot-`git describe`.pyz bundle \
|
||||
--compress
|
||||
echo "Bundle created: toot-`git describe`.pyz"
|
||||
|
Loading…
Reference in New Issue
Block a user