File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 16
16
- name : Install Dependencies
17
17
run : sudo apt-get install gettext
18
18
19
+ - name : Install uv
20
+ uses : astral-sh/setup-uv@v5
21
+
19
22
- name : Validate
20
23
run : VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
Original file line number Diff line number Diff line change @@ -89,21 +89,21 @@ prepare_cpython: ## Prepare CPython clone at `../cpython/`.
89
89
90
90
91
91
$(VENV ) /bin/activate :
92
- python3 -m venv $(VENV )
92
+ uv venv $(VENV )
93
93
94
94
$(VENV ) /bin/sphinx-build : $(VENV ) /bin/activate
95
- . $(VENV ) /bin/activate; python3 -m pip install sphinx python-docs-theme
95
+ . $(VENV ) /bin/activate; uv pip install sphinx python-docs-theme
96
96
97
97
$(VENV ) /bin/sphinx-lint : $(VENV ) /bin/activate
98
- . $(VENV ) /bin/activate; python3 -m pip install sphinx-lint
98
+ . $(VENV ) /bin/activate; uv pip install sphinx-lint
99
99
100
100
$(VENV ) /bin/blurb : $(VENV ) /bin/activate
101
- . $(VENV ) /bin/activate; python3 -m pip install blurb
101
+ . $(VENV ) /bin/activate; uv pip install blurb
102
102
103
103
104
104
.PHONY : upgrade_venv
105
105
upgrade_venv : $(VENV ) /bin/activate # # Upgrade the venv that compiles the doc
106
- @. $(VENV ) /bin/activate; python3 -m pip install -q --upgrade sphinx python-docs-theme blurb sphinx-lint
106
+ @. $(VENV ) /bin/activate; uv pip install -q --upgrade sphinx python-docs-theme blurb sphinx-lint
107
107
108
108
109
109
.PHONY : progress
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ the PSF for inclusion in the documentation.
84
84
- `安裝好 git <https://help.github.com/articles/set-up-git/ >`_\ (Windows
85
85
上請參考 https://gitforwindows.org/)
86
86
- 一個 ``.po `` 檔的編輯器。推薦使用 `Poedit <https://poedit.net >`_,若熟悉 po 檔用一般文字編輯器亦可。
87
+ - 參考 `uv Installation <https://docs.astral.sh/uv/getting-started/installation/ >`_ 安裝 uv,以便在本機端預覽翻譯成果。
87
88
- macOS 的使用者還需要先利用 `homebrew <https://brew.sh/index_zh-tw >`_ 安裝 gettext,屆時 Sphinx 會使用到。
88
89
89
90
.. code-block :: bash
You can’t perform that action at this time.
0 commit comments