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

Another example of duplicate packages with different versions using --universal #4992

Closed
notatallshaw-gts opened this issue Jul 11, 2024 · 2 comments
Labels
bug Something isn't working preview Experimental behavior

Comments

@notatallshaw-gts
Copy link

notatallshaw-gts commented Jul 11, 2024

$ uv -V
uv 0.2.24

$ echo -e "pylint>=2.14.5\ndill==0.3.1.1" | uv pip compile --python-version 3.10.6 --universal --annotation-style line - | grep "pylint=="
Resolved 14 packages in 43ms
pylint==2.15.8
pylint==3.2.5

My original example had the dill requirement passed in via a constraint, but after cutting out hundreds of requirements and constraints was able to reproduce a minimal example with just requirements.

@konstin konstin added bug Something isn't working preview Experimental behavior labels Jul 11, 2024
@konstin
Copy link
Member

konstin commented Jul 11, 2024

Thanks for the clear reproduction!

pylint==3.25 has:

Requires-Dist: dill >=0.2 ; python_version < "3.11"
Requires-Dist: dill >=0.3.6 ; python_version >= "3.11"
Requires-Dist: dill >=0.3.7 ; python_version >= "3.12"

We're solving once for python_version >= '3.12' and once for python_version < '3.11', there's at least some part of #4732 here.

@notatallshaw-gts notatallshaw-gts changed the title Another example of duplicate lines with --universal Another example of duplicate packages with different versions using --universal Jul 11, 2024
@notatallshaw-gts
Copy link
Author

This appears to be solved in 0.2.35 (#5898?) I now get:

pylint==2.15.8 ; python_version >= '3.11'
pylint==3.2.6 ; python_version < '3.11'

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
Projects
None yet
Development

No branches or pull requests

2 participants