26 lines
565 B
Makefile
26 lines
565 B
Makefile
.PHONY: ci pip test package-dist package-upload
|
|
|
|
onnx_env: ## create virtual env
|
|
python -v venv onnx_env
|
|
|
|
ci: pip
|
|
pip install coverage hypothesis
|
|
$(MAKE) test
|
|
|
|
pip:
|
|
if [ -z $${VIRTUAL_ENV+x} ]; then echo "Are you sure you want to install dependencies outside of a virtual environment?"; sleep 30; fi
|
|
pip install -r requirements.txt
|
|
|
|
test:
|
|
python -m coverage run -m unittest discover -s tests/
|
|
python -m coverage html
|
|
python -m coverage xml
|
|
|
|
package: package-dist package-upload
|
|
|
|
package-dist:
|
|
python3 ./setup.py sdist
|
|
|
|
package-upload:
|
|
twine upload dist/*
|