Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Packages with environment markers are not parsed correctly #247

Description

@caniko

Describe the bug
The bpy package is configured with different versions depending on the current OS:

bpy = [
    {"version" = "^2.91a0", markers="sys_platform!='win32'"},
    {"version" = "^2.82.1", markers="sys_platform=='win32'"}
]

The plugin doesn't recognize the markers, and PyCharm, thereby, believes that I have the wrong version installed:
image

To Reproduce
Add a package to pyproject.toml with the same method as mentioned above PyCharm should react if your current version isn't the 1st one on the list.

Expected behavior
The plugin should iterate through the markers (there can be multiple per entry), and figure out the correct version before alarming the user of the improper version being installed.

Environments (please complete the following information):

  • IDE: PyCharm Community 2021.1
  • OS: Windows 10
  • Poetry Version 1.1.7
  • Plugin version 1.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions