mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
37 lines
626 B
Makefile
37 lines
626 B
Makefile
.PHONY: clean publish test docs
|
|
|
|
dist :
|
|
python setup.py sdist --formats=gztar,zip
|
|
python setup.py bdist_wheel --python-tag=py3
|
|
|
|
publish :
|
|
twine upload dist/*.tar.gz dist/*.whl
|
|
|
|
test:
|
|
pytest -v
|
|
flake8
|
|
vermin toot
|
|
|
|
coverage:
|
|
coverage erase
|
|
coverage run
|
|
coverage html
|
|
coverage report
|
|
|
|
clean :
|
|
find . -name "*pyc" | xargs rm -rf $1
|
|
rm -rf build dist MANIFEST htmlcov toot*.tar.gz
|
|
|
|
changelog:
|
|
./scripts/generate_changelog > CHANGELOG.md
|
|
cp CHANGELOG.md docs/changelog.md
|
|
|
|
docs: changelog
|
|
mdbook build
|
|
|
|
docs-serve:
|
|
mdbook serve
|
|
|
|
docs-deploy: docs
|
|
rsync --archive --compress --delete --stats book/ bezdomni:web/toot
|