diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-04 14:20:34 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-05 15:08:27 +0200 |
commit | 95b20ce7cc9ed89a8dbd3be848491d6ca70abae1 (patch) | |
tree | 123e751c6b2e9ab0508a16dd24500826d6260f36 /setup.py | |
parent | 118b6e58bb3bf6a50c6d58e0092e55bc2c4d72c9 (diff) | |
download | pylint-git-95b20ce7cc9ed89a8dbd3be848491d6ca70abae1.tar.gz |
Add a dev extra require
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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": [ |