Skip to content

Commit 11d98bf

Browse files
committed
Updated pypi.sh to use $HOME/.pypirc file, exclude docs/notebooks directory
1 parent f04aa7c commit 11d98bf

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
include LICENSE.txt
2+
prune docs
3+
prune notebooks

pypi.sh

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,31 @@
6464

6565
rm -rf dist
6666
python3 -m build --sdist --wheel
67+
6768
# Use API Token instead of username+password
6869
# https://pypi.org/help/#apitoken
69-
twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/*
70-
# twine upload dist/*
70+
# Place the API Token(s) in your $HOME/.pypirc
71+
# [distutils]
72+
# index-servers =
73+
# pypi
74+
# testpypi
75+
#
76+
# [pypi]
77+
# repository = https://upload.pypi.org/legacy/
78+
# username = __token__
79+
# password = <PyPI API Token>
80+
#
81+
# [testpypi]
82+
# repository = https://test.pypi.org/legacy/
83+
# username = __token__
84+
# password = <Test PyPI API Token>
85+
86+
# Upload to Test PyPi
87+
# (OLD) twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/*
88+
twine upload --verbose -r testpypi dist/*
89+
90+
# Upload to PyPI
91+
# (OLD) twine upload dist/*
92+
# twine upload -r pypi dist/*
93+
7194
rm -rf build dist stumpy.egg-info

0 commit comments

Comments
 (0)