summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2018-01-26 09:41:50 +0000
committerStephen Finucane <stephen@that.guru>2018-01-26 09:41:50 +0000
commitf3074d17470f5a403166176a9efd6198505d891c (patch)
tree9e4747c5dd384e280de455d5fca64562f76c735a /setup.py
parent376b6a597d01b945cb4baaab469766610577470c (diff)
downloadsphinx-git-f3074d17470f5a403166176a9efd6198505d891c.tar.gz
setup: Configure flake8 extension as a local plugin
We don't want to install this as a system plugin. Now that flake8 3.5.0 is in the wild, we can use this. Signed-off-by: Stephen Finucane <stephen@that.guru> Fixes: #4492
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/setup.py b/setup.py
index f35e5f88d..abf71df78 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 4):
print('ERROR: Sphinx requires at least Python 2.7 or 3.4 to run.')
sys.exit(1)
-requires = [
+install_requires = [
'six>=1.5',
'Jinja2>=2.3',
'Pygments>=2.0',
@@ -47,7 +47,7 @@ extras_require = {
'pytest',
'pytest-cov',
'html5lib',
- 'flake8',
+ 'flake8>=3.5.0',
],
'test:python_version<"3"': [
'enum34',
@@ -226,15 +226,8 @@ setup(
'distutils.commands': [
'build_sphinx = sphinx.setup_command:BuildDoc',
],
- # consider moving this to 'flake8:local-plugins' once flake8 3.5.0 is
- # in the wild:
- # http://flake8.pycqa.org/en/latest/user/configuration.html\
- # #using-local-plugins
- 'flake8.extension': [
- 'X101 = utils.checks:sphinx_has_header',
- ],
},
- install_requires=requires,
+ install_requires=install_requires,
extras_require=extras_require,
cmdclass=cmdclass,
)