Skip to content

Commit 2e0b274

Browse files
amuellerGaelVaroquaux
authored andcommitted
add warning about Python2.7 support drop (scikit-learn#11545)
* add warning about Python2.7 support drop * Add python27 drop to readme, rephrase whatsnew * add warning to install.rst * add 0.20 to news, add remark that 0.21 will drop 2.7 * Mention 3.4 * fix * also mention 3.4 * DOC: note in bold
1 parent 58fa28e commit 2e0b274

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ scikit-learn requires:
5353
- NumPy (>= 1.8.2)
5454
- SciPy (>= 0.13.3)
5555

56+
**Scikit-learn 0.20 is the last version to support Python2.7.**
57+
Scikit-learn 0.21 and later will require Python 3.5 or newer.
58+
5659
For running the examples Matplotlib >= 1.3.1 is required. A few examples
5760
require scikit-image >= 0.9.3 and a few examples require pandas >= 0.13.1.
5861

doc/index.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@
207207
<li><em>On-going development:</em>
208208
<a href="/dev/whats_new.html"><em>What's new</em> (Changelog)</a>
209209
</li>
210+
<li><strong>Scikit-learn 0.21 will drop support for Python 2.7 and Python 3.4.</strong>
211+
</li>
212+
<li><em>July 2018.</em> scikit-learn 0.20 is available for download (<a href="whats_new.html#version-0-20">Changelog</a>).
213+
</li>
210214
<li><em>July 2018.</em> scikit-learn 0.19.2 is available for download (<a href="whats_new.html#version-0-19">Changelog</a>).
211215
</li>
212216
<li><em>October 2017.</em> scikit-learn 0.19.1 is available for download (<a href="whats_new.html#version-0-19">Changelog</a>).
@@ -215,12 +219,6 @@
215219
</li>
216220
<li><em>June 2017.</em> scikit-learn 0.18.2 is available for download (<a href="whats_new/v0.18.html#version-0-18-2">Changelog</a>).
217221
</li>
218-
<li><em>September 2016.</em> scikit-learn 0.18.0 is available for download (<a href="whats_new/v0.18.html#version-0-18">Changelog</a>).
219-
</li>
220-
<li><em>November 2015.</em> scikit-learn 0.17.0 is available for download (<a href="whats_new/v0.17.html">Changelog</a>).
221-
</li>
222-
<li><em>March 2015.</em> scikit-learn 0.16.0 is available for download (<a href="whats_new/v0.16.html">Changelog</a>).
223-
</li>
224222
</ul>
225223
</div>
226224

doc/install.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Scikit-learn requires:
2121
- NumPy (>= 1.8.2),
2222
- SciPy (>= 0.13.3).
2323

24+
25+
.. warning::
26+
27+
Scikit-learn 0.20 is the last version to support Python 2.7 and Python 3.4.
28+
Scikit-learn 0.21 will require Python 3.5 or newer.
29+
2430
If you already have a working installation of numpy and scipy,
2531
the easiest way to install scikit-learn is using ``pip`` ::
2632

doc/whats_new/v0.20.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ This release packs in a mountain of bug fixes, features and enhancements for
1111
the Scikit-learn library, and improvements to the documentation and examples.
1212
Thanks to our many contributors!
1313

14+
.. warning::
15+
16+
Version 0.20 is the last version of scikit-learn to support Python 2.7 and Python 3.4.
17+
Scikit-learn 0.21 will require Python 3.5 or higher.
18+
1419
Highlights
1520
----------
1621

0 commit comments

Comments
 (0)