Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an exception at install for python < 3.6.2 #5171

Merged
merged 5 commits into from Oct 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions setup.py
@@ -1,3 +1,21 @@
import sys

from setuptools import setup


class PylintIncompatiblePythonError(Exception):
def __init__(self, major, minor, patch):
Pierre-Sassoulas marked this conversation as resolved.
Show resolved Hide resolved
super().__init__(
f"The last version compatible with python <= 3.6.2 is pylint '2.9.3'."
Pierre-Sassoulas marked this conversation as resolved.
Show resolved Hide resolved
f"You're using {major}.{minor}.{patch}. "
Pierre-Sassoulas marked this conversation as resolved.
Show resolved Hide resolved
"Please install pylint 2.9.3 explicitly or upgrade your python interpreter "
"to at least 3.6.2. Remember that python 3.6 end life is December 2021."
Pierre-Sassoulas marked this conversation as resolved.
Show resolved Hide resolved
"See https://github.com/PyCQA/pylint/issues/5065 for more detail."
)


version = sys.version_info[:3]
if version < (3, 6, 2):
Pierre-Sassoulas marked this conversation as resolved.
Show resolved Hide resolved
raise PylintIncompatiblePythonError(*version)
Pierre-Sassoulas marked this conversation as resolved.
Show resolved Hide resolved

setup()