mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Add bundling with zipapp
This commit is contained in:
parent
bbed398cf6
commit
04ddadef26
2
.gitignore
vendored
2
.gitignore
vendored
@ -11,3 +11,5 @@ tmp/
|
||||
/htmlcov
|
||||
/twitch-dl-*.tar.gz
|
||||
/twitch-dl.1.man
|
||||
/bundle
|
||||
/*.pyz
|
||||
|
10
Makefile
10
Makefile
@ -6,7 +6,15 @@ dist :
|
||||
|
||||
clean :
|
||||
find . -name "*pyc" | xargs rm -rf $1
|
||||
rm -rf build dist MANIFEST htmlcov deb_dist twitch-dl*.tar.gz twitch-dl.1.man
|
||||
rm -rf build dist bundle MANIFEST htmlcov deb_dist twitch-dl*.tar.gz twitch-dl.1.man
|
||||
|
||||
bundle:
|
||||
mkdir bundle
|
||||
cp twitchdl/__main__.py bundle
|
||||
pip install . --target=bundle
|
||||
rm -rf bundle/*.dist-info
|
||||
python -m zipapp -p "/usr/bin/env python3" bundle
|
||||
mv bundle.pyz twitchdl.pyz
|
||||
|
||||
publish :
|
||||
twine upload dist/*.tar.gz dist/*.whl
|
||||
|
3
twitchdl/__main__.py
Normal file
3
twitchdl/__main__.py
Normal file
@ -0,0 +1,3 @@
|
||||
from twitchdl.console import main
|
||||
|
||||
main()
|
Loading…
Reference in New Issue
Block a user