Skip to content

Commit 7edf4b9

Browse files
author
Steven Silvester
authored
Merge pull request #173 from blink1073/fix-map-handling
Debug token map handling
2 parents 95b9a11 + bcd8a6e commit 7edf4b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_releaser/python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def get_pypi_token(release_url):
7474
for line in pypi_token_map.splitlines():
7575
name, _, token = line.partition(",")
7676
if name == repo_name:
77-
twine_pwd = token
78-
util.log("Found PYPI token")
77+
twine_pwd = token.strip()
78+
util.log(f"Found PYPI token in map ending in {twine_pwd[-5:]}")
7979
elif twine_pwd:
8080
util.log("Using PYPI token from PYPI_TOKEN")
8181
else:

0 commit comments

Comments
 (0)