diff --git a/CHANGES b/CHANGES index 320039365..3cca1dee3 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 ab81cace3..50c4b3f3a 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,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 48cf5cd28..9abd4f2f5 100644 --- a/sphinx/util/requests.py +++ b/sphinx/util/requests.py @@ -53,13 +53,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