aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorQrius <[email protected]>2025-03-05 08:41:05 +0100
committerQrius <[email protected]>2025-03-05 08:41:08 +0100
commit313e059f367f2ac291cd409e77d22673f9595848 (patch)
tree6440ebdd65e015f8c6b0147fd8eb5f877f35c34e /Makefile
parent5fb097851d88b42188ee0502270d8c336102783a (diff)
downloadskaldpress-313e059f367f2ac291cd409e77d22673f9595848.tar.gz
skaldpress-313e059f367f2ac291cd409e77d22673f9595848.zip
First iteration of py skaldpress version
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..dc25faa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,38 @@
+.PHONY: test build minorbump publish install clean
+
+venv/bin/tt: src/timetracker/*.py venv
+ . venv/bin/activate && \
+ python -m pip install -e .[dev]
+
+venv: pyproject.toml
+ python3 -m venv venv
+
+build: venv
+ . venv/bin/activate && \
+ python -m pip install build twine && \
+ python -m build && \
+ python -m twine check dist/*
+
+minorbump:
+ . venv/bin/activate && \
+ bumpver update --patch
+
+publish: minorbump build
+ . venv/bin/activate && \
+ twine upload dist/*
+
+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
+