Add packaging make targets
This commit is contained in:
parent
a8e651e483
commit
9c2b4d9029
18
Makefile
18
Makefile
@ -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
3
requirements-dev.txt
Normal file
@ -0,0 +1,3 @@
|
||||
-r requirements.txt
|
||||
twine
|
||||
wheel
|
Loading…
Reference in New Issue
Block a user