diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4712adc --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +.PHONY: test build minorbump publish install clean deb + +%: + dh $@ --with python3 --buildsystem=pybuild + + +install: venv + python -m pip install . + +clean: + rm -rf venv + rm -rf dist + +test: + . venv/bin/activate && \ + black --check src && \ + mypy src/ && \ + pyflakes src/ && \ + ./tests/test_macro_processor.sh && \ + ./tests/test_skaldpress.sh && \ + ./tests/test_unittests.sh + + +deb: + dpkg-buildpackage -us -uc + mv ../skaldpress_*.deb . + rm ../skaldpress_*.tar.gz + rm ../skaldpress_*.dsc + rm ../skaldpress_*.changes + rm ../skaldpress_*.buildinfo + |