Skip to content

Commit 4e3a91e

Browse files
fix: Remove '<4' from python_requires in packaging guide
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. The section above the lines discussed in the topic that uses compatible release syntax is also removed given that `~=3.3` also enforces `<4`. 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
1 parent c247d46 commit 4e3a91e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎source/guides/distributing-packages-using-setuptools.rst‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,10 @@ versions. For example, if your package is for Python 3+ only, write::
397397

398398
python_requires='>=3',
399399

400-
If your package is for Python 3.3 and up but you're not willing to commit to
401-
Python 4 support yet, write::
402-
403-
python_requires='~=3.3',
404-
405400
If your package is for Python 2.6, 2.7, and all versions of Python 3 starting
406401
with 3.3, write::
407402

408-
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4',
403+
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*',
409404

410405
And so on.
411406

0 commit comments

Comments
 (0)