Skip to content

uv pip compile --universal gives contradictory versions of same packages #6269

@notatallshaw-gts

Description

@notatallshaw-gts

Affected versions: uv 0.2.30 to uv 0.3.0+

Steps to reproduce:

  1. Create requirements.in:
alembic==1.8.1
ipython>=8.4.0
pylint>=2.14.5
  1. Create constraints.txt:
dill==0.3.1.1
exceptiongroup==1.0.0rc8
  1. Run the uv command:
$ uv pip compile requirements.in -c constraints.txt --universal --python-version 3.10 --annotation-style line 2>/dev/null | grep "astroid=="
astroid==2.13.5           # via pylint
astroid==3.2.4 ; python_full_version < '3.11'  # via pylint

Which, if you try and install on Python 3.10 gives you:

  × No solution found when resolving dependencies:
  ╰─▶ Because you require astroid==2.13.5 and astroid{python_full_version < '3.11'}==3.2.4, we can conclude that your requirements are unsatisfiable.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingresolverRelated to the package resolver

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions