~dricottone/gap

ref: b8fb826ed04874d26aa100c7a69e839c6b208fd3 gap/Makefile -rw-r--r-- 904 bytes
b8fb826eDominic Ricottone Version 1.0.1; marked internal functions as private 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
33
34
35
36
37
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 gap.egg_info

bootstrap:
	./gap/bootstrap.py > gap/cli.py

test:
	mkdir -p tests/generated_syntax
	touch tests/__init__.py tests/generated_syntax/__init__.py
	$(python) -m py_compile gap/*.py
	$(unittest_discover) tests
	$(python) -m py_compile tests/generated_syntax/*.py
	$(unittest) tests/generated_syntax_tests.py
	MYPY_CACHE_DIR=gap/__mypycache__ mypy -p gap

build:
	$(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 gap