preserves/implementations/python/Makefile

28 lines
583 B
Makefile
Raw Normal View History

2022-01-13 22:29:47 +00:00
test: update-test-data
python3 -m unittest discover -s tests
2022-01-13 22:29:47 +00:00
coverage: update-test-data
python3-coverage run --branch -m unittest discover -s tests
python3-coverage html
2018-11-15 06:55:12 +00:00
2022-01-13 22:29:47 +00:00
update-test-data:
rsync ../../tests/samples.bin ../../tests/samples.pr tests
2022-02-11 10:57:29 +00:00
tag:
git tag python-preserves@`python3 setup.py --version`
2018-11-15 06:55:12 +00:00
clean:
rm -rf htmlcov
2018-11-15 07:09:35 +00:00
find . -iname __pycache__ -o -iname '*.pyc' | xargs rm -rf
2018-11-15 06:55:12 +00:00
rm -f .coverage
2018-11-15 07:09:35 +00:00
rm -rf preserves.egg-info build dist
#
# sudo apt install python3-wheel twine
#
2021-11-30 17:41:34 +00:00
publish: clean build
2018-11-15 07:09:35 +00:00
twine upload dist/*
2021-11-30 17:41:34 +00:00
build:
python3 setup.py sdist bdist_wheel