1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
# This file is part of convertdate.
# http://github.com/fitnr/convertdate
# Licensed under the MIT license:
# http://opensource.org/licenses/MIT
# Copyright (c) 2016, fitnr <fitnr@fakeisthenewreal>
.PHONY: all htmlcov test deploy format
all:
htmlcov: | test
python -m coverage html
test:
python -m unittest
pylint:
pylint convertdate/ tests
cov:
python -m coverage run --branch --source=convertdate -m unittest
python -m coverage report
format:
black src/ tests/
isort src/convertdate/*.py src/convertdate/data/*.py tests/*.py
deploy:
rm -rf dist build
python -m build
twine upload dist/*
git push; git push --tags
|