preserves/implementations/python/Makefile

30 lines
678 B
Makefile
Raw Normal View History

2022-06-19 11:57:17 +00:00
test: update-data
python3 -m unittest discover -s tests
2022-06-19 11:57:17 +00:00
coverage: update-data
python3-coverage run --branch -m unittest discover -s tests
python3-coverage html
2018-11-15 06:55:12 +00:00
2022-06-19 11:57:17 +00:00
update-data:
2022-01-13 22:29:47 +00:00
rsync ../../tests/samples.bin ../../tests/samples.pr tests
2022-06-19 11:57:17 +00:00
rsync ../../path/path.bin preserves/path.prb
rsync ../../schema/schema.bin preserves/schema.prb
2022-01-13 22:29:47 +00:00
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
2022-06-19 11:57:17 +00:00
build: update-data
2021-11-30 17:41:34 +00:00
python3 setup.py sdist bdist_wheel