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

Enable persistent configuration of authenticated index URL #651

Closed
charliermarsh opened this issue Dec 14, 2023 · 1 comment
Closed

Enable persistent configuration of authenticated index URL #651

charliermarsh opened this issue Dec 14, 2023 · 1 comment
Assignees
Labels
enhancement New feature or improvement to existing functionality

Comments

@charliermarsh
Copy link
Member

For users of AWS CodeArtifact and other similar services, we need a way for users to provide and persist authentication credentials that lives outside of the project.

You can see an example in CodeArtifact's pip documentation, where they suggest:

pip config set site.index-url https://aws:$CODEARTIFACT_AUTH_TOKEN@my_domain-111122223333.d.codeartifact.region.amazonaws.com/pypi/my_repo/simple/

Similarly, Poetry users tend to do something like:

  1. Retrieve an Authorization Token (https://docs.aws.amazon.com/cli/latest/reference/codeartifact/get-authorization-token.html).
  2. Add a repository URL to Poetry (https://python-poetry.org/docs/configuration/#repositoriesnameurl)
  3. Configure that repository to use an authorization token (https://python-poetry.org/docs/configuration/#http-basicnameusernamepassword) via, e.g., poetry config http-basic.$CODE_ARTIFACT_DOMAIN aws $CODE_ARTIFACT_AUTH_TOKEN.
@charliermarsh charliermarsh added the enhancement New feature or improvement to existing functionality label Dec 15, 2023
@zanieb zanieb self-assigned this Feb 16, 2024
@charliermarsh
Copy link
Member Author

You can now put this in your user uv.toml which seems ok. It'd be nice to have a CLI for configuring it.

zanieb added a commit that referenced this issue Aug 22, 2024
…upport (#6410)

<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

Docs at https://docs.astral.sh/uv/pip/compatibility/ still say:

> the future, uv will also support persistent configuration in its own
configuration file format (e.g., pyproject.toml or uv.toml or similar).
For more, see [#651](#651).

I think that's done now (?), so updated these to link to
https://docs.astral.sh/uv/configuration/files/

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants