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 :
@echo "\nMaking source"
@echo "-------------"
@python setup.py sdist
python setup.py sdist --formats=gztar,zip
python setup.py bdist_wheel --python-tag=py3
@echo "\nMaking wheel"
@echo "-------------"
@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
deb_dist:
python setup.py --command-packages=stdeb.command bdist_deb
publish :
twine upload dist/*
test:
pytest -v -s
coverage:
py.test --cov=toot --cov-report html tests/
deb:
@python setup.py --command-packages=stdeb.command bdist_deb
test:
pytest -v -s
clean :
find . -name "*pyc" | xargs rm -rf $1
rm -rf build dist MANIFEST htmlcov deb_dist toot*.tar.gz

View File

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

View File

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