Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 28 additions & 27 deletions doc/neps/nep-0028-deprecation_policy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
NEP 28 - A standard community policy for dropping support of old Python and Numpy versions
==========================================================================================

:Author: Thomas A Caswell <tcaswell@gmail.com>, Andreas Mueller, Brian Granger, Madicken Munk, Ralf Gommers, Matt Haberland, Matthias Bussonnier <bussonniermatthias@gmail.com>, Stefan van der Walt

:Author: Thomas A Caswell <tcaswell@gmail.com>, Andreas Mueller, Brian Granger, Madicken Munk, Ralf Gommers, Matt Haberland <mhaberla@calpoly.edu>, Matthias Bussonnier <bussonniermatthias@gmail.com>, Stefan van der Walt
:Status: Draft
:Type: Informational Track
:Created: 2019-07-13
Expand All @@ -13,7 +14,7 @@ Abstract

All projects across the ecosystem should adopt a common time window
based policy for increasing the minimum version of Python and numpy
that down stream projects support. By standardizing this policy
that downstream projects support. By standardizing this policy
across community we will make it easier for down stream projects to
plan.

Expand All @@ -25,7 +26,7 @@ Detailed description
When making a new major or minor release, projects should support all
minor versions of ``CPython`` initially released in the prior 40
months from their anticipated release date and all minor version of
``numpy`` release in the prior 24 months.
``numpy`` released in the prior 24 months.


The diagram::
Expand All @@ -40,10 +41,10 @@ The diagram::
|----------------------------------------> Jul20

shows the support windows for ``CPython``. A project with a minor
release in Feb19 or Dec19 should support py36 or newer whereas a
release in Feb19 or Dec19 should support py36 and newer whereas a
project released in Jul20 should support py37 and newer.

The current CPython release cadence is 18mo so a 40 month window
The current CPython release cadence is 18 months so a 40 month window
ensures that there will always be at least two versions of ``CPython``
in the window. By padding the window by 4 months from the anticipated
``CPython`` cadence we avoid the edge cases where a project releases
Expand All @@ -57,10 +58,10 @@ on historical release dates and a project's plans, the decision to drop
support for a given version of ``CPython`` can be made very early in
the release process.

There will be some unavoidable miss match in supported version of
There will be some unavoidable mismatch in supported version of
``CPython`` between packages immediately after a version of
``CPython`` ages out. However this should not last longer that one
release cycle of each of the projects and when a given project
``CPython`` ages out. However this should not last longer than one
release cycle of each of the projects, and when a given project
does a minor or major release, it is guaranteed that there will be a
stable release of all other projects that support the set of
``CPython`` the new release will support.
Expand All @@ -69,21 +70,21 @@ stable release of all other projects that support the set of
Implementation
--------------

We suggest that all project adopt the following language into their
We suggest that all projects adopt the following language into their
development guidelines:


- support minor versions of ``CPython`` initially released
40 months prior to our planned release date.
- always support at least the 2 latest versions of ``CPython``.
40 months prior to our planned release date
- always support at least the 2 latest versions of ``CPython``
- support minor versions of ``numpy`` initially released in the 24
months prior to our planned release date or oldest that supports the
minimum python version (which ever is higher)
minimum Python version (whichever is higher)

We will bump the minimum python and numpy versions as we can on
every minor and major release, but never on a patch release
We will bump the minimum Python and numpy versions as we can on
every minor and major release, but never on a patch release.

For other dependencies adopt similar time windows of the same length
For other dependencies, adopt similar time windows of the same length
or shorter than 24 months.


Expand All @@ -100,39 +101,39 @@ Alternatives
Ad-Hoc
~~~~~~

Projects could on a every release evaluate if they want to increase
the minimum version of python supported. While this is a notionally
simple policy, it makes it hard for down-stream users to predict what
the future minimum versions will be. There is no objective threshold
Projects could on every release evaluate if they want to increase
the minimum version of Python supported. While this is a notionally
simple policy, it makes it hard for downstream users to predict what
the future minimum versions will be. As there is no objective threshold
to when the minimum version should be dropped, it is easy for these
discussions to devolve into bike shedding and acrimony.


All PSF supported versions
~~~~~~~~~~~~~~~~~~~~~~~~~~
All Python Software Foundation supported versions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is a very clear and conservative approach. However it means that
This is a very clear and conservative approach. However, it means that
there is 4 year lag between when new language features come into the
language and when the projects are able to use them. Additionally,
for projects that have a significant component of compiled extensions
this requires building many binary artifacts for each release.

For the case of numpy, many projects carry work-arounds to bugs that
For the case of numpy, many projects carry workarounds to bugs that
are fixed in subsequent versions of numpy. Being proactive about
increasing the minimum version of numpy will allow down-stream
increasing the minimum version of numpy will allow downstream
packages to carry fewer version-specific patches.



Default version on Linux distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The policy could be support the version of python that ships by
The policy could be to support the version of Python that ships by
default in the latest Ubuntu LTS or CentOS/RHEL release. However, we
would still have to standardize across the community which
distribution we are following.

By following the versions supported by major linux distributions we
By following the versions supported by major Linux distributions, we
are giving up technical control of our projects to external
organizations that may have different motivations and concerns than we
do.
Expand All @@ -142,7 +143,7 @@ N minor versions of Python

Given the current release cadence of the CPython, the proposed time
(40 months) is roughly equivalent to "the last two" CPython minor
versions. However, if CPython changes their release cadence any rule
versions. However, if CPython changes their release cadence, any rule
based on the number of minor releases will need to be changed.


Expand Down