Skip to content

Problem parsing requirement markers #992

@lvkswrks

Description

@lvkswrks

Issue

Poetry seems to have problems parsing requirement markers as illustrated below

setup(
    # ...
    install_requires = [
        'pyarrow==0.9.0;platform_system!="darwin"',
        'pyarrow==0.9.post1;platform_system=="darwin"',
    ],
)

It will fall into an infinite recursion and crash at some point with

0: Duplicate dependencies for pyarrow
0: Different requirements found for pyarrow (0.9.0) and pyarrow (0.9.post1).
1: Version solving took 0.056 seconds.
1: Tried 1 solutions.
0: Retrying dependency resolution for Python (>=3.6,<4.0).
1: fact: test-multiline is 0.1.0
1: derived: test-multiline
1: fact: test-multiline depends on py-setup (*)

Please also see a minimal example project configuration I uploaded to Gist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions