diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-16 10:59:16 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-16 10:59:16 -0500 |
| commit | 9a9bcdfb5252aef2fb4985a7769fd263c6d2a651 (patch) | |
| tree | 23812b210a81e8ea3f1657c265d09ad5b5f2eb0e /setup.py | |
| parent | 1de71fbe89e4e3cd9cb4b2b43a1dfd57e7bc4da2 (diff) | |
| download | flake8-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.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |
