summaryrefslogtreecommitdiff
path: root/pylint/__pkginfo__.py
diff options
context:
space:
mode:
authorDan Hemberger <846186+hemberger@users.noreply.github.com>2019-03-04 23:28:21 -0800
committerClaudiu Popa <pcmanticore@gmail.com>2019-03-05 08:28:21 +0100
commit544e0a2133d7dcd339a94bdece11ccb8d32f0190 (patch)
treeffb2641850a9d2300ae9d5f40e11cec6673cf9a9 /pylint/__pkginfo__.py
parent06b95515290bddba9765d9cfa11b6c9f03ec88d8 (diff)
downloadpylint-git-544e0a2133d7dcd339a94bdece11ccb8d32f0190.tar.gz
Set version to 2.4.0-dev0 (#2789)
Make sure the master branch is tagged as a development version so that it is not mistaken for an official release. Also modify the version string logic to avoid misinterpreting development version 0 as an official release (since 0 == False) by using `dev_version = None` for non-development versions.
Diffstat (limited to 'pylint/__pkginfo__.py')
-rw-r--r--pylint/__pkginfo__.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py
index fb1fc296c..82caac1a4 100644
--- a/pylint/__pkginfo__.py
+++ b/pylint/__pkginfo__.py
@@ -25,14 +25,13 @@ from os.path import join
modname = distname = "pylint"
+# For an official release, use dev_version = None
numversion = (2, 4, 0)
-dev_version = None
-string_version = ".".join(str(num) for num in numversion)
+dev_version = 0
-if dev_version:
- version = string_version + "-dev" + str(dev_version)
-else:
- version = string_version
+version = ".".join(str(num) for num in numversion)
+if dev_version is not None:
+ version += "-dev" + str(dev_version)
install_requires = ["astroid>=2.2.0,<3", "isort>=4.2.5,<5", "mccabe>=0.6,<0.7"]