Packages with environment markers are not parsed correctly
caniko opened this issue · 1 comments
caniko commented
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:
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