Skip to content
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 inclusive versioning specifier for 3.12 #25

Open
mdw00d opened this issue Nov 26, 2024 · 0 comments
Open

Incorrect inclusive versioning specifier for 3.12 #25

mdw00d opened this issue Nov 26, 2024 · 0 comments

Comments

@mdw00d
Copy link

mdw00d commented Nov 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant