1 # -*- coding: utf-8 -*-
2 from __future__
import with_statement
3 from setuptools
import setup
7 with
open('pep8.py') as f
:
9 if line
.startswith('__version__'):
10 return eval(line
.split('=')[-1])
13 def get_long_description():
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
)
23 version
=get_version(),
24 description
="Python style guide checker",
25 long_description
=get_long_description(),
27 author
='Johann C. Rocholl',
28 author_email
='johann@rocholl.net',
29 url
='http://pep8.readthedocs.org/',
30 license
='Expat license',
32 namespace_packages
=[],
33 include_package_data
=True,
36 # Broken with Python 3: https://github.com/pypa/pip/issues/650
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',
55 test_suite
='testsuite.test_all.suite',