Skip to content

Incorrect inclusive versioning specifier for 3.12 #25

@mdw00d

Description

@mdw00d

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions