Debian Codegraph @

Makefile

raw
1 SDK_VERSION=$(shell grep '^version' pyproject.toml | head -n 1 | cut -d '"' -f2)
2
3 # these are just tox invocations wrapped nicely for convenience
4 .PHONY: lint test docs all-checks
5 lint:
6 tox -e lint,mypy,mypy-test,pylint
7 test:
8 tox
9 docs:
10 tox -e docs
11 all-checks:
12 tox -e lint,pylint,mypy,mypy-test,test-lazy-imports,py37,py310,poetry-check,twine-check,docs
13
14 .PHONY: showvars tag-release prepare-release
15 showvars:
16 @echo "SDK_VERSION=$(SDK_VERSION)"
17 prepare-release:
18 tox -e prepare-release
19 tag-release:
20 git tag -s "$(SDK_VERSION)" -m "v$(SDK_VERSION)"
21 -git push $(shell git rev-parse --abbrev-ref @{push} | cut -d '/' -f1) refs/tags/$(SDK_VERSION)
22
23 .PHONY: install
24 install:
25 python -m venv .venv --upgrade-deps
26 .venv/bin/pip install -e . --group test
27
28 .PHONY: clean
29 clean:
30 rm -rf dist build *.egg-info .tox .venv
31 find . -type d -name '__pycache__' -exec rm -r {} +