preserves/implementations/python/Makefile

30 lines
678 B
Makefile

test: update-data
python3 -m unittest discover -s tests
coverage: update-data
python3-coverage run --branch -m unittest discover -s tests
python3-coverage html
update-data:
rsync ../../tests/samples.bin ../../tests/samples.pr tests
rsync ../../path/path.bin preserves/path.prb
rsync ../../schema/schema.bin preserves/schema.prb
tag:
git tag python-preserves@`python3 setup.py --version`
clean:
rm -rf htmlcov
find . -iname __pycache__ -o -iname '*.pyc' | xargs rm -rf
rm -f .coverage
rm -rf preserves.egg-info build dist
#
# sudo apt install python3-wheel twine
#
publish: clean build
twine upload dist/*
build: update-data
python3 setup.py sdist bdist_wheel