Skip to content

Commit 6bc7bc0

Browse files
BLD Make the version dynamic in pyproject.toml (scikit-learn#29399)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
1 parent 409d187 commit 6bc7bc0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/developers/maintainer.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ This PR will be used to push commits related to the release as explained in
105105
:ref:`making_a_release`.
106106

107107
You can also create a second PR from main and targeting main to increment the
108-
``__version__`` variable in `sklearn/__init__.py` and in `pyproject.toml` to increment
109-
the dev version. This means while we're in the release candidate period, the latest
110-
stable is two versions behind the main branch, instead of one. In this PR targeting
111-
main you should also include a new file for the matching version under the
112-
``doc/whats_new/`` folder so PRs that target the next version can contribute their
113-
changelog entries to this file in parallel to the release process.
108+
``__version__`` variable in `sklearn/__init__.py` to increment the dev version.
109+
This means while we're in the release candidate period, the latest stable is
110+
two versions behind the main branch, instead of one. In this PR targeting main
111+
you should also include a new file for the matching version under the
112+
``doc/whats_new/`` folder so PRs that target the next version can contribute
113+
their changelog entries to this file in parallel to the release process.
114114

115115
Minor version release (also known as bug-fix release)
116116
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -211,7 +211,7 @@ Making a release
211211
enough) and to update the on-going development entry.
212212

213213
2. On the branch for releasing, update the version number in ``sklearn/__init__.py``,
214-
the ``__version__`` variable, and in `pyproject.toml`.
214+
the ``__version__`` variable.
215215

216216
For major releases, please add a 0 at the end: `0.99.0` instead of `0.99`.
217217

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "scikit-learn"
3-
version = "1.6.dev0"
3+
dynamic = ["version"]
44
description = "A set of python modules for machine learning and data mining"
55
readme = "README.rst"
66
maintainers = [

0 commit comments

Comments
 (0)