We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8da5d53 commit 37e330cCopy full SHA for 37e330c
setup.py
@@ -1,3 +1,20 @@
1
+import sys
2
+
3
from setuptools import setup
4
5
6
+class PylintIncompatiblePythonError(Exception):
7
+ def __init__(self) -> None:
8
+ super().__init__(
9
+ "The last version compatible with Python <= 3.6.2 is pylint '2.9.3'. "
10
+ f"You're using {'.'.join([str(v) for v in sys.version_info[:3]])}. "
11
+ "Please install pylint 2.9.3 explicitly or upgrade your python interpreter "
12
+ "to at least 3.6.2. Remember that Python 3.6 end life is December 2021. "
13
+ "See https://github.com/PyCQA/pylint/issues/5065 for more detail."
14
+ )
15
16
17
+if sys.version_info < (3, 6, 2):
18
+ raise PylintIncompatiblePythonError()
19
20
setup()
0 commit comments