diff options
| author | hippo91 <guillaume.peillex@gmail.com> | 2020-12-28 12:09:19 +0100 |
|---|---|---|
| committer | hippo91 <guillaume.peillex@gmail.com> | 2020-12-28 12:09:19 +0100 |
| commit | 06c9eb1e971ac075b6696cb6726eca138882602e (patch) | |
| tree | 986bb5b98ce6881b6a6679c91e335ff926fb0e1a /setup.py | |
| parent | daecc59041810680708d1d099199d83331b853bd (diff) | |
| download | astroid-git-06c9eb1e971ac075b6696cb6726eca138882602e.tar.gz | |
Adds deprecation warning as suggested by Pierre Sassoulas
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -15,10 +15,14 @@ """Setup script for astroid.""" import os import sys +import warnings from setuptools import find_packages, setup from setuptools.command import easy_install # pylint: disable=unused-import from setuptools.command import install_lib # pylint: disable=unused-import +if sys.version_info.major == 3 and sys.version_info.minor <=5: + warnings.warn("You will soon need to upgrade to python 3.6 in order to use the latest version of Astroid.", DeprecationWarning) + real_path = os.path.realpath(__file__) astroid_dir = os.path.dirname(real_path) pkginfo = os.path.join(astroid_dir, "astroid", "__pkginfo__.py") |
