OLD | NEW |
1 # pylint: disable=W0622,C0103 | 1 # pylint: disable=W0622,C0103 |
2 # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE). | 2 # Copyright (c) 2003-2014 LOGILAB S.A. (Paris, FRANCE). |
3 # http://www.logilab.fr/ -- mailto:contact@logilab.fr | 3 # http://www.logilab.fr/ -- mailto:contact@logilab.fr |
4 # | 4 # |
5 # This program is free software; you can redistribute it and/or modify it under | 5 # This program is free software; you can redistribute it and/or modify it under |
6 # the terms of the GNU General Public License as published by the Free Software | 6 # the terms of the GNU General Public License as published by the Free Software |
7 # Foundation; either version 2 of the License, or (at your option) any later | 7 # Foundation; either version 2 of the License, or (at your option) any later |
8 # version. | 8 # version. |
9 # | 9 # |
10 # This program is distributed in the hope that it will be useful, but WITHOUT | 10 # This program is distributed in the hope that it will be useful, but WITHOUT |
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
12 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details | 12 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details |
13 # | 13 # |
14 # You should have received a copy of the GNU General Public License along with | 14 # You should have received a copy of the GNU General Public License along with |
15 # this program; if not, write to the Free Software Foundation, Inc., | 15 # this program; if not, write to the Free Software Foundation, Inc., |
16 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 16 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 """pylint packaging information""" | 17 """pylint packaging information""" |
| 18 import sys |
18 | 19 |
19 modname = distname = 'pylint' | 20 modname = distname = 'pylint' |
20 | 21 |
21 numversion = (0, 25, 1) | 22 numversion = (1, 3, 1) |
22 version = '.'.join([str(num) for num in numversion]) | 23 version = '.'.join([str(num) for num in numversion]) |
23 | 24 |
24 install_requires = ['logilab-common >= 0.53.0', 'logilab-astng >= 0.21.1'] | 25 if sys.version_info < (2, 6): |
| 26 install_requires = ['logilab-common >= 0.53.0', 'astroid >= 1.2.1', |
| 27 'StringFormat'] |
| 28 else: |
| 29 install_requires = ['logilab-common >= 0.53.0', 'astroid >= 1.2.1'] |
25 | 30 |
26 license = 'GPL' | 31 license = 'GPL' |
27 copyright = 'Logilab S.A.' | |
28 description = "python code static checker" | 32 description = "python code static checker" |
29 web = "http://www.logilab.org/project/%s" % distname | 33 web = 'http://www.pylint.org' |
30 ftp = "ftp://ftp.logilab.org/pub/%s" % modname | 34 mailinglist = "mailto://code-quality@python.org" |
31 mailinglist = "mailto://python-projects@lists.logilab.org" | |
32 author = 'Logilab' | 35 author = 'Logilab' |
33 author_email = 'python-projects@lists.logilab.org' | 36 author_email = 'python-projects@lists.logilab.org' |
34 | 37 |
35 classifiers = ['Development Status :: 4 - Beta', | 38 classifiers = ['Development Status :: 4 - Beta', |
36 'Environment :: Console', | 39 'Environment :: Console', |
37 'Intended Audience :: Developers', | 40 'Intended Audience :: Developers', |
38 'License :: OSI Approved :: GNU General Public License (GPL)', | 41 'License :: OSI Approved :: GNU General Public License (GPL)', |
39 'Operating System :: OS Independent', | 42 'Operating System :: OS Independent', |
40 'Programming Language :: Python', | 43 'Programming Language :: Python', |
41 'Topic :: Software Development :: Debuggers', | 44 'Programming Language :: Python :: 2', |
42 'Topic :: Software Development :: Quality Assurance', | 45 'Programming Language :: Python :: 3', |
43 'Topic :: Software Development :: Testing', | 46 'Topic :: Software Development :: Debuggers', |
44 ] | 47 'Topic :: Software Development :: Quality Assurance', |
| 48 'Topic :: Software Development :: Testing' |
| 49 ] |
45 | 50 |
46 | 51 |
47 long_desc = """\ | 52 long_desc = """\ |
48 Pylint is a Python source code analyzer which looks for programming | 53 Pylint is a Python source code analyzer which looks for programming |
49 errors, helps enforcing a coding standard and sniffs for some code | 54 errors, helps enforcing a coding standard and sniffs for some code |
50 smells (as defined in Martin Fowler's Refactoring book) | 55 smells (as defined in Martin Fowler's Refactoring book) |
51 . | 56 . |
52 Pylint can be seen as another PyChecker since nearly all tests you | 57 Pylint can be seen as another PyChecker since nearly all tests you |
53 can do with PyChecker can also be done with Pylint. However, Pylint | 58 can do with PyChecker can also be done with Pylint. However, Pylint |
54 offers some more features, like checking length of lines of code, | 59 offers some more features, like checking length of lines of code, |
55 checking if variable names are well-formed according to your coding | 60 checking if variable names are well-formed according to your coding |
56 standard, or checking if declared interfaces are truly implemented, | 61 standard, or checking if declared interfaces are truly implemented, |
57 and much more. | 62 and much more. |
58 . | 63 . |
59 Additionally, it is possible to write plugins to add your own checks. | 64 Additionally, it is possible to write plugins to add your own checks. |
60 . | 65 . |
61 Pylint is shipped with "pylint-gui", "pyreverse" (UML diagram generator) | 66 Pylint is shipped with "pylint-gui", "pyreverse" (UML diagram generator) |
62 and "symilar" (an independent similarities checker).""" | 67 and "symilar" (an independent similarities checker).""" |
63 | 68 |
64 from os.path import join | 69 from os.path import join |
65 scripts = [join('bin', filename) | 70 scripts = [join('bin', filename) |
66 for filename in ('pylint', 'pylint-gui', "symilar", "epylint", | 71 for filename in ('pylint', 'pylint-gui', "symilar", "epylint", |
67 "pyreverse")] | 72 "pyreverse")] |
68 | 73 |
| 74 include_dirs = ['test'] |
OLD | NEW |