Skip to content
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

Add support for PyPI API tokens #1275

merged 1 commit into from Aug 2, 2019

Add support for PyPI API tokens #1275

merged 1 commit into from Aug 2, 2019


Copy link

@sdispater sdispater commented Aug 2, 2019

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

PyPI recently added support for token-based authentication to upload packages:

This PR adds support for that use case in Poetry.

Users can now configure tokens via the config command:

poetry config pypi-token.pypi my-token

It's also possible to provide an environment variable holding the value of the token:

export POETRY_PYPI_TOKEN_PYPI=my-token

@sdispater sdispater added Configuration Feature Publishing labels Aug 2, 2019
@sdispater sdispater added this to the 1.0 milestone Aug 2, 2019
@sdispater sdispater added this to In progress in 1.0 via automation Aug 2, 2019
@sdispater sdispater merged commit e5e706a into develop Aug 2, 2019
4 checks passed
1.0 automation moved this from In progress to Done Aug 2, 2019
@sdispater sdispater deleted the pypi-tokens branch Aug 2, 2019
@sdispater sdispater moved this from Done to Closed in 1.0 Jan 5, 2020
Copy link

@danieleades danieleades commented May 25, 2020

just for some clarification, is this intended to support token-based authentication on alternative pypi registries, or only the public registry?

I can confirm that i can add packages from my local (artifactory) pypi registry using username/password auth, but not with an API key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Configuration Feature Publishing
No open projects

Successfully merging this pull request may close these issues.

None yet

2 participants