-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 1.34 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
.PHONY: black build clean clean-test clean-pyc clean-build clean-docs docs docs-deploy help test coverage version-major version-minor version-patch
.DEFAULT_GOAL := help
clean: clean-build clean-pyc clean-test clean-docs ## remove all build, test, coverage and Python artifacts
clean-build: ## remove build artifacts
rm -rf build/
rm -rf dist/
rm -rf .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
clean-pyc: ## remove Python file artifacts
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test: ## remove test and coverage artifacts
rm -f .coverage
rm -rf htmlcov/
test: ## run tests quickly with the default Python
python -m unittest discover -v -s examples/
type: ## perform static type checking using mypy
mypy boaconstructor/
black: ## apply black formatting
black boaconstructor/ examples/ scripts/
build: ## create wheel
python -m build && python scripts/fix-wheels.py dist/
version-major: ## bump the major version prior to release, auto commits and tag
bumpversion bump major
version-minor: ## bump the minor version prior to release, auto commits and tag
bumpversion bump minor
version-patch: ## bump the patch version prior to release, auto commits and tag
bumpversion bump patch