forked from neogeny/TatSu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (41 loc) · 1.15 KB
/
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
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: flake8 mypy tatsu_test documentation examples
tatsu_test:
py.test
documentation:
pandoc README.rst -t markdown --wrap=none > README.md
cd docs; make -s html > /dev/null
examples: 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
flake8:
flake8
mypy:
mypy . --ignore-missing-imports
cython:
python setup.py build_ext --inplace
python3 setup.py build_ext --inplace
clean: clean_cython
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
clean_cython:
find tatsu -name "*.so" | xargs rm -f
find tatsu -name "*.c" | xargs rm -f
release_check: clean documentation
rst2html.py README.rst > /dev/null
python setup.py sdist --formats=zip
tox
@echo version `python -m tatsu --version`
distributions: clean release_check
python setup.py sdist --formats=zip
python setup.py bdist_wheel --universal
upload: distributions
twine upload dist/*