-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
needs-mreNeeds more information for reproduction, see #9452Needs more information for reproduction, see #9452
Description
Summary
In our corporate index, we have a package xxx with the same name as a package in pypi.
We use a virtual index in artifactory to resolve the packages, and when i query the simple index, it will find all packages (both from pypi and our local index).
It looks something like this, where the smaller version is in pypi, the higher in the local index:
xxx-0.1.tar.gz xxx-24.25.0-py3-none-any.whl xxx-24.25.0.tar.gz
When i run uv (even with no cache and index-strategy unsafe-best-match), it will not find the package at all. When running straight with pip, i have no issues at all. When i click the link to the index, it will show me the full list like above.
C:\Work\my-app>uv pip install xxx==24.25.0 -vvv --index-strategy unsafe-best-match --no-cache
0.000025s DEBUG uv uv 0.5.9 (0652800cb 2024-12-13)
uv_requirements::specification::from_source source=xxx==24.25.0
0.008219s DEBUG uv_python::discovery Searching for default Python interpreter in virtual environments
0.163261s DEBUG uv_python::discovery Found `cpython-3.11.11-windows-x86_64-none` at `C:\Work\my-app\.venv\Scripts\python.exe` (active virtual environment)
0.163867s DEBUG uv::commands::pip::operations Using Python 3.11.11 environment at: .venv
0.165121s DEBUG uv_fs Acquired lock for `.venv`
0.169164s DEBUG uv::commands::pip::install At least one requirement is not satisfied: xxx==24.25.0
uv_client::linehaul::linehaul
0.170651s DEBUG uv_client::base_client Using request timeout of 30s
uv_resolver::flat_index::from_entries
uv_resolver::resolver::solve
0.172669s 0ms DEBUG uv_resolver::resolver Solving with installed Python version: 3.11.11
0.172901s 0ms DEBUG uv_resolver::resolver Solving with target Python version: >=3.11.11
uv_resolver::resolver::choose_version package=root
uv_resolver::resolver::get_dependencies_forking package=root, version=0a0.dev0
uv_resolver::resolver::get_dependencies package=root, version=0a0.dev0
0.173616s 1ms DEBUG uv_resolver::resolver Adding direct dependency: xxx>=24.25.0, <24.25.0+
uv_resolver::resolver::choose_version package=xxx
uv_resolver::resolver::process_request request=Versions xxx
uv_client::registry_client::simple_api package=xxx
uv_client::cached_client::get_cacheable_with_retry
uv_client::cached_client::get_cacheable
uv_client::cached_client::read_and_parse_cache file=C:\Users\myuser\AppData\Local\Temp\.tmpUtlUAn\simple-v14\index\2669b11cd426ef45\xxx.rkyv
uv_client::cached_client::from_path_sync path="C:\\Users\\myuser\\AppData\\Local\\Temp\\.tmpUtlUAn\\simple-v14\\index\\2669b11cd426ef45\\xxx.rkyv"
uv_resolver::resolver::process_request request=Prefetch xxx>=24.25.0, <24.25.0+
0.175016s 0ms DEBUG uv_client::cached_client No cache entry for: https://my-company.com/artifactory/api/pypi/my-repo-pypi-virtual/simple/xxx/
uv_client::cached_client::fresh_request url="https://my-company.com/artifactory/api/pypi/my-repo-pypi-virtual/simple/xxx/"
uv_client::cached_client::new_cache file=C:\Users\myuser\AppData\Local\Temp\.tmpUtlUAn\simple-v14\index\2669b11cd426ef45\xxx.rkyv
uv_client::registry_client::parse_simple_api package=xxx
uv_client::html::parse url=https://my-company.com/artifactory/api/pypi/my-repo-pypi-virtual/simple/xxx/
uv_resolver::version_map::from_metadata
0.331855s 158ms DEBUG uv_resolver::resolver Searching for a compatible version of xxx(>=24.25.0, <24.25.0+)
0.331968s 159ms DEBUG uv_resolver::resolver No compatible version found for: xxx
× No solution found when resolving dependencies:
╰─▶ Because there is no version of xxx==24.25.0 and you require xxx==24.25.0, we can conclude that your requirements are unsatisfiable.
0.334206s DEBUG uv_fs Released lock at `C:\Work\my-app\.venv\.lock`
Platform
Win11 64-bit operating system, x64-based processor
Version
uv 0.5.9 (0652800 2024-12-13)
Python version
Python 3.11.11
Metadata
Metadata
Assignees
Labels
needs-mreNeeds more information for reproduction, see #9452Needs more information for reproduction, see #9452