agraph-python icon indicating copy to clipboard operation
agraph-python copied to clipboard

Incorrect inclusive versioning specifier for 3.12

Open mdw00d opened this issue 1 year ago • 0 comments

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)

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.

mdw00d avatar Nov 26 '24 13:11 mdw00d