summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-07-08 15:21:10 -0700
committerAnthony Sottile <asottile@umich.edu>2019-07-08 15:22:51 -0700
commit77abc11a6f0d4e5e50ccd56fb7b07b4e8ad9944b (patch)
tree39c16605ca1fa9abadf3939c2dc4e087c0958730 /src
parent4a52c99cdee1f1882243564c18a228a2f9972be4 (diff)
downloadflake8-77abc11a6f0d4e5e50ccd56fb7b07b4e8ad9944b.tar.gz
Deprecate the flake8 setuptools integration
Diffstat (limited to 'src')
-rw-r--r--src/flake8/main/setuptools_command.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/flake8/main/setuptools_command.py b/src/flake8/main/setuptools_command.py
index 55dc378..fde290e 100644
--- a/src/flake8/main/setuptools_command.py
+++ b/src/flake8/main/setuptools_command.py
@@ -1,4 +1,5 @@
"""The logic for Flake8's integration with setuptools."""
+from distutils import log
import os
from typing import List, Tuple
@@ -105,3 +106,10 @@ class Flake8(setuptools.Command):
# other possibly remaining/pending setuptools commands).
if e.code:
raise
+ finally:
+ self.announce(
+ "WARNING: flake8 setuptools integration is deprecated and "
+ "scheduled for removal in 4.x. For more information, see "
+ "https://gitlab.com/pycqa/flake8/issues/544",
+ log.WARN,
+ )