diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-29 22:53:14 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-29 22:53:14 +0200 |
commit | 098b210fe8838c5a63670df9f48e8d4af2e7727c (patch) | |
tree | 4c96a805d0e68444ac291d99837bbd94f3f80fad | |
parent | 7f11b648797939259148619e7828a92333ed9c7f (diff) | |
download | astroid-git-use-scm-setuptools.tar.gz |
Hack required by strange legacy tags of astroid ?use-scm-setuptools
-rw-r--r-- | astroid/__pkginfo__.py | 7 |
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__ |