Allow some mutually exclusive same name deps #234
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Given a
pyproject.toml
that contains:Running
poetry export
produces:Which is strictly wrong. Attempting to install this on a
darwin
system will fail.By stripping the package version of the "local" portion (
+cpu
), then due to how they're ordered by default in thepoetry.lock
file, both dependencies are able to be correctly included.With this change,
poetry export
correctly produces:P.S.
I also think things look better with the built-in
textwrap.dedent
to keep relevant text in-line rather than to the left.MARKER_PY27_PY36_ONLY
was added due to line-length issues.