flake8/setup.py
Peter Teichman 2e04e30d51 add Flake8Command, a setuptools command
This runs flake8 with the default options on all Python files
referenced by a package's setup.py. It works with both
package-based and py_modules-based file lists.
2012-09-09 08:24:04 -04:00

40 lines
1 KiB
Python
Executable file

import sys
ispy3 = sys.version_info[0] == 3
if ispy3:
from distutils.core import setup # NOQA
else:
try:
from setuptools import setup # NOQA
except ImportError:
from distutils.core import setup # NOQA
from flake8 import __version__
README = open('README').read()
setup(
name="flake8",
license="MIT",
version=__version__,
description="code checking using pep8 and pyflakes",
author="Tarek Ziade",
author_email="tarek@ziade.org",
url="http://bitbucket.org/tarek/flake8",
packages=["flake8", "flake8.tests"],
scripts=["flake8/flake8"],
entry_points = {
"distutils.commands": [
"flake8 = flake8.run:Flake8Command",
],
},
long_description=README,
classifiers=[
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Utilities",
])