summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-21 17:13:22 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-21 19:19:49 +0100
commit77ed8cdfc1a1956d0bbd4c38cf2a228de87b88b7 (patch)
tree4ba1eeaa9bb475fcecc0ef04e038bfd29e87ad4a
parent41d70221cdce96a209a479e349bdb70180bb5e8e (diff)
downloadpylint-git-77ed8cdfc1a1956d0bbd4c38cf2a228de87b88b7.tar.gz
Better documentation for the change in version during release
-rw-r--r--doc/release.md7
-rw-r--r--pylint/__pkginfo__.py2
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: