-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Incorrect poetry export
output with dependency conditional on Python version
#5141
Comments
The issue seems to be fixed in master, maybe even in the latest 1.2.0 pre-release. |
really? when I tried I got this mess
|
@dimbleby Hmm, in my output the first line without any markers is missing. It is possible that my state of master was not clean, but I thought I used a clean 1.2.0a2 and got the same result. The second line seems messy but could be correct. Poetry is just not able to simplify the constraint. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: MacOS 12.2
Poetry version: 1.1.12
Issue
Running
poetry export --format requirements.txt --without-hashes
with the belowpyproject.toml
produces an invalid requirements file, specifically:which will fail pip for any python version of 3.7 or later. Presumably the
click==7.1.2
dependency should include apython_version < "3.7"
, but it does not.Minimal pyproject.toml to reproduce this issue:
The text was updated successfully, but these errors were encountered: