Skip to content

Commit 52a3e01

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
docs: update pypi section in the release process doc
Update the PyPI section of the release process doc to use a path that is more consistent with the sections above. Remove a reference to a username prompt as newer versions of twine no longer prompt for a username and require a token. Signed-off-by: John Mulligan <jmulligan@redhat.com>
1 parent cc87e95 commit 52a3e01

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/release-process.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,22 @@ to date too. You will need to have a PyPI account and access to the sambacc
8080
repo.
8181

8282
Log into PyPI web UI. (Re)Generate a pypi login token for sambacc.
83-
Ensure `twine` is installed:
83+
Ensure `twine` is installed (consider installing it in a fresh virtual env):
8484
```
8585
python3 -m pip install --upgrade twine
8686
```
8787

8888
Create a directory to store the python build artifacts:
8989
```
90-
rm -rf _build/pypi
91-
mkdir -p _build/pypi
92-
cp sambacc-0.3.tar.gz sambacc-0.3-py3-none-any.whl _build/pypi
90+
mypypi=$PWD/_builds/v03/pypi
91+
rm -rf $mypypi
92+
mkdir -p $mypypi
93+
cp sambacc-0.3.tar.gz sambacc-0.3-py3-none-any.whl $mypypi
9394
```
9495
Upload the files to PyPI creating a new release:
9596
```
96-
python3 -m twine upload _build/pypi/*
97-
# Supply a username of `__token__` and the password will be the value
98-
of the token you acquiried above.
97+
python3 -m twine upload $mypypi/*
98+
# Supply the token you acquired above at the prompt.
9999
```
100100

101101
A new release like `https://pypi.org/project/sambacc/0.3/` should have become

0 commit comments

Comments
 (0)