-
Notifications
You must be signed in to change notification settings - Fork 310
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
Document use of distutils/index-server for managing API tokens #924
Comments
You found the right issue which should have led you to #496 (comment) which I believe contains the fix you want |
@sigmavirus24 That worked great, thanks! I added:
and twine worked. I'll turn this into a documentation issue in case docs help people in the short term. It seems like #496 touches on the larger topic of the best way to implement it. |
So just a request to add this helpful tip to the docs. |
I think this should be covered by https://packaging.python.org/en/latest/specifications/pypirc/, which is linked from Twine's configuration docs:
I'd prefer for that document to be the authority for configuration, and not duplicate its content in Twine's docs. However, as a maintainer of Twine and packaging.python.org, I'm open to suggestions on how to improve the spec and/or refer to it from Twine. |
@bhrutledge I understand not wanting to duplicate authoritative information. In my case I needed to use multiple API keys, extrapolated a likely configuration, and failed. Then I used a search engine, came across one or two github issues about the issue, and still failed. If this is down to me just being impatient, failing at internet-fu, or just plain RTM, then please ignore. If it seems like sufficient number of people are running into this, then maybe change "see the specification" to "see the specification and examples" in the docs? |
I don't think this is a failure on your part. I think Twine's docs could be more descriptive about why one might to use a |
The "using another package index" example should have been enough. The more I see now, the lazier I was then. |
No need to be harsh on yourself. We're not trying to imply you were being lazy, just that we weren't looking at different things than you were to find the information. Different things can make it hard to find information we need when we need it and I think we'd like to understand what might have been helpful if it has we're different for you because that might help someone else |
Your Environment
Your operating system: Ubuntu 20.04
Version of python you are running: 3.8.3
How did you install twine? Did you use your operating system's package manager or pip or something else? conda
Version of twine you have installed (include complete output of):
jupyter-rsession-proxy
My ~/.pypirc:
The Issue
I'm trying pypi api tokens for the first time. I created one and created a section in ~/.pypirc, however twine isn't seeing it:
I was only able to upload by replacing
[jupyter-rsession-proxy]
with[pypi]
in the config file, commenting out the normal[pypi]
section, and then omitting-r jupyter-rsession-proxy
from the command line arguments.This issue resembles #564, though my ~/.pypirc definitely exists.
The text was updated successfully, but these errors were encountered: