-
Notifications
You must be signed in to change notification settings - Fork 739
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
uv sync/add
does not use (private) extra-index-url/index-url specified in pyproject.toml (but works from command line)
#7573
Comments
I think extra index URL needs to be a list in the TOML. Does that fix it? |
Unfortunately not. I tried [tool.uv]
extra-index-url = ["https://pypi.org/simple"]
index-url = ["https://<user>:<password>@secretinos.com/artifactory/api/pypi/cheese/simple"] (also swapping which is extra). Same |
|
Ha, that did it. Apologies for the noise. Did i miss this in the docs somewhere? |
Are there any warnings in the |
There's just the reference schema here: https://docs.astral.sh/uv/reference/settings/#extra-index-url |
I feel like this is a duplicate, but I didn't see precisely this - apologies in advance!
I am trying to install a package from a private index that requires authentication. The following works:
$ uv add super-secret-package --index-url https://<user>:<password>@secretinos.com/artifactory/api/pypi/cheese/simple --extra-index-url https://pypi.org/simple
Instead adding the indexes by hand to the
pyproject.toml
asand then
$ uv sync -vvv
or$ uv add -vvv super-secret-package
fails likeI also tried swapping
index-url
andextra-index-url
with the same result.The text was updated successfully, but these errors were encountered: