Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export saves incorrect markers in 1.9.0 #319

Open
onazaruk opened this issue Jan 15, 2025 · 1 comment
Open

Export saves incorrect markers in 1.9.0 #319

onazaruk opened this issue Jan 15, 2025 · 1 comment

Comments

@onazaruk
Copy link

onazaruk commented Jan 15, 2025

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?

@radoering
Copy link
Member

I cannot reproduce. Can you provide a minimal (complete) pyproject.toml?

By the way, your snippet looks wrong: It shows a dependency group with a python constraint. The python constraint should be in tool.poetry.dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants