From 098b210fe8838c5a63670df9f48e8d4af2e7727c Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 29 Apr 2021 22:53:14 +0200 Subject: Hack required by strange legacy tags of astroid ? --- astroid/__pkginfo__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py index 9f8b5c17..7c57830d 100644 --- a/astroid/__pkginfo__.py +++ b/astroid/__pkginfo__.py @@ -28,9 +28,14 @@ from pkg_resources import DistributionNotFound, get_distribution +default_version = "2.5.7+" try: __version__ = get_distribution("astroid").version except DistributionNotFound: - __version__ = "2.5.7+" + __version__ = default_version + +if __version__.startswith("0.1."): + # The legacy astroid tags are not working properly (?) + __version__ = default_version version = __version__ -- cgit v1.2.1