The poetry export
(and maybe lock
) command does not handle dependencies with "bifurcated requirements".
#4381
Closed
3 tasks done
Labels
kind/bug
Something isn't working as expected
-vvv
option).(No exception occurs re the last checkbox question)
Issue
The
poetry export
command produces an incorrect requirements-style lock file when interior dependency nodes contain "bifurcated requirements". By "bifurcated requirements" (my made up terminology), I meanRequires-Dist
metadata like so:In particular the exported requirements are:
Instead of the expected:
This issue also appears to affect the
poetry.lock
file itself so I suspect the issue isn't in the export code, but in the code that generates the lock itself.Below are the command line details of my experiment. Note that Poetry does get this right when the "bifurcated requirements" are present in the top-level Poetry managed project's
pyproject.toml
. The failure to generate a correct lock only occurs for interior nodes in the resolve.1st I create a project (
poject1
) that uses "bifurcated requirements" and everything works as expected:Next I try to consume that project as a dependency in a different Poetry managed project:
The text was updated successfully, but these errors were encountered: