Update release procedure

This commit is contained in:
Ivan Habunek 2018-06-25 14:27:40 +02:00
parent ebed6a8045
commit 933848cde5
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
3 changed files with 18 additions and 25 deletions

View File

@ -1,28 +1,21 @@
default : clean dist .PHONY: clean publish test
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" deb_dist:
@echo "-------------" python setup.py --command-packages=stdeb.command bdist_deb
@python setup.py bdist_wheel --universal
@echo "\nDone."
clean :
find . -name "*pyc" | xargs rm -rf $1
rm -rf build dist MANIFEST htmlcov deb_dist toot*.tar.gz
publish : publish :
twine upload dist/* twine upload dist/*
test:
pytest -v -s
coverage: coverage:
py.test --cov=toot --cov-report html tests/ py.test --cov=toot --cov-report html tests/
deb: clean :
@python setup.py --command-packages=stdeb.command bdist_deb find . -name "*pyc" | xargs rm -rf $1
rm -rf build dist MANIFEST htmlcov deb_dist toot*.tar.gz
test:
pytest -v -s

View File

@ -1,5 +1,7 @@
pytest-cov~=2.4.0 keyring
pytest~=3.0.0 pytest
stdeb~=0.8.5 pytest-cov
twine~=1.8.1 pyxdg
wheel~=0.29.0 stdeb
twine
wheel

View File

@ -1,2 +0,0 @@
[bdist_wheel]
universal=1