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

Python version limited requirement in universal locking #4668

Open
davidfritzsche opened this issue Jun 30, 2024 · 3 comments
Open

Python version limited requirement in universal locking #4668

davidfritzsche opened this issue Jun 30, 2024 · 3 comments
Assignees
Labels
bug Something isn't working preview Experimental behavior resolver Related to the package resolver

Comments

@davidfritzsche
Copy link

With uv 0.2.18 the following fails

$ echo 'uv;python_version>="3.8"' | uv pip compile -p 3.7 --universal -
warning: uv is only compatible with Python 3.8+, found Python 3.7.17.
  × No solution found when resolving dependencies:

Which on one hand makes sense, as there really is no version of uv supporting Python 3.7. On the other hand, uv==X; python_version>="3.8" could be installed under Python 3.7 for any version X.

In non-universal locking, uv;python_version>="3.8" can be compiled for Python 3.7:

$ echo 'uv;python_version>="3.8"' | uv pip compile -p 3.7 -
warning: uv is only compatible with Python 3.8+, found Python 3.7.17.
Resolved 0 packages in 0.77ms
# This file was autogenerated by uv via the following command:
#    uv pip compile -p 3.7 -
@charliermarsh
Copy link
Member

Oh thank you, I think this is the same as #4669 -- sorry, I missed that you created this.

@charliermarsh
Copy link
Member

I'm going to merge into #4669. Good bug!

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2024
@charliermarsh charliermarsh added bug Something isn't working resolver Related to the package resolver preview Experimental behavior labels Jun 30, 2024
@charliermarsh charliermarsh reopened this Jul 1, 2024
@charliermarsh
Copy link
Member

Re-opening because this case is a little different than the NumPy one and they'll have separate PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior resolver Related to the package resolver
Projects
None yet
Development

No branches or pull requests

2 participants