Skip to content
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 ignores incompatible requires-python #9020

Closed
zeevro opened this issue Nov 11, 2024 · 3 comments
Closed

uv ignores incompatible requires-python #9020

zeevro opened this issue Nov 11, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists question Asking for clarification or support

Comments

@zeevro
Copy link

zeevro commented Nov 11, 2024

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
Copy link
Member

zanieb commented Nov 11, 2024

Please see the extensive discussion and numerous linked issues in #4022

@zanieb zanieb added duplicate This issue or pull request already exists question Asking for clarification or support labels Nov 11, 2024
@zeevro
Copy link
Author

zeevro commented Nov 11, 2024

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

@zanieb
Copy link
Member

zanieb commented Nov 12, 2024

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

@zanieb zanieb closed this as completed Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants