Skip to content

Commit 3a5eeb5

Browse files
authored
Merge pull request python#1030 from python/migrate-to-uv
chore: Replace python3 -m venv and pip with uv for virtual environment management
2 parents d48b8ca + bc8c692 commit 3a5eeb5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ jobs:
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

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
105105
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
107107

108108

109109
.PHONY: progress

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy