2016-07-19 14:41:59 +00:00
|
|
|
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
|
|
|
|
|
2021-04-04 09:17:52 +00:00
|
|
|
from pathlib import Path
|
2021-02-06 06:54:28 +00:00
|
|
|
from typing import Any, Dict
|
2019-03-09 10:22:36 +00:00
|
|
|
|
2021-04-04 19:07:49 +00:00
|
|
|
from setuptools import find_packages, setup
|
2010-12-06 12:29:56 +00:00
|
|
|
|
2021-04-04 09:17:52 +00:00
|
|
|
HERE = Path(__file__).parent
|
2015-02-14 17:05:56 +00:00
|
|
|
|
2021-02-06 06:54:28 +00:00
|
|
|
__pkginfo__: Dict[str, Any] = {}
|
2021-04-04 09:17:52 +00:00
|
|
|
with open(HERE / "pylint/__pkginfo__.py", encoding="UTF-8") as f:
|
|
|
|
exec(f.read(), __pkginfo__) # pylint: disable=exec-used
|
2021-04-04 12:20:34 +00:00
|
|
|
|
2021-04-04 09:17:52 +00:00
|
|
|
with open(HERE / "README.rst", encoding="UTF-8") as f:
|
|
|
|
long_description = f.read()
|
2021-04-04 12:20:34 +00:00
|
|
|
|
2021-04-04 09:58:33 +00:00
|
|
|
with open(HERE / "requirements_docs.txt", encoding="UTF-8") as f:
|
2021-04-04 12:20:34 +00:00
|
|
|
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")
|
|
|
|
]
|
2021-04-04 09:58:33 +00:00
|
|
|
|
2021-04-04 09:17:52 +00:00
|
|
|
|
2021-04-04 19:07:49 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
setup(
|
2021-04-04 12:37:19 +00:00
|
|
|
name="pylint",
|
|
|
|
version=__pkginfo__["__version__"],
|
|
|
|
license="GPL-2.0-or-later",
|
|
|
|
description="python code static checker",
|
|
|
|
long_description=long_description,
|
|
|
|
author="Python Code Quality Authority",
|
|
|
|
author_email="code-quality@python.org",
|
|
|
|
url="https://github.com/PyCQA/pylint",
|
|
|
|
project_urls={"What's New": "https://pylint.pycqa.org/en/latest/whatsnew/"},
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 6 - Mature",
|
|
|
|
"Environment :: Console",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: GNU General Public License (GPL)",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
|
|
"Topic :: Software Development :: Debuggers",
|
|
|
|
"Topic :: Software Development :: Quality Assurance",
|
|
|
|
"Topic :: Software Development :: Testing",
|
|
|
|
],
|
2021-04-04 19:07:49 +00:00
|
|
|
packages=find_packages(),
|
2021-04-04 12:37:19 +00:00
|
|
|
python_requires="~=3.6",
|
|
|
|
setup_requires=[],
|
|
|
|
tests_require=test_requires,
|
|
|
|
install_requires=[
|
|
|
|
"astroid>=2.5.2,<2.7",
|
|
|
|
"isort>=4.2.5,<6",
|
|
|
|
"mccabe>=0.6,<0.7",
|
|
|
|
"toml>=0.7.1",
|
|
|
|
],
|
|
|
|
extras_require={
|
|
|
|
':sys_platform=="win32"': ["colorama"],
|
|
|
|
"docs": doc_extra_requires,
|
|
|
|
"dev": dev_extra_requires,
|
|
|
|
},
|
|
|
|
entry_points={
|
|
|
|
"console_scripts": [
|
|
|
|
"pylint = pylint:run_pylint",
|
|
|
|
"epylint = pylint:run_epylint",
|
|
|
|
"pyreverse = pylint:run_pyreverse",
|
|
|
|
"symilar = pylint:run_symilar",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
)
|