Skip to content

Commit 3c128e7

Browse files
authored
Merge pull request #4150 from tybug/fix-deploy-docs
Fix deploy docs
2 parents 21502ba + 3b088c0 commit 3c128e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tooling/src/hypothesistooling/projects/hypothesispython.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@ def has_source_changes():
6565
return tools.has_changes([PYTHON_SRC])
6666

6767

68-
def build_docs(builder="html"):
68+
def build_docs(*, builder="html", only=()):
6969
# See https://www.sphinx-doc.org/en/stable/man/sphinx-build.html
7070
# (unfortunately most options only have the short flag version)
7171
tools.scripts.pip_tool(
7272
"sphinx-build",
7373
"-W",
74-
"--keep-going",
7574
"-T",
7675
"-E",
7776
"-b",
7877
builder,
7978
"docs",
8079
"docs/_build/" + builder,
80+
*only,
8181
cwd=HYPOTHESIS_PYTHON,
8282
)
8383

@@ -189,7 +189,7 @@ def upload_distribution():
189189

190190
# Construct plain-text + markdown version of this changelog entry,
191191
# with link to canonical source.
192-
build_docs(builder="text")
192+
build_docs(builder="text", only=["docs/changes.rst"])
193193
textfile = os.path.join(HYPOTHESIS_PYTHON, "docs", "_build", "text", "changes.txt")
194194
with open(textfile, encoding="utf-8") as f:
195195
lines = f.readlines()
@@ -207,7 +207,7 @@ def upload_distribution():
207207
"https://api.github.com/repos/HypothesisWorks/hypothesis/releases",
208208
headers={
209209
"Accept": "application/vnd.github+json",
210-
"Authorization": f"Bearer: {os.environ['GH_TOKEN']}",
210+
"Authorization": f"Bearer {os.environ['GH_TOKEN']}",
211211
"X-GitHub-Api-Version": "2022-11-28",
212212
},
213213
json={

0 commit comments

Comments
 (0)