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

avoid azure artifacts PAT in pyproject.toml #11696

Open
zkurtz opened this issue Feb 21, 2025 · 2 comments
Open

avoid azure artifacts PAT in pyproject.toml #11696

zkurtz opened this issue Feb 21, 2025 · 2 comments
Labels
question Asking for clarification or support

Comments

@zkurtz
Copy link
Contributor

zkurtz commented Feb 21, 2025

Question

I defined UV_INDEX following this documentation.

But then adding any pypi package like, say, uv add pandas ends up adding

[[tool.uv.index]]
url = ...

to my pyproject.toml, where the url includes my PAT. I would rather not have my PAT git-tracked. What's the recommended solution?

Platform

Darwin 24.3.0 arm64

Version

uv 0.5.4

@zkurtz zkurtz added the question Asking for clarification or support label Feb 21, 2025
@FishAlchemist
Copy link
Contributor

Since you're already using [[tool.uv.index]] in your pyproject.toml, perhaps you could also try this? However, I'm not sure from which version this feature is supported.
https://docs.astral.sh/uv/configuration/indexes/#providing-credentials

@zkurtz
Copy link
Contributor Author

zkurtz commented Feb 22, 2025

That worked! Here is a PR to clarify the docs #11709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants