File: Makefile

package info (click to toggle)
python-pycotap 1.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 124 kB
  • sloc: python: 436; makefile: 39; sh: 5
file content (37 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (2)
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 .
	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/*