Skip to content

Commit

Permalink
fix: Remove '<4' from python_requires in packaging guide
Browse files Browse the repository at this point in the history
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 there can be some side effects of adding `<4` to a
library's python_requires. This PR removes it, as requested in the
discuss.python question.

Additional references of problems known to Matthew for posterity:

* Twitter threads:
  - https://twitter.com/HEPfeickert/status/1362170933658738701
  - https://twitter.com/nicholdav/status/1366978826790666240
* GitHub Issues:
  - python-poetry/poetry#3747
  • Loading branch information
matthewfeickert committed Mar 3, 2021
1 parent c247d46 commit b8f2a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/guides/distributing-packages-using-setuptools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ Python 4 support yet, write::
If your package is for Python 2.6, 2.7, and all versions of Python 3 starting
with 3.3, write::

python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4',
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*',

And so on.

Expand Down

0 comments on commit b8f2a9b

Please sign in to comment.