summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-02-02 20:48:26 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2016-02-02 20:48:26 -0600
commiteafc91ae6ad5c05b3e036733d73a0edac9070192 (patch)
treeca71273c5f33b3460e0b3cb374c5ea3861810df0 /setup.py
parent0645ec3ef771c8e2e6ef39bdd5eb360067d147b9 (diff)
downloadflake8-eafc91ae6ad5c05b3e036733d73a0edac9070192.tar.gz
Add handling and decision making for select and ignore
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index 93e4fdb..0b90cf7 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
from __future__ import with_statement
import setuptools
+import sys
import flake8
@@ -25,6 +26,16 @@ if mock is None:
tests_require += ['mock']
+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",
+]
+
+if sys.version_info < (3, 4):
+ requires.append("enum34")
+
+
def get_long_description():
"""Generate a long description from the README and CHANGES files."""
descr = []
@@ -51,11 +62,7 @@ setuptools.setup(
"flake8.options",
"flake8.plugins",
],
- 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",
- ],
+ install_requires=requires,
entry_points={
'distutils.commands': ['flake8 = flake8.main:Flake8Command'],
'console_scripts': ['flake8 = flake8.main.cli:main'],