File: Makefile

package info (click to toggle)
python-tatsu-lts 5.13.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 896 kB
  • sloc: python: 10,216; makefile: 54
file content (66 lines) | stat: -rw-r--r-- 1,039 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
test:  lint tatsu_test documentation examples


tatsu_test: clean
	pytest


documentation: clean sphinx


sphinx:
	cd docs; make -s html > /dev/null


examples: clean g2e_test calc_test


g2e_test:
	cd examples/g2e; make -s clean; make -s test > /dev/null

calc_test:
	cd examples/calc; make -s clean; make -s test > /dev/null


lint: ruff mypy


ruff:
	-@ pip install -q -U ruff
	ruff check --preview tatsu test examples


mypy:
	-@ pip install -q -U mypy
	mypy   --ignore-missing-imports . --exclude dist


clean:
	find . -name "__pycache__" | xargs rm -rf
	find . -name "*.pyc" | xargs rm -f
	find . -name "*.pyd" | xargs rm -f
	find . -name "*.pyo" | xargs rm -f
	find . -name "*.orig" | xargs rm -f
	rm -rf tatsu.egg-info
	rm -rf dist
	rm -rf build
	rm -rf .tox


release_check: clean documentation
	tox
	@echo version `python -m tatsu --version`


build: clean
	pip install -U build
	python -m build


test_upload: build
	pip install -U twine
	twine upload --repository test dist/*


upload: release_check build
	twine upload dist/*