You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The markers in poetry.lock show the wrong value sometimes. Moreover, this behavior can impact poetry-plugin-export that relies on that value since version 1.9.0 of the plugin.
As shown in the example below, it gives "platform_system == \"Linux\"" when no condition is expected in the marker. At first look, the issue seems related to including a condition on the python version in the marker.
# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand.
[[package]]
name = "numpy"
version = "2.0.2"
description = "Fundamental package for array computing in Python"
optional = false
python-versions = ">=3.9"
groups = ["main"]
markers = "platform_system == \"Linux\"" <--- expected nothing
files = [
{file = "numpy-2.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:51129a29dbe56f9ca83438b706e2e69a39892b5eda6cedcb6b0c9fdc9b0d3ece"},
{file = "numpy-2.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f15975dfec0cf2239224d80e32c3170b1d168335eaedee69da84fbe9f1f9cd04"},
[...]
Description
Issue (Bug)
The
markers
inpoetry.lock
show the wrong value sometimes. Moreover, this behavior can impactpoetry-plugin-export
that relies on that value since version1.9.0
of the plugin.As shown in the example below, it gives
"platform_system == \"Linux\""
when no condition is expected in the marker. At first look, the issue seems related to including a condition on the python version in the marker.Cheers!
Reproducible steps
1. Configuration
pyproject.toml
2. Generate lockfile
Output
poetry.lock
3. Output using poetry-plugin-export==1.8.0
poetry export --format=requirements.txt
4. Output using poetry-plugin-export==1.9.0
poetry export --format=requirements.txt
Workarounds
Downgrading
poetry==1.8.5
. Downgradingpoetry-plugin-export==1.8.0
.Poetry Installation Method
pip
Operating System
macOS, Linux
Poetry Version
2.1.1
Poetry Configuration
Python Sysconfig
sysconfig.log
Example pyproject.toml
Poetry Runtime Logs
poetry-runtime.log
The text was updated successfully, but these errors were encountered: