summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-29 22:53:14 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-29 22:53:14 +0200
commit098b210fe8838c5a63670df9f48e8d4af2e7727c (patch)
tree4c96a805d0e68444ac291d99837bbd94f3f80fad
parent7f11b648797939259148619e7828a92333ed9c7f (diff)
downloadastroid-git-use-scm-setuptools.tar.gz
Hack required by strange legacy tags of astroid ?use-scm-setuptools
-rw-r--r--astroid/__pkginfo__.py7
1 files changed, 6 insertions, 1 deletions
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__