Skip to content

Commit 0a72436

Browse files
committed
feat: to: /import.rst:970
^ Conflicts: ^ reference/import.po
1 parent 5ced5c2 commit 0a72436

File tree

533 files changed

+516582
-516447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

533 files changed

+516582
-516447
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
name: build
2-
3-
concurrency: preview-${{ github.ref }}
4-
5-
permissions:
6-
contents: write
7-
pull-requests: write
8-
9-
on:
10-
pull_request:
11-
12-
jobs:
13-
ci:
14-
runs-on: ubuntu-22.04
15-
steps:
16-
- uses: actions/checkout@v5
17-
18-
- uses: actions/setup-python@v6
19-
with:
20-
python-version: "3.13"
21-
22-
- name: Install Dependencies
23-
run: sudo apt-get install gettext
24-
25-
- name: Install uv
26-
uses: astral-sh/setup-uv@v7
27-
28-
- name: Build HTML Docs
29-
run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
30-
31-
- name: Deploy PR Doc Preview
32-
# PR from the forked repo would be denied as the permission is not granted.
33-
# Allow only PR from this repo.
34-
if: ${{ ( github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name ) }}
35-
uses: rossjrw/pr-preview-action@v1
36-
with:
37-
source-dir: ../cpython/Doc/build/html
38-
preview-branch: gh-pages
39-
umbrella-dir: pr-preview
40-
action: auto
1+
name: build
2+
3+
concurrency: preview-${{ github.ref }}
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
on:
10+
pull_request:
11+
12+
jobs:
13+
ci:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- uses: actions/setup-python@v6
19+
with:
20+
python-version: "3.13"
21+
22+
- name: Install Dependencies
23+
run: sudo apt-get install gettext
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v7
27+
28+
- name: Build HTML Docs
29+
run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
30+
31+
- name: Deploy PR Doc Preview
32+
# PR from the forked repo would be denied as the permission is not granted.
33+
# Allow only PR from this repo.
34+
if: ${{ ( github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name ) }}
35+
uses: rossjrw/pr-preview-action@v1
36+
with:
37+
source-dir: ../cpython/Doc/build/html
38+
preview-branch: gh-pages
39+
umbrella-dir: pr-preview
40+
action: auto
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
name: deploy-gh-page
2-
3-
on:
4-
push:
5-
branches:
6-
- "3.14"
7-
8-
jobs:
9-
cd:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v5
13-
14-
- name: Install Dependencies
15-
run: sudo apt-get install gettext
16-
17-
- name: Install uv
18-
uses: astral-sh/setup-uv@v7
19-
20-
- name: Build
21-
run: JOBS=4 MODE=html make all
22-
23-
- name: Deploy to gh page
24-
uses: JamesIves/github-pages-deploy-action@v4.7.3
25-
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
27-
branch: gh-pages
28-
folder: ../cpython/Doc/build/html
29-
clean: true
30-
clean-exclude: pr-preview/
1+
name: deploy-gh-page
2+
3+
on:
4+
push:
5+
branches:
6+
- "3.14"
7+
8+
jobs:
9+
cd:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v5
13+
14+
- name: Install Dependencies
15+
run: sudo apt-get install gettext
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v7
19+
20+
- name: Build
21+
run: JOBS=4 MODE=html make all
22+
23+
- name: Deploy to gh page
24+
uses: JamesIves/github-pages-deploy-action@v4.7.3
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
branch: gh-pages
28+
folder: ../cpython/Doc/build/html
29+
clean: true
30+
clean-exclude: pr-preview/
Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
name: python-3.14-sync-with-cpython
2-
3-
on:
4-
push:
5-
branches:
6-
- "3.14"
7-
schedule:
8-
- cron: "0 0 * * *"
9-
10-
jobs:
11-
sync:
12-
runs-on: ubuntu-latest
13-
env:
14-
VERSION: "3.14"
15-
BRANCH: "cron/sync/3.14"
16-
steps:
17-
- uses: actions/checkout@v5
18-
with:
19-
ref: ${{ env.VERSION }}
20-
21-
- name: Get the changes on branch (if exists)
22-
continue-on-error: true
23-
run: |
24-
git fetch origin ${{ env.BRANCH }}:${{ env.BRANCH }}
25-
git reset --hard ${{ env.BRANCH }}
26-
27-
- name: Set env
28-
run: echo "LATEST_COMMIT_ID=$(git ls-remote https://github.com/python/CPython.git $VERSION | head -c 8)" >> $GITHUB_ENV
29-
30-
- name: Install Dependencies
31-
run: sudo apt-get install gettext
32-
33-
- name: Install uv
34-
uses: astral-sh/setup-uv@v7
35-
36-
- name: Sync with CPython
37-
run: make clone merge rm_cpython wrap
38-
39-
- uses: actions/create-github-app-token@v2
40-
id: app-token
41-
with:
42-
app-id: ${{ secrets.APP_ID }}
43-
private-key: ${{ secrets.APP_PRIVATE_KEY }}
44-
45-
- name: Create Pull Request
46-
id: cpr
47-
uses: peter-evans/create-pull-request@v6
48-
with:
49-
token: ${{ steps.app-token.outputs.token }}
50-
commit-message: sync with cpython ${{ env.LATEST_COMMIT_ID }}
51-
committer: GitHub <noreply@github.com>
52-
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
53-
base: ${{ env.VERSION }}
54-
branch: ${{ env.BRANCH }}
55-
delete-branch: false
56-
title: "Sync with CPython ${{ env.VERSION }}"
57-
body: |
58-
Sync with CPython ${{ env.VERSION }}
59-
draft: true
60-
labels: |
61-
sync-cpython
62-
automation
63-
64-
- name: Check outputs
65-
run: |
66-
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
67-
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
1+
name: python-3.14-sync-with-cpython
2+
3+
on:
4+
push:
5+
branches:
6+
- "3.14"
7+
schedule:
8+
- cron: "0 0 * * *"
9+
10+
jobs:
11+
sync:
12+
runs-on: ubuntu-latest
13+
env:
14+
VERSION: "3.14"
15+
BRANCH: "cron/sync/3.14"
16+
steps:
17+
- uses: actions/checkout@v5
18+
with:
19+
ref: ${{ env.VERSION }}
20+
21+
- name: Get the changes on branch (if exists)
22+
continue-on-error: true
23+
run: |
24+
git fetch origin ${{ env.BRANCH }}:${{ env.BRANCH }}
25+
git reset --hard ${{ env.BRANCH }}
26+
27+
- name: Set env
28+
run: echo "LATEST_COMMIT_ID=$(git ls-remote https://github.com/python/CPython.git $VERSION | head -c 8)" >> $GITHUB_ENV
29+
30+
- name: Install Dependencies
31+
run: sudo apt-get install gettext
32+
33+
- name: Install uv
34+
uses: astral-sh/setup-uv@v7
35+
36+
- name: Sync with CPython
37+
run: make clone merge rm_cpython wrap
38+
39+
- uses: actions/create-github-app-token@v2
40+
id: app-token
41+
with:
42+
app-id: ${{ secrets.APP_ID }}
43+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
44+
45+
- name: Create Pull Request
46+
id: cpr
47+
uses: peter-evans/create-pull-request@v6
48+
with:
49+
token: ${{ steps.app-token.outputs.token }}
50+
commit-message: sync with cpython ${{ env.LATEST_COMMIT_ID }}
51+
committer: GitHub <noreply@github.com>
52+
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
53+
base: ${{ env.VERSION }}
54+
branch: ${{ env.BRANCH }}
55+
delete-branch: false
56+
title: "Sync with CPython ${{ env.VERSION }}"
57+
body: |
58+
Sync with CPython ${{ env.VERSION }}
59+
draft: true
60+
labels: |
61+
sync-cpython
62+
automation
63+
64+
- name: Check outputs
65+
run: |
66+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
67+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
name: summarize_progress
2-
3-
on:
4-
workflow_dispatch:
5-
schedule:
6-
- cron: '30 23 * * 5'
7-
8-
jobs:
9-
ci:
10-
if: github.repository == 'python/python-docs-zh-tw'
11-
runs-on: ubuntu-latest
12-
permissions:
13-
# Give the default GITHUB_TOKEN write permission to commit and push the
14-
# added or changed files to the repository.
15-
contents: write
16-
steps:
17-
- uses: actions/checkout@v5
18-
19-
- name: Install poetry
20-
uses: abatilo/actions-poetry@v4
21-
22-
- name: Execute Check Process
23-
run: |
24-
chmod +x .scripts/summarize_progress.sh
25-
.scripts/summarize_progress.sh
26-
shell: bash
27-
28-
29-
- name: Checkout wiki code
30-
uses: actions/checkout@v5
31-
with:
32-
repository: ${{github.repository}}.wiki
33-
path: markdown
34-
35-
- name: Copy content
36-
run: |
37-
cp .scripts/summarize_progress/result.md markdown/各檔案翻譯進度清單.md
38-
shell: bash
39-
40-
- name: Commit wiki code
41-
uses: stefanzweifel/git-auto-commit-action@v7
42-
with:
43-
commit_message: Weekly Update -- Summarize Progress
44-
repository: markdown
1+
name: summarize_progress
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '30 23 * * 5'
7+
8+
jobs:
9+
ci:
10+
if: github.repository == 'python/python-docs-zh-tw'
11+
runs-on: ubuntu-latest
12+
permissions:
13+
# Give the default GITHUB_TOKEN write permission to commit and push the
14+
# added or changed files to the repository.
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v5
18+
19+
- name: Install poetry
20+
uses: abatilo/actions-poetry@v4
21+
22+
- name: Execute Check Process
23+
run: |
24+
chmod +x .scripts/summarize_progress.sh
25+
.scripts/summarize_progress.sh
26+
shell: bash
27+
28+
29+
- name: Checkout wiki code
30+
uses: actions/checkout@v5
31+
with:
32+
repository: ${{github.repository}}.wiki
33+
path: markdown
34+
35+
- name: Copy content
36+
run: |
37+
cp .scripts/summarize_progress/result.md markdown/各檔案翻譯進度清單.md
38+
shell: bash
39+
40+
- name: Commit wiki code
41+
uses: stefanzweifel/git-auto-commit-action@v7
42+
with:
43+
commit_message: Weekly Update -- Summarize Progress
44+
repository: markdown

0 commit comments

Comments
 (0)