~dricottone/filters

ref: 5c3cae6369ce5153c5e6470a9a4e4c092cec8ee1 filters/Makefile -rw-r--r-- 758 bytes
5c3cae63Dominic Ricottone Added type hint 4 years ago
                                                                                
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
unittest = unittest --color
#unittest = python -m unittest
unittest_discover = unittest --color --working-directory .
#unittest_discover = python -m unittest discover tests --top-level-directory . --start-directory
python = python3

clean:
	rm -rf **/__pycache__ **/__mypycache__ **/*.pyc build dist filters.egg-info

test:
	$(python) -m py_compile filter/*.py rng/*.py
	#$(unittest_discover) tests

build:
	gap filter/cli.toml --no-debug-mode --output=filter/cli.py
	gap rng/cli.toml --no-debug-mode --output=rng/cli.py
	$(python) setup.py sdist bdist_wheel

unittest:
	$(unittest_discover) tests --verbose
	$(unittest) tests/generated_syntax_tests.py --verbose

reinstall: uninstall install

install:
	pipx install .

uninstall:
	pipx uninstall filters