@@ -65,19 +65,19 @@ def has_source_changes():
65
65
return tools .has_changes ([PYTHON_SRC ])
66
66
67
67
68
- def build_docs (builder = "html" ):
68
+ def build_docs (* , builder = "html" , only = () ):
69
69
# See https://www.sphinx-doc.org/en/stable/man/sphinx-build.html
70
70
# (unfortunately most options only have the short flag version)
71
71
tools .scripts .pip_tool (
72
72
"sphinx-build" ,
73
73
"-W" ,
74
- "--keep-going" ,
75
74
"-T" ,
76
75
"-E" ,
77
76
"-b" ,
78
77
builder ,
79
78
"docs" ,
80
79
"docs/_build/" + builder ,
80
+ * only ,
81
81
cwd = HYPOTHESIS_PYTHON ,
82
82
)
83
83
@@ -189,7 +189,7 @@ def upload_distribution():
189
189
190
190
# Construct plain-text + markdown version of this changelog entry,
191
191
# with link to canonical source.
192
- build_docs (builder = "text" )
192
+ build_docs (builder = "text" , only = [ "docs/changes.rst" ] )
193
193
textfile = os .path .join (HYPOTHESIS_PYTHON , "docs" , "_build" , "text" , "changes.txt" )
194
194
with open (textfile , encoding = "utf-8" ) as f :
195
195
lines = f .readlines ()
@@ -207,7 +207,7 @@ def upload_distribution():
207
207
"https://api.github.com/repos/HypothesisWorks/hypothesis/releases" ,
208
208
headers = {
209
209
"Accept" : "application/vnd.github+json" ,
210
- "Authorization" : f"Bearer: { os .environ ['GH_TOKEN' ]} " ,
210
+ "Authorization" : f"Bearer { os .environ ['GH_TOKEN' ]} " ,
211
211
"X-GitHub-Api-Version" : "2022-11-28" ,
212
212
},
213
213
json = {
0 commit comments