aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorQrius <[email protected]>2025-04-23 15:38:03 +0200
committerQrius <[email protected]>2025-04-23 15:38:06 +0200
commit8c2c933f76fd784a601db5c41f9c139c1154d506 (patch)
tree0095918d82daa84099d7229e2104f6a87b7de2c1 /Makefile
parent45f9f608d39289131548a0e1d7962617cf3c028e (diff)
downloadskaldpress-8c2c933f76fd784a601db5c41f9c139c1154d506.tar.gz
skaldpress-8c2c933f76fd784a601db5c41f9c139c1154d506.zip
Readd Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
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
+