From 8c2c933f76fd784a601db5c41f9c139c1154d506 Mon Sep 17 00:00:00 2001 From: Qrius Date: Wed, 23 Apr 2025 15:38:03 +0200 Subject: Readd Makefile --- .gitignore | 2 ++ Makefile | 31 +++++++++++++++++++++++++++++++ debian/rules | 3 --- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 0b0b91b..639a4d0 100644 --- a/.gitignore +++ b/.gitignore @@ -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 -- cgit v1.2.3