From 77ed8cdfc1a1956d0bbd4c38cf2a228de87b88b7 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 21 Feb 2021 17:13:22 +0100 Subject: Better documentation for the change in version during release --- doc/release.md | 7 ++++++- pylint/__pkginfo__.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/release.md b/doc/release.md index 5bb6a6bf3..fe9d0e7b8 100644 --- a/doc/release.md +++ b/doc/release.md @@ -8,7 +8,7 @@ So, you want to release the ``X.Y.Z`` version of pylint ? 0. Run the acceptance tests to see if everything is alright with this release. We don't run them on CI: ``pytest -m acceptance`` 1. Check if the dependencies of the package are correct - 2. Update the version number in ``__pkginfo__`` + 2. Update ``numversion`` in ``__pkginfo__``, ``dev_version`` should also be None when you tag. 3. Put the version numbers, and the release date into the changelog 4. Put the release date into the ``What's new`` section. 5. Generate the new copyright notices for this release: @@ -66,3 +66,8 @@ no date can be known at that time, we should use ``Undefined``. Only for major release, create a new ``What's new in Pylint X.Y+1`` document Take a look at the examples from ``doc/whatsnew``. + +### Versions + +Update ``numversion`` to ``X.Y+1.0`` in ``__pkginfo__`` for ``master`` and to ``X.Y.Z+1`` for the ``X.Y`` branch. +``dev_version`` should also be back to an integer after the tag. diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 37a415e1d..5d05f76ba 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -33,7 +33,7 @@ from os.path import join # For an official release, use dev_version = None numversion = (2, 7, 0) -dev_version = 1 +dev_version = None version = ".".join(str(num) for num in numversion) if dev_version is not None: -- cgit v1.2.1