Report E731 for lambda assignment, return E704 for one-liner def instead of E701...
[third_party/pep8] / setup.py
1 # -*- coding: utf-8 -*-
2 from __future__ import with_statement
3 from setuptools import setup
4
5
6 def get_version():
7     with open('pep8.py') as f:
8         for line in f:
9             if line.startswith('__version__'):
10                 return eval(line.split('=')[-1])
11
12
13 def get_long_description():
14     descr = []
15     for fname in 'README.rst', 'CHANGES.txt':
16         with open(fname) as f:
17             descr.append(f.read())
18     return '\n\n'.join(descr)
19
20
21 setup(
22     name='pep8',
23     version=get_version(),
24     description="Python style guide checker",
25     long_description=get_long_description(),
26     keywords='pep8',
27     author='Johann C. Rocholl',
28     author_email='johann@rocholl.net',
29     url='http://pep8.readthedocs.org/',
30     license='Expat license',
31     py_modules=['pep8'],
32     namespace_packages=[],
33     include_package_data=True,
34     zip_safe=False,
35     install_requires=[
36         # Broken with Python 3: https://github.com/pypa/pip/issues/650
37         # 'setuptools',
38     ],
39     entry_points={
40         'console_scripts': [
41             'pep8 = pep8:_main',
42         ],
43     },
44     classifiers=[
45         'Development Status :: 5 - Production/Stable',
46         'Environment :: Console',
47         'Intended Audience :: Developers',
48         'License :: OSI Approved :: MIT License',
49         'Operating System :: OS Independent',
50         'Programming Language :: Python',
51         'Programming Language :: Python :: 2',
52         'Programming Language :: Python :: 3',
53         'Topic :: Software Development :: Libraries :: Python Modules',
54     ],
55     test_suite='testsuite.test_all.suite',
56 )