~dricottone/filters

ref: 7b51a036bbb61fbe5c6a0467742a87b09f306732 filters/Makefile -rw-r--r-- 722 bytes
7b51a036Dominic Ricottone Refactored into package, to use gap argument parser; Remade build system 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
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 *.egg-info

test:
	$(python) -m py_compile filter/*.py
	$(unittest_discover) tests
	MYPY_CACHE_DIR=filter/__mypycache__ mypy -p filter

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

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

install:
	pipx install --spec . filter

uninstall:
	pipx uninstall filter