diff --git a/run_release.py b/run_release.py index b69b2d2e..903792c3 100755 --- a/run_release.py +++ b/run_release.py @@ -491,6 +491,11 @@ def prepare_pydoc_topics(db: ReleaseShelf) -> None: db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "topics.py", db["git_repo"] / "Lib" / "pydoc_data" / "topics.py", ) + if db["release"].as_tuple() >= (3, 13): + shutil.copy2( + db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "module_docs.py", + db["git_repo"] / "Lib" / "pydoc_data" / "module_docs.py", + ) subprocess.check_call( ["git", "commit", "-a", "--amend", "--no-edit"], cwd=db["git_repo"] )