From 396c4c165ab5e933d4b24a5b991dd3736c810a7a Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Tue, 20 Jan 2026 09:21:55 +0000 Subject: [PATCH 1/3] Copy module_docs.py to pydoc_data directory Added functionality to copy module_docs.py to pydoc_data. --- run_release.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run_release.py b/run_release.py index b69b2d2e..d9a2b286 100755 --- a/run_release.py +++ b/run_release.py @@ -489,7 +489,11 @@ def prepare_pydoc_topics(db: ReleaseShelf) -> None: subprocess.check_call(["make", "pydoc-topics"], cwd=db["git_repo"] / "Doc") shutil.copy2( db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "topics.py", - db["git_repo"] / "Lib" / "pydoc_data" / "topics.py", + db["git_repo"] / "Lib" / "pydoc_data" / "topics.py" + ) + 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"] From 981006e7e2b3387fda0a5bace3b791e2b8f8a72e Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Tue, 20 Jan 2026 09:22:34 +0000 Subject: [PATCH 2/3] Fixup --- run_release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_release.py b/run_release.py index d9a2b286..3e827eb3 100755 --- a/run_release.py +++ b/run_release.py @@ -489,11 +489,11 @@ def prepare_pydoc_topics(db: ReleaseShelf) -> None: subprocess.check_call(["make", "pydoc-topics"], cwd=db["git_repo"] / "Doc") shutil.copy2( db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "topics.py", - db["git_repo"] / "Lib" / "pydoc_data" / "topics.py" + db["git_repo"] / "Lib" / "pydoc_data" / "topics.py", ) shutil.copy2( db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "module_docs.py", - db["git_repo"] / "Lib" / "pydoc_data" / "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"] From 0b516a0a236b181de60b99075efbeeaaec62a574 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Tue, 20 Jan 2026 18:55:01 +0000 Subject: [PATCH 3/3] Onky for >= 3.13 --- run_release.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/run_release.py b/run_release.py index 3e827eb3..903792c3 100755 --- a/run_release.py +++ b/run_release.py @@ -491,10 +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", ) - shutil.copy2( - db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "module_docs.py", - db["git_repo"] / "Lib" / "pydoc_data" / "module_docs.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"] )