fix SSL/TLS warnings in build
The specs build talks to Launchpad to ensure that there is a blueprint for each spec being added to the repository. Those calls emit warnings unless SSL is configured properly, which requires newer SSL libraries than are available in the standard library. Change-Id: I86f8af6ec1f890ebdd260226b0323df8040405a4 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
@@ -15,6 +15,17 @@
|
||||
import datetime
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
# Try to only emit warnings about SSL issues one time.
|
||||
try:
|
||||
from requests.packages.urllib3 import exceptions
|
||||
warnings.filterwarnings('ignore', '.*',
|
||||
exceptions.InsecurePlatformWarning)
|
||||
warnings.filterwarnings('ignore', '.*',
|
||||
exceptions.SNIMissingWarning)
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
sys.path.insert(0, os.path.abspath('../..'))
|
||||
# -- General configuration ----------------------------------------------------
|
||||
|
||||
@@ -3,3 +3,5 @@ oslosphinx
|
||||
sphinx>=1.1.2,!=1.2.0,<1.3
|
||||
yasfb>=0.5.0
|
||||
simplejson>=2.2.0
|
||||
pyOpenSSL>=0.14 # Apache-2.0
|
||||
pyasn1 # BSD
|
||||
|
||||
Reference in New Issue
Block a user