From 19a187cb5443808c284dd9e8f85ad13cba98182b Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 15 Dec 2018 21:23:59 +0900 Subject: [PATCH] Update deps: requests-2.5.0 or above --- CHANGES | 1 + setup.py | 2 +- sphinx/util/requests.py | 7 ------- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/CHANGES b/CHANGES index f2e9eed81..885be38c5 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,7 @@ Dependencies * LaTeX builder with :confval:`latex_engine` set to ``'xelatex'`` or to ``'lualatex'`` requires (by default) the ``FreeFont`` fonts, which in Ubuntu xenial are provided by package ``fonts-freefont-otf``. +* requests 2.5.0 or above Incompatible changes -------------------- diff --git a/setup.py b/setup.py index 23e51452c..346a67b20 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ install_requires = [ 'babel>=1.3,!=2.0', 'alabaster>=0.7,<0.8', 'imagesize', - 'requests>=2.0.0', + 'requests>=2.5.0', 'setuptools', 'packaging', ] diff --git a/sphinx/util/requests.py b/sphinx/util/requests.py index 3a3c2b6cb..2d5141223 100644 --- a/sphinx/util/requests.py +++ b/sphinx/util/requests.py @@ -56,13 +56,6 @@ else: except (pkg_resources.DistributionNotFound, pkg_resources.VersionConflict): pass # ignored - except pkg_resources.UnknownExtra: - warnings.warn( - 'Some links may return broken results due to being unable to ' - 'check the Server Name Indication (SNI) in the returned SSL cert ' - 'against the hostname in the url requested. Recommended to ' - 'install requests-2.4.1+.' - ) if False: # For type annotation