Skip to content

Commit

Permalink
Makefile automatic upload to PyPI now works with twine
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat committed May 15, 2018
1 parent 75fba53 commit 55dc35f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Makefile for creating a new release of the package and uploading it to PyPI
# Before the release it resets the config.json file

PYTHON = python

help:
@echo "Use 'make release' to reset config.json and upload the package to PyPi"
@echo "Use 'make upload' to reset config.json and upload the package to PyPi"

release:
upload:
sentinelhub.config --instance_id "" --aws_access_key_id "" --aws_access_key_id "" --aws_secret_access_key "" --use_s3_l1c_bucket false
python setup.py sdist upload -r pypi
$(PYTHON) setup.py sdist
twine upload dist/*
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pytest>=3.0.0
pytest-cov
pylint
twine
radon
sphinx
sphinx_rtd_theme
Expand Down

0 comments on commit 55dc35f

Please sign in to comment.