Open NoahMDMi opened 1 month ago
We are using devpi
server and having problems as well.
First problem was that extra-index-url
was failing to find package (whereas pip
was successful), however using find-links
worked, so we did not pay much attention.
Yesterday we tried to bump minor version 0.0.26 -> 0.1.0 (tried 1.0.0 as well) and as long as that new package (0.1.0) is in devpi
we cannot install any version of our package.
Problems persist with older (0.1.39) and most recent (0.2.22) version of uv
.
Can you say more about your setup? Which index is the index-url and which is the extra-index-url? Does the package exist on both? Have you tried using the index-strategy setting?
In my case, we have packages that are only available on the manual repository. We specify the manual repository as the extra-index-url
. The index-url
is the default, PyPI.
I believe pip
checks the extra-index-url
after it is unable to find the package on the index-url
, which is desired, since our requirements.txt
refers to packages from PyPI, and from the manual repository (no overlap).
I'm not sure the index-strategy
setting applies here, since uv pip
is checking the extra-index-url
, it's just not finding the packages/versions (where pip
finds them without issue)
Let me know if there's any more information I can provide! 😄
We have our package only in our internal (http
) devpi
server as well, which is the "extra" index (provided via find-links
, because extra-index-url
did not work). Have not tried index-strategy
, but we tried installing specifically only that package via CLI to no success, and I assume that index-strategy
does not influence this scenario.
I can confirm the same problem. uv
for some reason doesn't work with non-simple devpi indexes.
Here's what I tried:
pip install --index-url 'https://example.cz/me/test' 'coverage' --force-reinstall # Works
uv pip install --index-url 'https://example.cz/me/test' 'coverage' --force-reinstall # Doesn't work
uv pip install --extra-index-url 'https://example.cz/me/test' 'coverage' --force-reinstall # Doesn't work
uv pip install --index-url 'https://example.cz/me/test/+simple/' 'coverage' --force-reinstall # Works
uv pip install --extra-index-url 'https://example.cz/me/test/+simple/' 'coverage' --force-reinstall # Works
uv pip install --find-links 'https://example.cz/me/test' 'coverage' --force-reinstall # Works
It's not really easy to find out, simple index needs to be used (see also #706).
Any update on this? Updated to the latest version of uv
(0.3.0) and I am still seeing this issue :(
We don't have support for non-simple indexes. It seems reasonable to add support, but it's not high priority.
Overview
I have a manual repository running in IIS on Windows server. Installing packages from the repository works fine with
pip
when specified as anextra-index-url
, but when usinguv pip
, it seems to be unable to determine which versions are available, and thus does not fails to resolve.Note that this is a manual repository not a simple repository, which has API endpoints. (Though in my limited experimentation with
devpi
,uv
also was unable to resolve dependencies)Is there any way to fix this? I love
ruff
and would be interested in usinguv
as well :smile:Thanks!
Using
pip
Using
uv pip
uv
detailsPlatform: Windows 10 Version: uv 0.2.23 (4bc36c0cb 2024-07-08)