From 04f722d78efa1bb3b24a6dfca6aa0b1821a1c057 Mon Sep 17 00:00:00 2001 From: mattwang44 Date: Thu, 15 Oct 2026 19:46:01 +0800 Subject: [PATCH 1/2] chore: update script for 3.15 Co-Authored-By: Claude Opus 5.5 --- .codex/AGENTS.md | 2 +- .github/workflows/deploy-gh-page.yml | 2 +- .../{py314-sync-cpython.yml => py315-sync-cpython.yml} | 8 ++++---- .scripts/summarize_progress/main.py | 2 +- CLAUDE.md | 2 +- Makefile | 2 +- README.rst | 10 +++++----- 7 files changed, 14 insertions(+), 14 deletions(-) rename .github/workflows/{py314-sync-cpython.yml => py315-sync-cpython.yml} (94%) diff --git a/.codex/AGENTS.md b/.codex/AGENTS.md index 3c3dea0e5d8..4db20885759 100644 --- a/.codex/AGENTS.md +++ b/.codex/AGENTS.md @@ -31,7 +31,7 @@ confirm the generated HTML in `../cpython/Doc/build/html`. ## Commit & Pull Request Guidelines - Open an issue to claim a translation task before starting. -- Base your branch on `upstream/3.13`. +- Base your branch on `upstream/3.15`. - Use clear commit messages; the repo example is `Working on path/to/file.po`. - In PRs, summarize the files translated, link the issue, and note any build diff --git a/.github/workflows/deploy-gh-page.yml b/.github/workflows/deploy-gh-page.yml index a4b23e11678..ef2b69d0a5c 100644 --- a/.github/workflows/deploy-gh-page.yml +++ b/.github/workflows/deploy-gh-page.yml @@ -3,7 +3,7 @@ name: deploy-gh-page on: push: branches: - - "3.14" + - "3.15" jobs: cd: diff --git a/.github/workflows/py314-sync-cpython.yml b/.github/workflows/py315-sync-cpython.yml similarity index 94% rename from .github/workflows/py314-sync-cpython.yml rename to .github/workflows/py315-sync-cpython.yml index c76e7848013..da876e5b745 100644 --- a/.github/workflows/py314-sync-cpython.yml +++ b/.github/workflows/py315-sync-cpython.yml @@ -1,9 +1,9 @@ -name: python-3.14-sync-with-cpython +name: python-3.15-sync-with-cpython on: push: branches: - - "3.14" + - "3.15" schedule: - cron: "0 0 * * *" @@ -11,8 +11,8 @@ jobs: sync: runs-on: ubuntu-latest env: - VERSION: "3.14" - BRANCH: "cron/sync/3.14" + VERSION: "3.15" + BRANCH: "cron/sync/3.15" steps: - uses: actions/checkout@v6 with: diff --git a/.scripts/summarize_progress/main.py b/.scripts/summarize_progress/main.py index b31624109c8..eea5b7c1607 100644 --- a/.scripts/summarize_progress/main.py +++ b/.scripts/summarize_progress/main.py @@ -137,7 +137,7 @@ def format_line_po(filename: str, po_link: str, progress: str, num_entries: str, filedict_sorted = dict(sorted(filedict.items())) for filename, filedata in filedict_sorted.items(): file_path = f"{dirname}/{filename}" if dirname else filename - po_link = f"https://github.com/python/python-docs-zh-tw/tree/3.14/{file_path}" + po_link = f"https://github.com/python/python-docs-zh-tw/tree/3.15/{file_path}" issue_link = filedata['issue'] issue_number = f"#{issue_link.split('/')[-1]}" create_issue_link = f"https://github.com/python/python-docs-zh-tw/issues/new?title=Translate%20`{file_path}`" diff --git a/CLAUDE.md b/CLAUDE.md index 94332f64b15..198852d160d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,6 +1,6 @@ # Python Documentation Traditional Chinese Translation -This project translates Python 3.14 official documentation to Traditional Chinese (zh_TW). +This project translates Python 3.15 official documentation to Traditional Chinese (zh_TW). ## Build Commands diff --git a/Makefile b/Makefile index 7d6a217f0ff..29518fdf4e3 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ endef export PRINT_HELP_PYSCRIPT # End of python section CPYTHON_CLONE := ../cpython -VERSION := $(or $(VERSION), 3.14) +VERSION := $(or $(VERSION), 3.15) SPHINX_CONF := $(CPYTHON_CLONE)/Doc/conf.py LANGUAGE := zh_TW LC_MESSAGES := $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES diff --git a/README.rst b/README.rst index 5267088f315..633546a0720 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ Python 官方說明文件臺灣繁體中文翻譯計畫 :target: https://discord.gg/44XheGXhWH :alt: Join Chat on Discord -這是 Python 3.14 官方說明文件的臺灣繁體中文(zh_TW)翻譯。 +這是 Python 3.15 官方說明文件的臺灣繁體中文(zh_TW)翻譯。 翻譯之前,請務必詳讀並同意\ `授權與 License`_。參與方式請參考\ `參與翻譯`_。 @@ -133,13 +133,13 @@ the PSF for inclusion in the documentation. 接著在 terminal 裡按照以下步驟: -1. 基於最新版本的 ``upstream/3.14`` 開啟一個 branch,現在假設我們想要翻譯 library/math.po \ +1. 基於最新版本的 ``upstream/3.15`` 開啟一個 branch,現在假設我們想要翻譯 library/math.po \ 所以把這個 branch 叫做 ``library/math``: .. code-block:: bash git fetch upstream - git checkout -b library/math upstream/3.14 + git checkout -b library/math upstream/3.15 2. 接著就可以開始翻譯(翻譯時可參考\ `翻譯守則`_),你可以手動開啟 Poedit 應用程式再選 \ library/math.po 檔案打開 @@ -223,7 +223,7 @@ the PSF for inclusion in the documentation. - 從 upstream(我們的主要 GitHub repo)做 fetch 的動作 - 對 origin(你的 fork)做 push -- 永遠不對 ``3.14`` branch 進行修改,請保持讓這個 branch 唯讀,可以避免掉很多問題。 +- 永遠不對 ``3.15`` branch 進行修改,請保持讓這個 branch 唯讀,可以避免掉很多問題。 要翻譯哪些東西 -------------- @@ -398,7 +398,7 @@ reST 語法注意事項 - 安裝並設定好你偏好的 coding agent(例如 `Claude Code `_ 或 Codex)。 -- 將本專案 clone 到本機,並切換到對應的版本 branch(例如 ``3.14``\ )。 +- 將本專案 clone 到本機,並切換到對應的版本 branch(例如 ``3.15``\ )。 - 在專案根目錄底下啟動 coding agent,Skill 才會被正確載入。 使用方式與範例 From 35de6c98b7e3de115a27bf5d1f4d7b834c1cf5fe Mon Sep 17 00:00:00 2001 From: mattwang44 Date: Fri, 16 Oct 2026 04:32:14 +0800 Subject: [PATCH 2/2] ci: run CPython sync weekly instead of daily Daily syncs keep appending commits to the open sync PR while it is being reviewed. Run it once a week (Friday 00:00 UTC, 08:00 Asia/Taipei) so each sync PR is a stable batch to review over the weekend. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/py315-sync-cpython.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/py315-sync-cpython.yml b/.github/workflows/py315-sync-cpython.yml index da876e5b745..6310d2f05b4 100644 --- a/.github/workflows/py315-sync-cpython.yml +++ b/.github/workflows/py315-sync-cpython.yml @@ -5,7 +5,7 @@ on: branches: - "3.15" schedule: - - cron: "0 0 * * *" + - cron: "0 0 * * 5" # weekly, Friday 00:00 UTC (08:00 Asia/Taipei) jobs: sync: