-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathMakefile
34 lines (27 loc) · 826 Bytes
/
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
.PHONY: tests clean
tests:
rm -f tests_log.txt
make test_utils test_ir test_transformer test_frontend \
test_matcher test_graph_constructor test_backend
test_%:
@if [ -d .venv ]; then \
pipenv run pytest tests/$@ -m 'not slow_test and not deprecated' -vv -s | tee -a tests_log.txt; \
else \
pytest tests/$@ -vv -s -m 'not slow_test and not deprecated' | tee -a tests_log.txt; \
fi;
package:
rm -rf dist/*
.venv/bin/python setup.py bdist_wheel sdist
rm -rf build utensor_cgen.egg-info/
upload-test: package
.venv/bin/twine upload -r pypitest dist/*
install-test: package
pip uninstall -y utensor-cgen
pip install dist/*.tar.gz
upload: package
.venv/bin/twine upload -r pypi dist/*
clean:
rm -rf tests_log.txt *.pdf \
models data \
tests/test_backend/{models,data} \
.pytest_cache dist/ build/