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

fix: Remove '<4' from python_requires #6333

Conversation

matthewfeickert
Copy link
Contributor

@matthewfeickert matthewfeickert commented Jan 18, 2023

Resolves #6332

The

python_requires=">=3.7, <4",

cap was added in PR #6091.

As discussed in https://discuss.python.org/t/use-of-less-than-next-major-version-e-g-4-in-python-requires-setup-py/1066 and other places by the PyPA, use of upper bounds with python_requires for future versions of Python is unintended use of python_requires and actively discouraged.

c.f. pypa/packaging.python.org#850 for further detail.

* As discussed in https://discuss.python.org/t/use-of-less-than-next-major-version-e-g-4-in-python-requires-setup-py/1066
  and other places by the PyPA, use of upper bounds with python_requires
  for future versions of Python is unintended use of python_requires and
  actively discouraged.
@matthewfeickert
Copy link
Contributor Author

This is ready for review.

@nateprewitt
Copy link
Member

It looks like this is a pretty consistent standard you've helped drive across projects. Given the comments in the discussion from the other PyPA maintainers, I think this is reasonable. Thanks @matthewfeickert!

@nateprewitt nateprewitt merged commit 16a17a3 into psf:main Jan 19, 2023
@matthewfeickert matthewfeickert deleted the fix/remove-less-than-4-from-python-requires branch January 19, 2023 05:37
matthewarmand pushed a commit to matthewarmand/requests that referenced this pull request May 10, 2023
* As discussed in https://discuss.python.org/t/use-of-less-than-next-major-version-e-g-4-in-python-requires-setup-py/1066
  and other places by the PyPA, use of upper bounds with python_requires
  for future versions of Python is unintended use of python_requires and
  actively discouraged.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove '<4' from python_requires
2 participants