forked from MasterOdin/pylint_runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (50 loc) · 1.96 KB
/
Copy pathsetup.py
File metadata and controls
58 lines (50 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"""
setup.py
"""
import os
import sys
from setuptools import setup
from pylint_runner import __author__, __version__
MAJOR_VERSION = sys.version_info[0]
MAJOR_MINOR_VERSION = '.'.join([str(x) for x in sys.version_info[0:2]])
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as open_file:
return open_file.read()
def get_requirements():
"""Get requirements from requirements.txt file"""
with open('requirements.txt') as requirements:
reqs = requirements.readlines()
return reqs
CONSOLE_SCRIPTS = ['pylint_runner = pylint_runner.main:main',
'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',
version=__version__,
packages=['pylint_runner'],
url='http://github.com/MasterOdin/pylint_runner',
license='MIT',
author=__author__,
author_email='matt.peveler@gmail.com',
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(),
entry_points={"console_scripts": CONSOLE_SCRIPTS},
install_requires=get_requirements(),
tests_require=['nose'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Topic :: Software Development :: Debuggers',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
)