-
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
Python requirement of package completely ignored by poetry #5591
Python requirement of package completely ignored by poetry #5591
Comments
Workaround: dm-control = {version = "^1.0.2", python = ~3.9,<=3.10"} |
the suggestion is trying to tell you that you could set the project-level python property, it is not intending to be about any property on this particular package. |
@abn Thanks! The workaround does indeed work for this example, but in my actual project I am using Python 3.8, so "~3.8" would mean something different than ">=3.8,<=3.10". I still tried it but then I got the same error message (again for dm-control, but with the python property set to "~3.8") when I tried to add another dependency (flake8)... @dimbleby Thanks, but as I am only using this package as a development dependency I don't want to change the Python version of the whole project. |
@onnoeberhard I wasn't telling you to make that change, I was telling you what the error message was saying. ie
is a misunderstanding of what the suggestion was. Having said which, I'm not completely sure that I was right about that! |
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. |
-vvv
option).Issue
I created a completely empty folder with the following
pyproject.toml
file:Running
poetry update
yields the following error message:The suggestion is to "
set the python property to ">=3.9,<=3.10"
", which I have done. I can only conclude that poetry completely ignores this property.The text was updated successfully, but these errors were encountered: