diff options
author | Qrius <[email protected]> | 2025-04-23 15:38:03 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2025-04-23 15:38:06 +0200 |
commit | 8c2c933f76fd784a601db5c41f9c139c1154d506 (patch) | |
tree | 0095918d82daa84099d7229e2104f6a87b7de2c1 | |
parent | 45f9f608d39289131548a0e1d7962617cf3c028e (diff) | |
download | skaldpress-8c2c933f76fd784a601db5c41f9c139c1154d506.tar.gz skaldpress-8c2c933f76fd784a601db5c41f9c139c1154d506.zip |
Readd Makefile
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 31 | ||||
-rwxr-xr-x | debian/rules | 3 |
3 files changed, 33 insertions, 3 deletions
@@ -7,6 +7,7 @@ dist/ __pycache__/ *.so *~ +*.deb venv/ # due to using nox and pytest @@ -16,3 +17,4 @@ debian/skaldpress/ debian/.debhelper/ debian/debhelper-build-stamp debian/skaldpress.substvars +.pybuild/ 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 + diff --git a/debian/rules b/debian/rules index ffefe86..641186e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,4 @@ #!/usr/bin/make -f -#export PYBUILD_NAME=skaldpress -#export DEB_BUILD_OPTIONS=nocheck -#export PYBUILD_SYSTEM=setuptools %: dh $@ --with python3 --buildsystem=pybuild |