-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
twine upload to testpypi hangs #847
Comments
What is the traceback when you killed it? That could give us a clue. I have a suspicion but I don't want to poison the well :D |
@shuklak13 Can you also re-try the upload with the IE: |
Thanks for the suggestions. Here is the terminal output from
And here is the traceback:
|
Thanks! At first glance, it seems like is stuck getting credentials via keyring. Can you provide any details on if/how you have that configured? Here's the relevant twine docs: https://twine.readthedocs.io/en/stable/#keyring-support. It also looks like cc: @jaraco |
I wasn't familiar with keyring. In the past, uploading to twine from the terminal prompted me for username and password, so I guess my keyring was configured by someone else. To debug, I tried running Here's my understanding of what is happening:
I've opened up this issue in the secretstorage repo. |
@shuklak13 Did you try disabling keyring? https://twine.readthedocs.io/en/stable/#disabling-keyring |
Thank you Brian! Disabling keyring reverted twine to the previous behavior, and I was able to successfully upload to testpypi. |
@shuklak13 That's great. Out of curiosity, your original description states:
However, the output of
Can you share the contents of that file (w/ password redacted, of course)? |
That's strange - I don't see a |
That is strange; the log message should only show up if the file was read successfully: Lines 60 to 67 in d82cd00
|
Your Environment
Your operating system: Debian
Version of python you are running: 3.9
How did you install twine? pip
Version of twine you have installed (include complete output of):
twine version 3.4.1 (importlib_metadata: 4.5.0, pkginfo: 1.7.0, requests: 2.25.1, requests-toolbelt: 0.9.1, tqdm: 4.61.1)
Which package repository are you targeting? https://test.pypi.org/project/model_card_toolkit
If you're having issues uploading a specific package, you must include a copy of the following:
PKG-INFO
file.pypirc
file (REMOVE ALL USERNAMES & PASSWORDS BEFORE UPLOADING)PKG-INFO
: https://gist.github.com/shuklak13/0150db1afcbd11e531e3f365b4e3a662.pypirc
: I did not find a.pypirc
in my environment or my project.The Issue
When executing
python3 -m twine upload --repository testpypi dist/*
, the messageUploading distributions to https://test.pypi.org/legacy/
will display. The terminal then hangs, and does not display any further prompts. I manually killed it after one hour.Steps to Reproduce
This issue occurs when I run the following commands:
python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository testpypi dist/*
The text was updated successfully, but these errors were encountered: