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 pyproject.toml file specifies the following inclusive specifier for the Python version:
requires-python = ">=3.8,<=3.12"
I am unable to get poetry to accept this package with my package using Python 3.12.6.
Doing a little further investigation and questions on the poetry discord channel, I believe your specifier should be specified using an exclusive upper bound, e.g.,
requires-python = ">=3.8,<3.13"
(if you indeed need to preclude the use of Python 3.13 and greater)
The pyproject.toml file specifies the following inclusive specifier for the Python version:
I am unable to get poetry to accept this package with my package using Python 3.12.6.
Doing a little further investigation and questions on the poetry discord channel, I believe your specifier should be specified using an exclusive upper bound, e.g.,
(if you indeed need to preclude the use of Python 3.13 and greater)
Please see https://packaging.python.org/en/latest/specifications/version-specifiers/#inclusive-ordered-comparison.
If I understand correctly the specification, <=3.12 requires the version to be less than or equal to 3.12.0 which of course is not what you want.
The text was updated successfully, but these errors were encountered: