Skip to content

Commit

Permalink
build: check that credentials are ready for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jul 31, 2023
1 parent 0eaa9bb commit e733bdf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,17 @@ dist: ## build the distributions
python -m twine check dist/*

testpypi: ## upload the distributions to PyPI's testing server.
@if [[ -z "$$TWINE_TEST_PASSWORD" ]]; then \
echo 'Missing TWINE_TEST_PASSWORD: opvars'; \
exit 1; \
fi
python -m twine upload --verbose --repository testpypi --password $$TWINE_TEST_PASSWORD dist/*

pypi: ## upload the built distributions to PyPI.
@if [[ -z "$$TWINE_PASSWORD" ]]; then \
echo 'Missing TWINE_PASSWORD: opvars'; \
exit 1; \
fi
python -m twine upload --verbose dist/*

tag: ## make a git tag with the version number
Expand Down

0 comments on commit e733bdf

Please sign in to comment.