mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04: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
|
/.env
|
||||||
/.envrc
|
/.envrc
|
||||||
/.pytest_cache/
|
/.pytest_cache/
|
||||||
|
/book
|
||||||
/build/
|
/build/
|
||||||
|
/bundle/
|
||||||
/dist/
|
/dist/
|
||||||
/htmlcov/
|
/htmlcov/
|
||||||
/tmp/
|
|
||||||
/toot-*.tar.gz
|
|
||||||
debug.log
|
|
||||||
/pyrightconfig.json
|
/pyrightconfig.json
|
||||||
|
/tmp/
|
||||||
|
/toot-*.pyz
|
||||||
|
/toot-*.tar.gz
|
||||||
/venv/
|
/venv/
|
||||||
/book
|
debug.log
|
||||||
|
14
Makefile
14
Makefile
@ -20,7 +20,7 @@ coverage:
|
|||||||
|
|
||||||
clean :
|
clean :
|
||||||
find . -name "*pyc" | xargs rm -rf $1
|
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:
|
changelog:
|
||||||
./scripts/generate_changelog > CHANGELOG.md
|
./scripts/generate_changelog > CHANGELOG.md
|
||||||
@ -34,3 +34,15 @@ docs-serve:
|
|||||||
|
|
||||||
docs-deploy: docs
|
docs-deploy: docs
|
||||||
rsync --archive --compress --delete --stats book/ bezdomni:web/toot
|
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