Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Switch to using an API upload token? #6

Closed
ncoghlan opened this issue Dec 30, 2019 · 7 comments
Closed

Switch to using an API upload token? #6

ncoghlan opened this issue Dec 30, 2019 · 7 comments

Comments

@ncoghlan
Copy link

Now that PyPI supports using API upload tokens for deployments, it would be nice to use that in this example.

Travis cover using an API token with their native deployment tooling here: https://docs.travis-ci.com/user/deployment/pypi/

The main API token docs are here: https://pypi.org/help/#apitoken

The minimalist update to the current example would be to:

  1. Change the example username to __token__
  2. Note that TWINE_PASSWORD needs to be set to the API token, rather than the user password
@joerick
Copy link
Owner

joerick commented Jan 10, 2020

Hi @ncoghlan ! Thanks for the note! We've been tracking this over in pypa/cibuildwheel#154, too. I've been holding off on recommending this quite yet because I think the feature is still in beta, in case something changes. Is that still the case, or is this very likely to be stable from now on?

@ncoghlan
Copy link
Author

My understanding is that the beta testing is going well, so incompatible changes are unlikely, but tagging @brainwane to ask if there is an ETA for the "beta" qualifier being dropped.

@brainwane
Copy link

Good question! pypi/warehouse#5661 (comment) is where I've been tracking what we need in order for the API token feature to emerge from beta. Right now there's a hard-to-understand error on the command line when users have a particular kind of credential problem pypi/warehouse#6232 , and I believe announcing the feature without fixing that would lead to a bunch of support requests and similar headaches. I've asked Warehouse developers to expedite fixing it so we can come out of beta.

@joerick
Copy link
Owner

joerick commented Jan 16, 2020

Thanks @brainwane ! Looks like things are moving, I'll keep an eye on those threads

@joerick
Copy link
Owner

joerick commented Jan 18, 2020

Done! Thank you both!

@ncoghlan
Copy link
Author

Thank you for cibuildwheel!

@brainwane
Copy link

@joerick and @ncoghlan thanks for causing me to take a fresh look and re-nudge the beta features!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants