-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Packaging cleanup, migration to full setuptools without distutils #4294
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
Changes from all commits
492039d
79986bf
1c6fc67
33b83d9
0082892
91e8216
b6f6be0
7d0dbff
850657b
a298255
2aec00c
949d667
5600bab
f4ac490
4ed481c
5cb12e1
9897c3f
a9c618a
652fd64
29a18c0
b785a72
637c746
62463ce
569a016
250ee6a
55b7e27
b527517
22ce7e6
4101865
e4c5fc2
faa4054
d135ca7
95994e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,8 @@ jobs: | |
id: generate-python-key | ||
run: >- | ||
echo "::set-output name=key::base-venv-${{ env.CACHE_VERSION }}-${{ | ||
hashFiles('pylint/__pkg_info__.py', 'requirements_test.txt', 'requirements_test_min.txt') }}" | ||
hashFiles('setup.cfg', 'requirements_test.txt', 'requirements_test_min.txt') | ||
}}" | ||
- name: Restore Python virtual environment | ||
id: cache-venv | ||
uses: actions/[email protected] | ||
|
@@ -161,8 +162,8 @@ jobs: | |
id: generate-python-key | ||
run: >- | ||
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{ | ||
hashFiles('pylint/__pkg_info__.py', 'requirements_test.txt', | ||
'requirements_test_min.txt') }}" | ||
hashFiles('setup.cfg', 'requirements_test.txt', 'requirements_test_min.txt') | ||
}}" | ||
- name: Restore Python virtual environment | ||
id: cache-venv | ||
uses: actions/[email protected] | ||
|
@@ -333,7 +334,8 @@ jobs: | |
id: generate-python-key | ||
run: >- | ||
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{ | ||
hashFiles('pylint/__pkg_info__.py', 'requirements_test_min.txt') }}" | ||
hashFiles('setup.cfg', 'requirements_test_min.txt') | ||
}}" | ||
- name: Restore Python virtual environment | ||
id: cache-venv | ||
uses: actions/[email protected] | ||
|
@@ -411,7 +413,8 @@ jobs: | |
id: generate-python-key | ||
run: >- | ||
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{ | ||
hashFiles('pylint/__pkg_info__.py', 'requirements_test_min.txt') }}" | ||
hashFiles('setup.cfg', 'requirements_test_min.txt') | ||
}}" | ||
- name: Restore Python virtual environment | ||
id: cache-venv | ||
uses: actions/[email protected] | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,15 @@ | ||
# Copyright (c) 2006-2015 LOGILAB S.A. (Paris, FRANCE) <[email protected]> | ||
# Copyright (c) 2013-2014 Google, Inc. | ||
# Copyright (c) 2014-2020 Claudiu Popa <[email protected]> | ||
# Copyright (c) 2014 Brett Cannon <[email protected]> | ||
# Copyright (c) 2014 Ricardo Gemignani <[email protected]> | ||
# Copyright (c) 2014 Arun Persaud <[email protected]> | ||
# Copyright (c) 2015 Ionel Cristian Maries <[email protected]> | ||
# Copyright (c) 2016 Moises Lopez <[email protected]> | ||
# Copyright (c) 2016 Florian Bruhin <[email protected]> | ||
# Copyright (c) 2016 Jakub Wilk <[email protected]> | ||
# Copyright (c) 2017-2018 Hugo <[email protected]> | ||
# Copyright (c) 2018-2020 Ashley Whetter <[email protected]> | ||
# Copyright (c) 2018 ssolanki <[email protected]> | ||
# Copyright (c) 2018 Sushobhit <[email protected]> | ||
# Copyright (c) 2019-2020 Ville Skyttä <[email protected]> | ||
# Copyright (c) 2019 Hugo van Kemenade <[email protected]> | ||
# Copyright (c) 2019 Dan Hemberger <[email protected]> | ||
# Copyright (c) 2019 jab <[email protected]> | ||
# Copyright (c) 2020-2021 Pierre Sassoulas <[email protected]> | ||
# Copyright (c) 2020 hippo91 <[email protected]> | ||
# Copyright (c) 2020 Damien Baty <[email protected]> | ||
# Copyright (c) 2021 Marc Mueller <[email protected]> | ||
|
||
# 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 | ||
|
||
# pylint: disable=redefined-builtin,invalid-name | ||
"""pylint packaging information""" | ||
|
||
|
||
from os.path import join | ||
from typing import Optional | ||
|
||
version = "2.8.0" | ||
__version__ = "2.8.0" | ||
# For an official release, use 'alpha_version = False' and 'dev_version = None' | ||
alpha_version: bool = False # Release will be an alpha version if True (ex: '1.2.3a6') | ||
dev_version: Optional[int] = 1 | ||
|
||
if dev_version is not None: | ||
if alpha_version: | ||
version += f"a{dev_version}" | ||
__version__ += f"a{dev_version}" | ||
else: | ||
version += f"-dev{dev_version}" | ||
|
||
install_requires = [ | ||
"astroid>=2.5.2,<2.7", | ||
"isort>=4.2.5,<6", | ||
"mccabe>=0.6,<0.7", | ||
"toml>=0.7.1", | ||
] | ||
|
||
dependency_links = [] # type: ignore | ||
|
||
extras_require = {} | ||
extras_require[':sys_platform=="win32"'] = ["colorama"] | ||
extras_require["docs"] = ["sphinx==3.5.1", "python-docs-theme==2020.12"] | ||
|
||
license = "GPL-2.0-or-later" | ||
description = "python code static checker" | ||
web = "https://github.com/PyCQA/pylint" | ||
mailinglist = "mailto:[email protected]" | ||
project_urls = {"What's New": "https://pylint.pycqa.org/en/latest/whatsnew/"} | ||
author = "Python Code Quality Authority" | ||
author_email = "[email protected]" | ||
|
||
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", | ||
] | ||
|
||
scripts = [ | ||
join("bin", filename) for filename in ("pylint", "symilar", "epylint", "pyreverse") | ||
] | ||
__version__ += f".dev{dev_version}" |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
astroid==2.5.2 | ||
astroid==2.5.2 # Pinned to a specific version for tests | ||
pytest~=6.2 | ||
pytest-benchmark~=3.2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,80 @@ | ||
[metadata] | ||
name = pylint | ||
version = attr: pylint.__version__ | ||
description = python code static checker | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
url = https://github.com/PyCQA/pylint | ||
author = Python Code Quality Authority | ||
author_email = [email protected] | ||
license = GPL-2.0-or-later | ||
license_files = | ||
COPYING | ||
CONTRIBUTORS.txt | ||
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 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
Topic :: Software Development :: Debuggers | ||
Topic :: Software Development :: Quality Assurance | ||
Topic :: Software Development :: Testing | ||
keywords = static code analysis linter python lint | ||
project_urls = | ||
"What's New" = https://pylint.pycqa.org/en/latest/whatsnew/ | ||
"Bug tracker" = https://github.com/PyCQA/pylint/issues | ||
"Discord server" = https://discord.gg/kFebW799 | ||
"User manual" = http://pylint.pycqa.org/en/latest/ | ||
"Contributing" = http://pylint.pycqa.org/en/latest/development_guide/contribute.html | ||
"Technical references" = http://pylint.pycqa.org/en/latest/technical_reference/index.html | ||
"Mailing list" = mailto:[email protected] | ||
|
||
[options] | ||
packages = find: | ||
Pierre-Sassoulas marked this conversation as resolved.
Show resolved
Hide resolved
Pierre-Sassoulas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
install_requires = | ||
astroid>=2.5.2,<2.7 | ||
isort>=4.2.5,<6 | ||
mccabe>=0.6,<0.7 | ||
toml>=0.7.1 | ||
colorama;sys_platform=="win32" | ||
python_requires = ~=3.6 | ||
|
||
[options.packages.find] | ||
include = | ||
pylint* | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
pylint = pylint:run_pylint | ||
epylint = pylint:run_epylint | ||
pyreverse = pylint:run_pyreverse | ||
symilar = pylint:run_symilar | ||
|
||
[aliases] | ||
test = pytest | ||
|
||
[tool:pytest] | ||
testpaths = tests | ||
python_files = *test_*.py | ||
addopts = -m "not acceptance" | ||
markers = | ||
acceptance: | ||
benchmark: Baseline of pylint performance, if this regress something serious happened | ||
|
||
[isort] | ||
multi_line_output = 3 | ||
line_length = 88 | ||
known_third_party = astroid, sphinx, isort, pytest, mccabe, six, toml | ||
include_trailing_comma = True | ||
skip_glob = tests/functional/**,tests/input/**,tests/extensions/data/**,tests/regrtest_data/**,tests/data/**,astroid/**,venv/** | ||
src_paths = pylint |
Uh oh!
There was an error while loading. Please reload this page.