-
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
/
Copy pathMakefile
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 install-clipboard devinstall preview publish clean format check test testcov
build: clean
php README.md.php > README.md
python3 -m build
install:
python3 -m pip install .
install-clipboard:
python3 -m pip install .[clipboard]
devinstall:
python3 -m pip install -e .[dev,clipboard]
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("eqlm.egg-info", ignore_errors=True)'
python3 -c 'import shutil; shutil.rmtree("htmlcov", ignore_errors=True)'
python3 -c 'import os, os.path; os.remove(".coverage") if os.path.isfile(".coverage") else None'
format:
python3 -m black -l 500 eqlm tests
check:
python3 -m pyright eqlm tests
test:
python3 -X dev -m unittest discover -v tests
testcov:
python3 -m coverage run --source=eqlm --branch -m unittest discover -v tests
python3 -m coverage report -m
python3 -m coverage html