-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
91 lines (74 loc) · 2.9 KB
/
setup.py
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See LICENSE for more details.
#
# Copyright: Red Hat 2013-2014
# Author: Lucas Meneghel Rodrigues <[email protected]>
# pylint: disable=E0611
import sys
from setuptools import setup, find_packages
PROJECT = 'inspektor'
# Change documentation/source/conf.py and inspektor/cli/app.py
VERSION = '0.5.3'
REQUIRES = ['six']
if sys.version_info[:2] == (2, 6):
REQUIRES += ['astroid==1.2.1', 'pycodestyle>=2.0.0', 'pylint==1.3.1',
'logutils>=0.3.3', 'stevedore<=1.10', 'cliff<=1.15.0',
'pbr<2.0,>=1.4', 'cmd2<=0.7.0']
elif sys.version_info[:2] == (2, 7):
REQUIRES += ['pycodestyle>=2.0.0', 'pylint>=1.3', 'cliff']
elif sys.version_info[0] == 3:
REQUIRES += ['pycodestyle', 'pylint', 'cliff']
try:
long_description = open('README.rst', 'rt').read()
except IOError:
long_description = ''
setup(
name=PROJECT,
version=VERSION,
description='Inspektor python code checker and fixer',
long_description_content_type='text/x-rst',
long_description=long_description,
author='Lucas Meneghel Rodrigues',
author_email='[email protected]',
url='https://github.com/avocado-framework/inspektor',
download_url='https://github.com/avocado-framework/inspektor/tarball/master',
classifiers=['Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Developers',
'Environment :: Console',
],
platforms=['Any'],
scripts=[],
provides=[],
install_requires=REQUIRES,
namespace_packages=[],
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts': [
'inspekt = inspektor.cli.app:main'
],
'inspektor.app': [
'lint = inspektor.commands.lint:LintCommand',
'indent = inspektor.commands.indent:IndentCommand',
'style = inspektor.commands.style:StyleCommand',
'github = inspektor.commands.github:GithubCommand',
'license = inspektor.commands.license:LicenseCommand',
'checkall = inspektor.commands.checkall:CheckAllCommand'
],
},
zip_safe=False,
)