-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1.19 KB
/
Makefile
File metadata and controls
41 lines (30 loc) · 1.19 KB
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
.PHONY: build install devinstall preview publish clean format check test testcov docs
build: clean
python3 -m build
install:
python3 -m pip install .
devinstall:
python3 -m pip install -e .[dev]
preview: build
python3 -m twine upload -u __token__ --repository-url "https://test.pypi.org/legacy/" dist/*
publish: build
python3 -m twine upload -u __token__ --repository-url "https://upload.pypi.org/legacy/" dist/*
clean:
python3 -c 'import shutil; shutil.rmtree("dist", ignore_errors=True)'
python3 -c 'import shutil; shutil.rmtree("build", ignore_errors=True)'
python3 -c 'import shutil; shutil.rmtree("reification.egg-info", ignore_errors=True)'
python3 -c 'import shutil; shutil.rmtree("htmlcov", ignore_errors=True)'
python3 -c 'import shutil; shutil.rmtree("site", ignore_errors=True)'
python3 -c 'import os, os.path; os.remove(".coverage") if os.path.isfile(".coverage") else None'
format:
python3 -m black -l 200 reification tests
check:
python3 -m pyright reification
test:
python3 -X dev -m pytest --doctest-modules
testcov:
python3 -X dev -m coverage run --branch -m pytest --doctest-modules
python3 -m coverage report -m
python3 -m coverage html
docs:
python3 -m mkdocs build