-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 730 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (31 loc) · 730 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
32
33
34
35
36
37
all: dist
.PHONY: clean
clean:
python3 setup.py clean
-rm -rf build dist *.egg-info coverage
.PHONY: test
test:
ifeq ($(COVERAGE),1)
coverage run --omit='**/test/*,**/site-packages/**' test/test.py
coverage html --directory=coverage
coverage json -o coverage/coverage.json
./scripts/coverage-badge.py coverage/coverage.json coverage/coverage.svg
coverage report
else
python3 test/test.py
endif
.PHONY: lint
lint:
ruff check
pylint pycotap scripts
.PHONY: dist
dist:
python3 setup.py sdist
.PHONY: upload
upload: clean
python3 setup.py sdist bdist_wheel
twine upload dist/*
.PHONY: test-upload
test-upload:
python3 setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*