Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use twine to upload packages to pypi and test pypi. #329

Merged
merged 2 commits into from
Nov 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,15 @@ endef

.PHONY: docs

pypi_register_test: install
$(call header,"Registering with PyPi - test")
@. $(INSTALL_DIR)/bin/activate; python setup.py register -r pypitest

pypi_register: install
$(call header,"Registering with PyPi")
@. $(INSTALL_DIR)/bin/activate; python setup.py register -r pypi

pypi_upload_test: install
$(call header,"Uploading new version to PyPi - test")
@. $(INSTALL_DIR)/bin/activate; python setup.py sdist upload -r pypitest
@. $(INSTALL_DIR)/bin/activate; python setup.py sdist
@twine upload --repository testpypi dist/*

pypi_upload: install
$(call header,"Uploading new version to PyPi")
@. $(INSTALL_DIR)/bin/activate; python setup.py sdist upload -r pypi
@. $(INSTALL_DIR)/bin/activate; python setup.py sdist
@twine upload dist/*

docs: install
$(call header,"Building docs")
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ six==1.16.0
Sphinx==1.7.5
tox-pyenv==1.1.0
tox==3.14.6
twine==3.3.0