-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4fac22
commit 76a232e
Showing
3 changed files
with
8 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
# 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 typing import Optional | ||
|
||
__version__ = "2.8.1" | ||
# 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] = None | ||
|
||
if dev_version is not None: | ||
if alpha_version: | ||
__version__ += f"a{dev_version}" | ||
else: | ||
__version__ += f".dev{dev_version}" | ||
from pkg_resources import DistributionNotFound, get_distribution | ||
|
||
try: | ||
__version__ = get_distribution("pylint").version | ||
except DistributionNotFound: | ||
__version__ = "2.8.2+" | ||
|
||
# Kept for compatibility reason, see https://github.com/PyCQA/pylint/issues/4399 | ||
numversion = tuple(__version__.split(".")) |
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,3 +1,3 @@ | ||
from setuptools import setup | ||
|
||
setup() | ||
setup(use_scm_version=True) |