2019-01-15 07:50:10 +08:00
Python 2.7 and 3.4 support plan
===============================
Python 2.7 EOL is fast approaching, with
upstream support `ending in 2020 <https://legacy.python.org/dev/peps/pep-0373/#id4> `__ .
Python 3.4's last release is scheduled for
`March 2019 <https://www.python.org/dev/peps/pep-0429/#release-schedule> `__ . pytest is one of
the participating projects of the https://python3statement.org.
2019-08-18 18:34:59 +08:00
The **pytest 4.6** series is the last to support Python 2.7 and 3.4, and was released in
**June 2019** . **pytest 5.0** and onwards will support only Python 3.5+.
2019-05-28 06:25:33 +08:00
Thanks to the `python_requires`_ `` setuptools `` option,
2019-01-15 07:50:10 +08:00
Python 2.7 and Python 3.4 users using a modern `` pip `` version
2019-05-28 06:25:33 +08:00
will install the last pytest `` 4.6 `` version automatically even if `` 5.0 `` or later
2019-01-15 07:50:10 +08:00
are available on PyPI.
2019-05-28 06:25:33 +08:00
While pytest `` 5.0 `` will be the new mainstream and development version, until **January 2020**
the pytest core team plans to make bug-fix releases of the pytest `` 4.6 `` series by
back-porting patches to the `` 4.6-maintenance `` branch that affect Python 2 users.
**After 2020** , the core team will no longer actively backport patches, but the `` 4.6-maintenance ``
branch will continue to exist so the community itself can contribute patches. The core team will
be happy to accept those patches and make new `` 4.6 `` releases **until mid-2020** .
2019-01-15 07:50:10 +08:00
2019-06-02 04:27:20 +08:00
.. _`python_requires`: https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
2019-10-11 19:50:38 +08:00
Technical Aspects
-----------------
The technical aspects of the Python 2.7 and 3.4 support plan (such as when releases will occurr, how to backport fixes, etc) is described in issue `#5275 <https://github.com/pytest-dev/pytest/issues/5275> `__ .