2
# Copyright 2005-2011 Divmod, Inc.
3
# Copyright 2013 Florent Xicluna. See LICENSE file for details
4
from __future__ import with_statement
10
from setuptools import setup
12
from distutils.core import setup
13
extra = {'scripts': ["bin/pyflakes"]}
15
if sys.version_info < (3,):
16
extra = {'tests_require': ['unittest2'],
17
'test_suite': 'unittest2.collector'}
19
extra = {'tests_require': ['unittest2py3k'],
20
'test_suite': 'unittest2.collector.collector'}
21
extra['entry_points'] = {
22
'console_scripts': ['pyflakes = pyflakes.api:main'],
26
def get_version(fname=os.path.join('pyflakes', '__init__.py')):
27
with open(fname) as f:
29
if line.startswith('__version__'):
30
return eval(line.split('=')[-1])
33
def get_long_description():
35
for fname in ('README.rst',):
36
with open(fname) as f:
37
descr.append(f.read())
38
return '\n\n'.join(descr)
44
version=get_version(),
45
description="passive checker of Python programs",
46
long_description=get_long_description(),
48
author_email="indigo@bitglue.com",
49
maintainer="Florent Xicluna",
50
maintainer_email="pyflakes-dev@lists.launchpad.net",
51
url="https://launchpad.net/pyflakes",
52
packages=["pyflakes", "pyflakes.scripts", "pyflakes.test"],
54
"Development Status :: 6 - Mature",
55
"Environment :: Console",
56
"Intended Audience :: Developers",
57
"License :: OSI Approved :: MIT License",
58
"Programming Language :: Python",
59
"Programming Language :: Python :: 2",
60
"Programming Language :: Python :: 3",
61
"Topic :: Software Development",