Docutils 0.14 supports Python 2.6-2.7 and 3.3+.
This patch:
sys.version_info < (2,5)(3,2) to < (3,)python_requires to setup.py to help pip install the correct version of the package for a user's Python(3,) < sys.version_info < (3,2,4) checkTests pass locally on Python 2.7 and 3.7:
⌂66% [hugo:/tmp/docutils-code/docutils] trunk(11) ‡ python2 test/alltests.py && python3 test3/alltests.py
Testing Docutils 0.15b.dev with Python 2.7.15 on 2018-09-08 at 15:57:59
OS: Darwin 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 (darwin, Darwin-17.7.0-x86_64-i386-64bit)
Working directory: /private/tmp/docutils-code/docutils/test
Docutils package: /private/tmp/docutils-code/docutils/docutils
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 1388 tests in 10.126s
OK
Elapsed time: 12.124 seconds
Testing Docutils 0.15b.dev with Python 3.7.0 on 2018-09-08 at 15:58:10
OS: Darwin 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 (darwin, Darwin-17.7.0-x86_64-i386-64bit)
Working directory: /private/tmp/docutils-code/docutils/test3
Docutils package: /private/tmp/docutils-code/docutils/build/lib/docutils
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 1391 tests in 8.698s
OK
Elapsed time: 10.171 seconds
Here's the pip installs for docutils from PyPI for August 2018:
Source:
pypinfo --start-date 2018-08-01 --end-date 2018-08-31 docutils pyversionPython 2.6 and 3.3 are EOL (since 2013-10-29 and 2017-09-29 respectively) and no longer receiving security updates (or any updates) from the core Python team.
They're also relatively little used. Is there a schedule for dropping these EOL versions?
Thank you for the patch:
python setup.py installwill attempt an install regardless ofpython_requires.pip install -e .with older setuptools versions will ignore unknown keywords likepython_requires, and attempt an installation. The addition ofpython_requiresmakes no difference in this case.pip install -e .with newer setuptools will check the user's Python version against the constraints. If it matches, it'll install. If not, it'll say something likePACKAGE requires Python VERSION but the running Python is VERSION.pip install packagefrom PyPI is similar, except it will also check for older versions of the package until it find a package version suitable for the running Python.No, as long as at least some Python 3.x version is supported, leave it in.
Done (r8241).
Thank you for the patch.