Skip to content

pip incompatibility #2383

@AntoineD

Description

@AntoineD

Hello,

via tox with tox-uv, I got different environment packges as compared to tox without tox-uv.

This can be reproduced out of tox and summarized to the following situation:

  • package A depends on B
  • the last release of A on PyPI is 2.X.Y which depends on B==1
  • the development version of A in git depends on B==2
  • requirements.txt (generated with uv pip compile) contains:
    • A @ git+https://...
    • B==2
  • in a fresh environment
  • first, uv pip install -r requirements.txt installs:
    • A==2.X.Y.dev219+g852ddbeb
    • B==2
  • then, uv pip install 'A>=2' installs
    • A==2.X.Y
    • B==1
  • with pip, the last command does not update A and B in the environment.

Is this intended?
If yes, is there a workaround to get the same behavior as pip?

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions