forked from pylint-dev/pylint
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better documentation on the packaging breaking changes
Closes pylint-dev#4399
- Loading branch information
1 parent
45b4fbd
commit c768e31
Showing
4 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE | ||
|
||
from importlib import metadata | ||
from typing import Optional | ||
|
||
__version__ = "2.8.1" | ||
|
@@ -13,3 +14,24 @@ | |
__version__ += f"a{dev_version}" | ||
else: | ||
__version__ += f".dev{dev_version}" | ||
|
||
|
||
# Kept for compatibility reason, see https://github.com/PyCQA/pylint/issues/4399 | ||
pylint_info = metadata.metadata("pylint") | ||
classifiers = [] | ||
project_urls = [] | ||
for header in pylint_info._headers: # type: ignore | ||
key, value = header | ||
if key == "Project-URL": | ||
project_urls.append(value) | ||
if key == "Classifier": | ||
classifiers.append(value) | ||
mailinglist = "mailto:[email protected]" | ||
numversion = pylint_info["version"].split(".") | ||
version = pylint_info["version"] | ||
install_requires = pylint_info["install_requires"] | ||
license = pylint_info["license"] # pylint: disable=redefined-builtin # noqa | ||
description = pylint_info["Keywords"] | ||
web = pylint_info["Home-page"] | ||
author = pylint_info["Author"] | ||
author_email = pylint_info["Author-email"] |