2018-06-25 12:27:40 +00:00
|
|
|
.PHONY: clean publish test
|
2017-04-12 14:42:04 +00:00
|
|
|
|
|
|
|
dist :
|
2018-06-25 12:27:40 +00:00
|
|
|
python setup.py sdist --formats=gztar,zip
|
|
|
|
python setup.py bdist_wheel --python-tag=py3
|
2017-04-12 14:42:04 +00:00
|
|
|
|
2018-06-25 12:27:40 +00:00
|
|
|
deb_dist:
|
|
|
|
python setup.py --command-packages=stdeb.command bdist_deb
|
2017-04-12 14:42:04 +00:00
|
|
|
|
|
|
|
publish :
|
2019-01-02 11:56:53 +00:00
|
|
|
twine upload dist/*.tar.gz dist/*.whl
|
2017-04-16 12:06:16 +00:00
|
|
|
|
2018-06-25 12:27:40 +00:00
|
|
|
test:
|
|
|
|
pytest -v -s
|
|
|
|
|
2017-04-16 12:06:16 +00:00
|
|
|
coverage:
|
|
|
|
py.test --cov=toot --cov-report html tests/
|
2017-08-26 13:56:41 +00:00
|
|
|
|
2018-06-25 12:27:40 +00:00
|
|
|
clean :
|
|
|
|
find . -name "*pyc" | xargs rm -rf $1
|
|
|
|
rm -rf build dist MANIFEST htmlcov deb_dist toot*.tar.gz
|