Update Makefile

This commit is contained in:
Ivan Habunek 2019-06-06 09:28:23 +02:00
parent 0c88de3862
commit 357379a6a1
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -1,22 +1,15 @@
default : clean dist default : clean dist
dist : dist :
@echo "\nMaking source" python setup.py sdist --formats=gztar,zip
@echo "-------------" python setup.py bdist_wheel --python-tag=py3
@python setup.py sdist
@echo "\nMaking wheel"
@echo "-------------"
@python setup.py bdist_wheel --universal
@echo "\nDone."
clean : clean :
find . -name "*pyc" | xargs rm -rf $1 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 MANIFEST htmlcov deb_dist twitch-dl*.tar.gz twitch-dl.1.man
publish : publish :
twine upload dist/* twine upload dist/*.tar.gz dist/*.whl
coverage: coverage:
py.test --cov=toot --cov-report html tests/ py.test --cov=toot --cov-report html tests/