summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-06-16 10:59:16 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-06-16 10:59:16 -0500
commit9a9bcdfb5252aef2fb4985a7769fd263c6d2a651 (patch)
tree23812b210a81e8ea3f1657c265d09ad5b5f2eb0e /setup.py
parent1de71fbe89e4e3cd9cb4b2b43a1dfd57e7bc4da2 (diff)
downloadflake8-9a9bcdfb5252aef2fb4985a7769fd263c6d2a651.tar.gz
Add setuptools integration
This proved simpler because I realized something important: Most of the code that the old integration was using was in fact doing nothing of value. Since we can't meaningfully allow users to use command-line options as parameters to `python setup.py flake8`, we just remove the work that we do to set up those attributes and parse them.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 4a8e2a8..b31fb19 100644
--- a/setup.py
+++ b/setup.py
@@ -76,8 +76,12 @@ setuptools.setup(
],
install_requires=requires,
entry_points={
- 'distutils.commands': ['flake8 = flake8.main:Flake8Command'],
- 'console_scripts': ['flake8 = flake8.main.cli:main'],
+ 'distutils.commands': [
+ 'flake8 = flake8.main.setuptools_command:Flake8'
+ ],
+ 'console_scripts': [
+ 'flake8 = flake8.main.cli:main'
+ ],
'flake8.extension': [
'F = flake8.plugins.pyflakes:FlakesChecker',
# PEP-0008 checks provied by PyCQA/pycodestyle