-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (27 loc) · 754 Bytes
/
Makefile
File metadata and controls
31 lines (27 loc) · 754 Bytes
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
.PHONY: clean build docs
clean: # clean all build, python, and testing files
rm -rf build/
rm -rf dist/
rm -rf .eggs/
find . -name '*.egg-info' -exec rm -rf {} +
find . -name '*.egg' -exec rm -rf {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
rm -rf .tox/
rm -rf .coverage
rm -rf coverage.xml
rm -rf htmlcov/
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .ruff_cache
build: # run tox tests and lint
tox
docs: # generates documentation
make -C docs html
release:
poetry version $(version)
git checkout -b release/v$$(poetry version -s)
git add pyproject.toml
git commit -m "Bump version → $$(poetry version -s)"