-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
58 lines (41 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
SHELL := /bin/bash
PROJECT := tagpack-tool
VENV := .venv
RELEASE := 'v24.10.0'
# RELEASESEM := 'v1.9.0'
all: format lint test build
tag-version:
#-git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASESEM) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1)
git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASE) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1)
test:
pytest -v -m "not slow" --cov=src
dev:
pip install -e .[dev]
pre-commit install
test-all:
pytest --cov=src
install-dev: dev
pip install -e .
install:
pip install .
lint:
flake8 tests src
format:
isort --profile black src
black tests src
docs:
tox -e docs
docs-latex:
tox -e docs-latex
pre-commit:
pre-commit run --all-files
build:
tox -e clean
tox -e build
tpublish: build version
tox -e publish
publish: build version
tox -e publish -- --repository pypi
version:
python -m setuptools_scm
.PHONY: all test install lint format build pre-commit docs test-all docs-latex publish tpublish tag-version postgres-reapply-config