Skip to content

Commit

Permalink
Added build and upload commands to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cganterh committed Mar 23, 2018
1 parent b5b9de0 commit 15d026b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,19 @@ test:
coverage run tests.py
coverage-badge -qfo coverage.svg
coverage report

.PHONY: sdist bdist_wheel
sdist bdist_wheel: test
python setup.py $@

.PHONY: upload
upload: test clean sdist bdist_wheel
twine upload $(twine_options) dist/*

.PHONY: upload_test
upload_test: twine_options = --repository-url https://test.pypi.org/legacy/
upload_test: upload

.PHONY: clean
clean:
rm -rf build dist le.egg-info __pycache__
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = le
version = 1.0.5
version = 1.0.6
url = https://github.com/cganterh/le
author = Cristóbal Ganter
author_email = cganterh@gmail.com
Expand Down

0 comments on commit 15d026b

Please sign in to comment.