~dricottone/gap

37a014fedc014cb926fcf525d9e7626c2151ecf7 — Dominic Ricottone 4 years ago 8ce757c
Adding make build
2 files changed, 12 insertions(+), 4 deletions(-)

M .gitignore
M Makefile
M .gitignore => .gitignore +3 -0
@@ 1,4 1,7 @@
**/__pycache__
**/*.pyc
tests/generated_syntax/*
build
dist
*.egg-info


M Makefile => Makefile +9 -4
@@ 1,9 1,9 @@

unittest = unittest --color
unittest_discover = unittest --color --working-directory .
# If you don't have my unittest wrapper installed...
#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__ **/*.pyc


@@ 14,11 14,16 @@ bootstrap:
test:
	mkdir -p tests/generated_syntax
	touch tests/__init__.py tests/generated_syntax/__init__.py
	python -m py_compile gap/*.py
	$(python) -m py_compile gap/*.py
	$(unittest_discover) tests
	python -m py_compile tests/generated_syntax/*.py
	$(python) -m py_compile tests/generated_syntax/*.py
	$(unittest) tests/generated_syntax_tests.py

build:
	mkdir -p build
	mkdir -p dist
	$(python) setup.py sdist bdist_wheel

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