Skip to content

Commit ae6fe2a

Browse files
authored
Merge pull request #516 from tmontes/macos-build-docs
Docs now build successfully out of the box on macOS CPython.
2 parents 89f0f22 + edcddfa commit ae6fe2a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/jsonschema_role.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
except ImportError:
99
import urllib.request as urllib
1010

11+
import certifi
1112
from lxml import html
1213

1314

@@ -62,7 +63,7 @@ def fetch_or_load(spec_path):
6263
raise
6364

6465
request = urllib.Request(VALIDATION_SPEC, headers=headers)
65-
response = urllib.urlopen(request)
66+
response = urllib.urlopen(request, cafile=certifi.where())
6667

6768
if response.code == 200:
6869
with open(spec_path, "w+b") as spec:

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
certifi
12
lxml
23
sphinx==1.6.7
34
sphinxcontrib-spelling

0 commit comments

Comments
 (0)