Makefile + fixes

This commit is contained in:
Ola Grottvik
2019-04-30 18:10:33 +02:00
parent fd287f319f
commit 6b5936bcee
5 changed files with 46 additions and 3 deletions
+18
View File
@@ -1,8 +1,26 @@
.PHONY: init freeze test test_verbose build_dist upload
venv:
python3 -m venv .env
init:
pip install -r requirements.txt
freeze:
pip freeze | grep -v "pkg-resources" > requirements.txt
test:
nosetests tests/*
test_verbose:
nosetests --nocapture tests/*
build_dist:
rm -rf dist/*
python3 setup.py sdist bdist_wheel
upload_test:
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
upload:
python3 -m twine upload dist/*