-
Notifications
You must be signed in to change notification settings - Fork 772
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
Private repository as a source #6421
Comments
So, today, you would do something like this in your [tool.uv]
extra-index-url = ["https://pypi.example.org/simple/"] uv will then look in We'll likely add a more granular index API in the future that looks more like what you get in Poetry, PDM, or Rye. |
If you want to replace PyPI entirely, you can do: [tool.uv]
index-url = "https://pypi.example.org/simple/" |
Alternatively, you can define these globally in extra-index-url = ["https://pypi.example.org/simple/"] |
Thanks for the response I guess the setting Looking forward to more granular API in the future. One thing I would like to prevent via the future API is dependency confusion attacks. |
Makes sense. Our default strategy is more resilient to such attacks than pip (since, if a package exists on your index, we won't even look at PyPI, even if a more recent version is available there), but we do want to add an API that allows for explicit package-to-index assignments. |
Regarding private source repository, is there a way to provide credentials? |
The simplest way would be to add the private source repo as
But as you can imagine this not the safest option. A bit more cumbersome but viable option is to specify the index and credentials with the
What I would like to see in the future is something similar to Poetry's way of doing this. In addition to simple addition of sources they also provide the following way to add credentials to the sources.
There are other options that |
@NevoleMarek thanks, I'll check it out! |
Actually I like the idea of using keyring and KWallet integration. Way better than storing passwords in open text. |
Still no alternative to the |
We support |
Hi, I d'like to transition from
poetry
touv
. What I am missing is a way of using private repositories as source for packages.Poetry allows to add private repositories like so:
poetry source add --priority=supplemental foo https://pypi.example.org/simple/
and then to install package from the repository like so:
poetry add --source foo private-package
Can this be sensibly done using
uv
?I guess it could somehow be done via HTTP URLs but that seems a bit cumbersome.
The text was updated successfully, but these errors were encountered: