Skip to content

Export saves incorrect markers in 1.9.0 #319

@onazaruk

Description

@onazaruk

Export command:
poetry export --only acceptance --without-hashes > acceptance_reqs.txt

pyproject.toml

[tool.poetry.group.acceptance.dependencies]
python = "^3.11.7"
behave = {version = "1.2.6", markers = "python_version >= '3.11' and python_full_version < '4.0.0'" }

Version 1.8.0 output:

behave==1.2.6 ; python_full_version >= "3.11.7" and python_full_version < "4.0.0"

Version 1.9.0 output:

behave==1.2.6 ; python_version >= "3.12" and python_full_version < "4.0.0" and (platform_system == "Windows" or platform_system == "Darwin") or python_version >= "3.12" and python_full_version < "4.0.0" and (platform_system != "Windows" and platform_system != "Darwin")

Poetry version 2.0.1
Expected python version constraint is >= "3.11"
Is that a bug, or am I missing any extra configuration for v1.9.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions