-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor improvements for multiple pylint_runners (0.5.0 release)
- Loading branch information
1 parent
03d1513
commit 463047c
Showing
3 changed files
with
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[MASTER] | ||
ignore=build,dist |
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 |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
from setuptools import setup | ||
from pylint_runner import __author__, __version__ | ||
|
||
PY3 = sys.version_info > (3,) | ||
MAJOR_VERSION = sys.version_info[0] | ||
MAJOR_MINOR_VERSION = '.'.join([str(x) for x in sys.version_info[0:2]]) | ||
|
||
|
||
def read(*paths): | ||
|
@@ -24,7 +25,8 @@ def get_requirements(): | |
return [str(ir.req) for ir in install_reqs] | ||
|
||
CONSOLE_SCRIPTS = ['pylint_runner = pylint_runner.main:main', | ||
'pylint_runner{0} = pylint_runner.main:main'.format('3' if PY3 else '2')] | ||
'pylint_runner{0} = pylint_runner.main:main'.format(MAJOR_VERSION), | ||
'pylint_runner{0} = pylint_runner.main:main'.format(MAJOR_MINOR_VERSION)] | ||
|
||
setup( | ||
name='pylint_runner', | ||
|
@@ -35,7 +37,7 @@ def get_requirements(): | |
author=__author__, | ||
author_email='[email protected]', | ||
description='Run pylint recursively on all py files in current and sub directories', | ||
long_description=open('README.rst').read(), #+ '\n\n' + open('CHANGELOG.rst').read(), | ||
long_description=open('README.rst').read(), # + '\n\n' + open('CHANGELOG.rst').read(), | ||
entry_points={"console_scripts": CONSOLE_SCRIPTS}, | ||
install_requires=get_requirements(), | ||
tests_require=['nose'], | ||
|