Add packaging make targets

This commit is contained in:
IamTheFij 2018-02-16 18:09:10 -08:00
parent a8e651e483
commit 9c2b4d9029
2 changed files with 21 additions and 0 deletions

View File

@ -2,5 +2,23 @@ env:
virtualenv -p python3 env
./env/bin/pip install -r requirements.txt
.PHONY: run
run: env
./env/bin/python -m minitor.main
.PHONY: build
build: env
./env/bin/python setup.py sdist
./env/bin/python setup.py bdist_wheel
.PHONY: upload
upload: env
./env/bin/twine upload dist/*
.PHONY: upload-test
upload-test: env
./env/bin/twine upload --repository-url https://test.pypi.org/legacy/ dist/*
.PHONY: clean
clean:
rm -fr ./build ./dist ./minitor.egg-info

3
requirements-dev.txt Normal file
View File

@ -0,0 +1,3 @@
-r requirements.txt
twine
wheel