summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-04 14:20:34 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-05 15:08:27 +0200
commit95b20ce7cc9ed89a8dbd3be848491d6ca70abae1 (patch)
tree123e751c6b2e9ab0508a16dd24500826d6260f36 /setup.py
parent118b6e58bb3bf6a50c6d58e0092e55bc2c4d72c9 (diff)
downloadpylint-git-95b20ce7cc9ed89a8dbd3be848491d6ca70abae1.tar.gz
Add a dev extra require
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index d2cb45c95..30f92ce26 100644
--- a/setup.py
+++ b/setup.py
@@ -11,10 +11,24 @@ HERE = Path(__file__).parent
__pkginfo__: Dict[str, Any] = {}
with open(HERE / "pylint/__pkginfo__.py", encoding="UTF-8") as f:
exec(f.read(), __pkginfo__) # pylint: disable=exec-used
+
with open(HERE / "README.rst", encoding="UTF-8") as f:
long_description = f.read()
+
with open(HERE / "requirements_docs.txt", encoding="UTF-8") as f:
- doc_extra_requires = f.read()
+ doc_extra_requires = f.readlines()
+
+
+with open(HERE / "requirements_test_min.txt", encoding="UTF-8") as f:
+ test_requires = f.readlines()
+
+DEV_REQUIREMENTS_FILES = ["requirements_test.txt", "requirements_test_pre_commit.txt"]
+dev_extra_requires = doc_extra_requires + test_requires
+for requirement_file in DEV_REQUIREMENTS_FILES:
+ with open(HERE / requirement_file, encoding="UTF-8") as f:
+ dev_extra_requires += [
+ line for line in f.readlines() if not line.startswith("-r")
+ ]
setuptools.setup(
@@ -37,6 +51,7 @@ setuptools.setup(
extras_require={
':sys_platform=="win32"': ["colorama"],
"docs": doc_extra_requires,
+ "dev": dev_extra_requires,
},
entry_points={
"console_scripts": [