aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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
+