From 6bc7bc033cd9e37d93d0a5467e5f7d453aa135c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Dock=C3=A8s?= Date: Fri, 12 Jul 2024 14:42:35 +0200 Subject: [PATCH] BLD Make the version dynamic in pyproject.toml (#29399) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Loïc Estève --- doc/developers/maintainer.rst | 14 +++++++------- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/developers/maintainer.rst b/doc/developers/maintainer.rst index ffc9b73156fa8..c38da4c68dcd1 100644 --- a/doc/developers/maintainer.rst +++ b/doc/developers/maintainer.rst @@ -105,12 +105,12 @@ This PR will be used to push commits related to the release as explained in :ref:`making_a_release`. You can also create a second PR from main and targeting main to increment the -``__version__`` variable in `sklearn/__init__.py` and in `pyproject.toml` to increment -the dev version. This means while we're in the release candidate period, the latest -stable is two versions behind the main branch, instead of one. In this PR targeting -main you should also include a new file for the matching version under the -``doc/whats_new/`` folder so PRs that target the next version can contribute their -changelog entries to this file in parallel to the release process. +``__version__`` variable in `sklearn/__init__.py` to increment the dev version. +This means while we're in the release candidate period, the latest stable is +two versions behind the main branch, instead of one. In this PR targeting main +you should also include a new file for the matching version under the +``doc/whats_new/`` folder so PRs that target the next version can contribute +their changelog entries to this file in parallel to the release process. Minor version release (also known as bug-fix release) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -211,7 +211,7 @@ Making a release enough) and to update the on-going development entry. 2. On the branch for releasing, update the version number in ``sklearn/__init__.py``, - the ``__version__`` variable, and in `pyproject.toml`. + the ``__version__`` variable. For major releases, please add a 0 at the end: `0.99.0` instead of `0.99`. diff --git a/pyproject.toml b/pyproject.toml index ff7df45c1d843..1b613ae561b27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "scikit-learn" -version = "1.6.dev0" +dynamic = ["version"] description = "A set of python modules for machine learning and data mining" readme = "README.rst" maintainers = [