Skip to content

Commit

Permalink
release.org update .pypirc for new twine/keyring behavior
Browse files Browse the repository at this point in the history
keyring or twine now treats the empty password: as none rather than
asking for a password on the command line, so remove the empty entry
  • Loading branch information
tgbugs committed Nov 25, 2019
1 parent bf9c8dd commit 3174d5b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/release.org
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ and the package contents are what we want and expect.
Once they do tag it with the version that you set below
so that everything is on the same page.

#+CAPTION: .pypirc on the release host (only need to create once)
#+CAPTION: [[file:~/.pypirc]] on the release host (only need to create once)
#+BEGIN_SRC toml
[distutils]
index-servers =
Expand All @@ -18,7 +18,6 @@ index-servers =
[pypi]
repository: https://upload.pypi.org/legacy/
username: your-username
password:

[test]
repository: https://test.pypi.org/legacy/
Expand Down Expand Up @@ -236,7 +235,7 @@ function push-release () {
rsync -a -v --ignore-existing ${folder}/dist/${packagename}-${version}{-,.tar}* ${software_releases_path}/ || return 1
pushd ${software_releases_path}
sha256sum ${packagename}-${version}{-,.tar}* >> hashes
twine upload --repository test ${packagename}-${version}{-,.tar}*
twine upload --repository test ${packagename}-${version}{-,.tar}* || return 1
sleep 1
echo "test pypi hashes"
curl https://test.pypi.org/pypi/${packagename}/json | python -m json.tool | grep "\(sha256\|filename\)" | grep -B1 "${version}" | awk '{ gsub(/"/, "", $2); printf("%s ", $2) }' | sed 's/,\ /\n/g'
Expand Down Expand Up @@ -318,7 +317,7 @@ function final-release () {

pushd ${software_releases_path}

twine upload --repository pypi ${packagename}-${version}{-,.tar}* # enter password here
twine upload --repository pypi ${packagename}-${version}{-,.tar}* || return 1 # enter password here

sleep 1
echo "pypi hashes"
Expand Down

0 comments on commit 3174d5b

Please sign in to comment.