Skip to content

Commit

Permalink
Updated pypi.sh to use $HOME/.pypirc file, exclude docs/notebooks dir…
Browse files Browse the repository at this point in the history
…ectory
  • Loading branch information
seanlaw committed Jul 9, 2024
1 parent f04aa7c commit 11d98bf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
include LICENSE.txt
prune docs
prune notebooks
27 changes: 25 additions & 2 deletions pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,31 @@

rm -rf dist
python3 -m build --sdist --wheel

# Use API Token instead of username+password
# https://pypi.org/help/#apitoken
twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/*
# twine upload dist/*
# Place the API Token(s) in your $HOME/.pypirc
# [distutils]
# index-servers =
# pypi
# testpypi
#
# [pypi]
# repository = https://upload.pypi.org/legacy/
# username = __token__
# password = <PyPI API Token>
#
# [testpypi]
# repository = https://test.pypi.org/legacy/
# username = __token__
# password = <Test PyPI API Token>

# Upload to Test PyPi
# (OLD) twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/*
twine upload --verbose -r testpypi dist/*

# Upload to PyPI
# (OLD) twine upload dist/*
# twine upload -r pypi dist/*

rm -rf build dist stumpy.egg-info

0 comments on commit 11d98bf

Please sign in to comment.