Skip to content

Commit 7920139

Browse files
Update pydoc_data/module_docs.py on release (#336)
1 parent 3f16dbf commit 7920139

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

run_release.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,11 @@ def prepare_pydoc_topics(db: ReleaseShelf) -> None:
491491
db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "topics.py",
492492
db["git_repo"] / "Lib" / "pydoc_data" / "topics.py",
493493
)
494+
if db["release"].as_tuple() >= (3, 13):
495+
shutil.copy2(
496+
db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "module_docs.py",
497+
db["git_repo"] / "Lib" / "pydoc_data" / "module_docs.py",
498+
)
494499
subprocess.check_call(
495500
["git", "commit", "-a", "--amend", "--no-edit"], cwd=db["git_repo"]
496501
)

0 commit comments

Comments
 (0)