summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-12-28 23:32:42 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2015-12-28 23:32:42 -0600
commit7b2a1c157b947150c19ba559d74b0904a5daa8f8 (patch)
tree0b361f3e57faed69eb35d146cf6bb4edad6778fb /setup.py
parentf013698072ccba9c2c188184840ce6bb13f9723f (diff)
downloadflake8-7b2a1c157b947150c19ba559d74b0904a5daa8f8.tar.gz
Bare bones of a notification system
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py75
1 files changed, 75 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..fb0585e
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,75 @@
+# -*- coding: utf-8 -*-
+from __future__ import with_statement
+from setuptools import setup
+try:
+ # Work around a traceback with Nose on Python 2.6
+ # http://bugs.python.org/issue15881#msg170215
+ __import__('multiprocessing')
+except ImportError:
+ pass
+
+try:
+ # Use https://docs.python.org/3/library/unittest.mock.html
+ from unittest import mock
+except ImportError:
+ # < Python 3.3
+ mock = None
+
+
+tests_require = ['nose']
+if mock is None:
+ tests_require += ['mock']
+
+
+def get_version(fname='flake8/__init__.py'):
+ with open(fname) as f:
+ for line in f:
+ if line.startswith('__version__'):
+ return eval(line.split('=')[-1])
+
+
+def get_long_description():
+ descr = []
+ for fname in ('README.rst', 'CHANGES.rst'):
+ with open(fname) as f:
+ descr.append(f.read())
+ return '\n\n'.join(descr)
+
+
+setup(
+ name="flake8",
+ license="MIT",
+ version=get_version(),
+ description="the modular source code checker: pep8, pyflakes and co",
+ # long_description=get_long_description(),
+ author="Tarek Ziade",
+ author_email="tarek@ziade.org",
+ maintainer="Ian Cordasco",
+ maintainer_email="graffatcolmingov@gmail.com",
+ url="https://gitlab.com/pycqa/flake8",
+ packages=["flake8"],
+ install_requires=[
+ "pyflakes >= 0.8.1, < 1.1",
+ "pep8 >= 1.5.7, != 1.6.0, != 1.6.1, != 1.6.2",
+ "mccabe >= 0.2.1, < 0.4",
+ ],
+ entry_points={
+ 'distutils.commands': ['flake8 = flake8.main:Flake8Command'],
+ 'console_scripts': ['flake8 = flake8.main:main'],
+ 'flake8.extension': [
+ 'F = flake8._pyflakes:FlakesChecker',
+ ],
+ },
+ classifiers=[
+ "Environment :: Console",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: MIT License",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2",
+ "Programming Language :: Python :: 3",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ "Topic :: Software Development :: Quality Assurance",
+ ],
+ tests_require=tests_require,
+ test_suite='nose.collector',
+)