astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
26.12k stars 763 forks source link

uv ignores incompatible requires-python #9020

Closed zeevro closed 1 day ago

zeevro commented 2 days ago

uv 0.5.1 typing==3.7.4.3 has Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* typing==3.10.0.0 has Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <3.5

$ uv pip compile -p3.12 --no-cache <(echo typing)
Resolved 1 package in 390ms
# This file was autogenerated by uv via the following command:
#    uv pip compile -p3.12 --no-cache /dev/fd/63
typing==3.10.0.0
    # via -r /dev/fd/63
$ uvx -p3.12 pip install --no-cache --dry-run typing
Installed 1 package in 3ms
Collecting typing
  Downloading typing-3.7.4.3.tar.gz (78 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Would install typing-3.7.4.3
$ uvx -p3.12 pip install --no-cache --dry-run typing==3.10
ERROR: Ignored the following versions that require a different python version: 3.10.0.0 Requires-Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <3.5; 3.7.4.2 Requires-Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <3.5
ERROR: Could not find a version that satisfies the requirement typing==3.10 (from versions: 3.5.0b1, 3.5.0, 3.5.0.1, 3.5.1.0, 3.5.2.2, 3.5.3.0, 3.6.1, 3.6.2, 3.6.4, 3.6.6, 3.7.4, 3.7.4.1, 3.7.4.3)
ERROR: No matching distribution found for typing==3.10
zanieb commented 2 days ago

Please see the extensive discussion and numerous linked issues in https://github.com/astral-sh/uv/issues/4022

zeevro commented 2 days ago

Goddamnit, GitHub's search is so useless.. 😠 Sorry

zanieb commented 1 day ago

No problem, their search seriously is bad. I struggle to find issues I know exist.