From d866e654ddef84117fa9ee0a92a3c99b92b67224 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 28 Feb 2021 19:44:46 +0100 Subject: [PATCH] Upgrade the version handling to mirror pylint's --- astroid/__pkginfo__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py index 2263da67d6..a00cf8accd 100644 --- a/astroid/__pkginfo__.py +++ b/astroid/__pkginfo__.py @@ -24,8 +24,13 @@ """astroid packaging information""" -version = "2.6.0-dev" -numversion = tuple(int(elem) for elem in version.split(".") if elem.isdigit()) +# For an official release, use dev_version = None +numversion = (2, 6, 0) +dev_version = 1 + +version = ".".join(str(num) for num in numversion) +if dev_version is not None: + version += "-dev" + str(dev_version) extras_require = {} install_requires = [