File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1616 - name : Install Dependencies
1717 run : sudo apt-get install gettext
1818
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v5
21+
1922 - name : Validate
2023 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/`.
8989
9090
9191$(VENV ) /bin/activate :
92- python3 -m venv $(VENV )
92+ uv venv $(VENV )
9393
9494$(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
9696
9797$(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
9999
100100$(VENV ) /bin/blurb : $(VENV ) /bin/activate
101- . $(VENV ) /bin/activate; python3 -m pip install blurb
101+ . $(VENV ) /bin/activate; uv pip install blurb
102102
103103
104104.PHONY : upgrade_venv
105105upgrade_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
107107
108108
109109.PHONY : progress
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ the PSF for inclusion in the documentation.
8484- `安裝好 git <https://help.github.com/articles/set-up-git/ >`_\ (Windows
8585 上請參考 https://gitforwindows.org/)
8686- 一個 ``.po `` 檔的編輯器。推薦使用 `Poedit <https://poedit.net >`_,若熟悉 po 檔用一般文字編輯器亦可。
87+ - 參考 `uv Installation <https://docs.astral.sh/uv/getting-started/installation/ >`_ 安裝 uv,以便在本機端預覽翻譯成果。
8788- macOS 的使用者還需要先利用 `homebrew <https://brew.sh/index_zh-tw >`_ 安裝 gettext,屆時 Sphinx 會使用到。
8889
8990 .. code-block :: bash
You can’t perform that action at this time.
0 commit comments