-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 859 Bytes
/
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
.PHONY: build install devinstall preview publish clean format check test
build: clean
python3 -m build
install: build
pip3 install .
devinstall: build
pip3 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(".mypy_cache", ignore_errors=True)'
format:
python3 -m black -l 200 reification tests
check:
python3 -m mypy reification tests
test:
python3 -m unittest discover -v tests