diff options
author | Tiago Montes <tiago.montes@gmail.com> | 2019-01-11 16:00:36 +0000 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2019-01-14 09:49:24 -0500 |
commit | edcddfa07c8818412c239d7533da708cfef2ce95 (patch) | |
tree | b6eaad87c2388d907133f0a3b4460fb7247dc60e | |
parent | b158176c941080f0cae5301945205e058d9a5e7e (diff) | |
download | jsonschema-edcddfa07c8818412c239d7533da708cfef2ce95.tar.gz |
Docs now build successfully out of the box on macOS CPython.
-rw-r--r-- | docs/jsonschema_role.py | 3 | ||||
-rw-r--r-- | docs/requirements.txt | 1 |
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 |