Skip to content

Commit 5e04ce7

Browse files
Better documentation for the change in version during release
1 parent 41d7022 commit 5e04ce7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

doc/release.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ So, you want to release the ``X.Y.Z`` version of pylint ?
88
0. Run the acceptance tests to see if everything is alright with this release.
99
We don't run them on CI: ``pytest -m acceptance``
1010
1. Check if the dependencies of the package are correct
11-
2. Update the version number in ``__pkginfo__``
11+
2. Update ``numversion`` in ``__pkginfo__``, ``dev_version`` should also be None when you tag.
1212
3. Put the version numbers, and the release date into the changelog
1313
4. Put the release date into the ``What's new`` section.
1414
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``.
6666

6767
Only for major release, create a new ``What's new in Pylint X.Y+1`` document
6868
Take a look at the examples from ``doc/whatsnew``.
69+
70+
### Versions
71+
72+
Update ``numversion`` to ``X.Y+1.0`` in ``__pkginfo__`` for ``master`` and to ``X.Y.Z+1`` for the ``X.Y`` branch.
73+
``dev_version`` should also be back to an integer after the tag.

pylint/__pkginfo__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
# For an official release, use dev_version = None
3535
numversion = (2, 7, 0)
36-
dev_version = 1
36+
dev_version = None
3737

3838
version = ".".join(str(num) for num in numversion)
3939
if dev_version is not None:

0 commit comments

Comments
 (0)