-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 887 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 887 Bytes
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_graph_constructor test_backend test_matcher test_api
test_%:
@if [ -d .venv ]; then \
pipenv run pytest tests/$@ -m 'not slow_test and not deprecated and not beta_release' -vv -s | tee -a tests_log.txt; \
else \
pytest tests/$@ -vv -s -m 'not slow_test and not deprecated and not beta_release' | 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 constants data \
tests/test_backend/{models,data} \
.pytest_cache dist/ build/