Skip to content

Commit daefc22

Browse files
authored
[MRG] 0.22.2.post1 release branch (scikit-learn#16609)
1 parent 4b7331e commit daefc22

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

.binder/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ scikit-image==0.16.2
55
pandas==0.25.3
66
sphinx-gallery==0.5.0
77
# Need to update the scikit-learn version on each 0.22 minor release
8-
scikit-learn==0.22.2
8+
scikit-learn==0.22.2.post1
99

doc/conf.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,14 @@
8787
#
8888
# The short X.Y version.
8989
import sklearn
90-
version = parse(sklearn.__version__).base_version
91-
version = ".".join(version.split(".")[:2])
90+
parsed_version = parse(sklearn.__version__)
91+
version = ".".join(parsed_version.base_version.split(".")[:2])
9292
# The full version, including alpha/beta/rc tags.
93-
release = sklearn.__version__
93+
# Removes post from release name
94+
if parsed_version.is_postrelease:
95+
release = parsed_version.base_version
96+
else:
97+
release = sklearn.__version__
9498

9599
# The language for content autogenerated by Sphinx. Refer to documentation
96100
# for a list of supported languages.

doc/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ <h4 class="sk-landing-call-header">News</h4>
156156
<li><strong>On-going development:</strong>
157157
<a href="https://scikit-learn.org/dev/whats_new.html"><strong>What's new</strong> (Changelog)</a>
158158
</li>
159-
<li><strong>February 2020.</strong> scikit-learn 0.22.2 is available for download (<a href="whats_new/v0.22.html#version-0-22-2">Changelog</a>).
159+
<li><strong>March 2020.</strong> scikit-learn 0.22.2 is available for download (<a href="whats_new/v0.22.html#version-0-22-2">Changelog</a>).
160160
<li><strong>January 2020.</strong> scikit-learn 0.22.1 is available for download (<a href="whats_new/v0.22.html#version-0-22-1">Changelog</a>).
161161
<li><strong>December 2019.</strong> scikit-learn 0.22 is available for download (<a href="whats_new/v0.22.html#version-0-22-0">Changelog</a>).
162162
</li>

doc/whats_new/v0.22.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44

55
.. _changes_0_22_2:
66

7-
Version 0.22.2
8-
==============
7+
Version 0.22.2.post1
8+
====================
9+
10+
**March 3 2020**
911

10-
**February 28 2020**
12+
The 0.22.2.post1 release includes a packaging fix for the source distribution
13+
but the content of the packages is otherwise identical to the content of the
14+
wheels with the 0.22.2 version (without the .post1 suffix). Both contain the
15+
following changes.
1116

1217
Changelog
1318
---------
@@ -33,7 +38,7 @@ Changelog
3338
:class:`metrics.PrecisionRecallDisplay` instead of the parameter `name`. It
3439
results in a different plot when calling
3540
:meth:`metrics.PrecisionRecallDisplay.plot` for the subsequent times.
36-
:pr:`#16505` by :user:`Guillaume Lemaitre <glemaitre>`.
41+
:pr:`16505` by :user:`Guillaume Lemaitre <glemaitre>`.
3742

3843
:mod:`sklearn.neighbors`
3944
..............................

sklearn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
4141
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
4242
#
43-
__version__ = '0.22.2'
43+
__version__ = '0.22.2.post1'
4444

4545

4646
# On OSX, we can get a runtime error due to multiple OpenMP libraries loaded

0 commit comments

Comments
 (0)