summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2019-01-21 16:36:30 -0500
committerGitHub <noreply@github.com>2019-01-21 16:36:30 -0500
commitae6fe2acf3af1159883e1313370c23fd8d644a3c (patch)
treea24667efd2252e85004980d81c6668826bf1f2e2
parent89f0f22a949e3561d05576f27e9a97c8233e2ee9 (diff)
parentedcddfa07c8818412c239d7533da708cfef2ce95 (diff)
downloadjsonschema-ae6fe2acf3af1159883e1313370c23fd8d644a3c.tar.gz
Merge pull request #516 from tmontes/macos-build-docs
Docs now build successfully out of the box on macOS CPython.
-rw-r--r--docs/jsonschema_role.py3
-rw-r--r--docs/requirements.txt1
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/jsonschema_role.py b/docs/jsonschema_role.py
index cee8d14..607f8de 100644
--- a/docs/jsonschema_role.py
+++ b/docs/jsonschema_role.py
@@ -8,6 +8,7 @@ try:
except ImportError:
import urllib.request as urllib
+import certifi
from lxml import html
@@ -62,7 +63,7 @@ def fetch_or_load(spec_path):
raise
request = urllib.Request(VALIDATION_SPEC, headers=headers)
- response = urllib.urlopen(request)
+ response = urllib.urlopen(request, cafile=certifi.where())
if response.code == 200:
with open(spec_path, "w+b") as spec:
diff --git a/docs/requirements.txt b/docs/requirements.txt
index 5d7997a..eb3007a 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1,3 +1,4 @@
+certifi
lxml
sphinx==1.6.7
sphinxcontrib-spelling