From fa4ace99696a2eb11ca857ac4274adee06224ee4 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 3 Sep 2025 13:19:59 -0400 Subject: [PATCH] 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 --- docs/release-process.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/release-process.md b/docs/release-process.md index 7c956b2e..5ea75295 100644 --- a/docs/release-process.md +++ b/docs/release-process.md @@ -80,22 +80,22 @@ to date too. You will need to have a PyPI account and access to the sambacc repo. Log into PyPI web UI. (Re)Generate a pypi login token for sambacc. -Ensure `twine` is installed: +Ensure `twine` is installed (consider installing it in a fresh virtual env): ``` python3 -m pip install --upgrade twine ``` Create a directory to store the python build artifacts: ``` -rm -rf _build/pypi -mkdir -p _build/pypi -cp sambacc-0.3.tar.gz sambacc-0.3-py3-none-any.whl _build/pypi +mypypi=$PWD/_builds/v03/pypi +rm -rf $mypypi +mkdir -p $mypypi +cp sambacc-0.3.tar.gz sambacc-0.3-py3-none-any.whl $mypypi ``` Upload the files to PyPI creating a new release: ``` -python3 -m twine upload _build/pypi/* -# Supply a username of `__token__` and the password will be the value -of the token you acquiried above. +python3 -m twine upload $mypypi/* +# Supply the token you acquired above at the prompt. ``` A new release like `https://pypi.org/project/sambacc/0.3/` should have become