mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
ac37f179ef
* directly save to desired file name * add version number to file name * remove __pycache__ folders before bundling * compress the archive
36 lines
780 B
Makefile
36 lines
780 B
Makefile
default : clean dist
|
|
|
|
dist :
|
|
python setup.py sdist --formats=gztar,zip
|
|
python setup.py bdist_wheel --python-tag=py3
|
|
|
|
clean :
|
|
find . -name "*pyc" | xargs rm -rf $1
|
|
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
|
|
find bundle/ -type d -name "__pycache__" -exec rm -rf {} +
|
|
python -m zipapp \
|
|
--python "/usr/bin/env python3" \
|
|
--output twitch-dl.`git describe`.pyz bundle \
|
|
--compress
|
|
|
|
publish :
|
|
twine upload dist/*.tar.gz dist/*.whl
|
|
|
|
coverage:
|
|
py.test --cov=toot --cov-report html tests/
|
|
|
|
deb:
|
|
@python setup.py --command-packages=stdeb.command bdist_deb
|
|
|
|
man:
|
|
scdoc < twitch-dl.1.scd > twitch-dl.1.man
|
|
|
|
test:
|
|
pytest
|