Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: Replace python3 -m venv and pip with uv for virtual environment management#1030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
josix merged 1 commit into3.13frommigrate-to-uv
Mar 15, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions.github/workflows/ci.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,5 +16,8 @@ jobs:
- name: Install Dependencies
run: sudo apt-get install gettext

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Validate
run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
10 changes: 5 additions & 5 deletionsMakefile
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -89,21 +89,21 @@ prepare_cpython: ## Prepare CPython clone at `../cpython/`.


$(VENV)/bin/activate:
python3 -m venv $(VENV)
uv venv $(VENV)

$(VENV)/bin/sphinx-build: $(VENV)/bin/activate
. $(VENV)/bin/activate;python3 -m pip install sphinx python-docs-theme
. $(VENV)/bin/activate;uv pip install sphinx python-docs-theme

$(VENV)/bin/sphinx-lint: $(VENV)/bin/activate
. $(VENV)/bin/activate;python3 -m pip install sphinx-lint
. $(VENV)/bin/activate;uv pip install sphinx-lint

$(VENV)/bin/blurb: $(VENV)/bin/activate
. $(VENV)/bin/activate;python3 -m pip install blurb
. $(VENV)/bin/activate;uv pip install blurb


.PHONY: upgrade_venv
upgrade_venv: $(VENV)/bin/activate ## Upgrade the venv that compiles the doc
@. $(VENV)/bin/activate;python3 -m pip install -q --upgrade sphinx python-docs-theme blurb sphinx-lint
@. $(VENV)/bin/activate;uv pip install -q --upgrade sphinx python-docs-theme blurb sphinx-lint


.PHONY: progress
Expand Down
1 change: 1 addition & 0 deletionsREADME.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -84,6 +84,7 @@ the PSF for inclusion in the documentation.
- `安裝好 git <https://help.github.com/articles/set-up-git/>`_\ (Windows
上請參考 https://gitforwindows.org/)
- 一個 ``.po`` 檔的編輯器。推薦使用 `Poedit <https://poedit.net>`_,若熟悉 po 檔用一般文字編輯器亦可。
- 參考 `uv Installation <https://docs.astral.sh/uv/getting-started/installation/>`_ 安裝 uv,以便在本機端預覽翻譯成果。
- macOS 的使用者還需要先利用 `homebrew <https://brew.sh/index_zh-tw>`_ 安裝 gettext,屆時 Sphinx 會使用到。

.. code-block:: bash
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp