Skip to content

fix(pypi): explain the conflicting lock entries of a package - #6

Draft
aignas wants to merge 3 commits into
feat.aignas.pycross-parity-03-lock-modelfrom
feat.aignas.pycross-parity-04-uv-conflicts
Draft

aignas wants to merge 3 commits into
feat.aignas.pycross-parity-03-lock-modelfrom
feat.aignas.pycross-parity-04-uv-conflicts

Conversation

@aignas

@aignas aignas commented Nov 19, 2026

Copy link
Copy Markdown
Owner

A lock file can have more than one entry of a package for the same platform,
e.g. when it uses the uv [tool.uv] conflicts setting to lock different
versions for different extras or dependency groups. The hub cannot select
between them, and the module extension failed with a message that only named
the two conflicting repositories, which does not tell the user what is wrong.

The error now explains the cause and suggests using a separate hub for each
of the conflicting groups. It goes through the hub logger, so it is covered
by a unit test.

Stack (fork test PRs): on top of #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant