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

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 area/config Related to configuration management kind/feature Feature requests/implementations area/publishing Related to PyPI/PEP 503 publishing labels Aug 2, 2019
@sdispater sdispater added this to the 1.0 milestone Aug 2, 2019
@sdispater sdispater merged commit e5e706a into develop Aug 2, 2019
@sdispater sdispater deleted the pypi-tokens branch August 2, 2019 12:45
Copy link

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

Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
area/config Related to configuration management area/publishing Related to PyPI/PEP 503 publishing kind/feature Feature requests/implementations
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants