From 0e45b977d00c4543bcc5d2439e1bc8e434fded19 Mon Sep 17 00:00:00 2001 From: Sergey Vasilyev Date: Sat, 3 Oct 2026 15:24:05 +0200 Subject: [PATCH] Switch to uv in CI (a follow-up for missing things) Signed-off-by: Sergey Vasilyev --- .github/workflows/publish.yaml | 4 ++-- .readthedocs.yaml | 7 +++++-- docs/getting-started.rst | 9 +++++++-- looptime/.gitignore | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6a6762a..815d90c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -16,11 +16,11 @@ jobs: id-token: write # for trusted publishing steps: - uses: actions/checkout@v7 + - uses: astral-sh/setup-uv@v10.2.0 - uses: actions/setup-python@v7 with: python-version: "3.14" - - run: pip install --upgrade pip build - - run: python -m build # includes sdist & wheel by default + - run: uv build - uses: pypa/gh-action-pypi-publish@release/v1 with: skip_existing: true diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d623a93..59b8ac3 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,9 +7,12 @@ build: tools: python: "3" jobs: + pre_create_environment: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest install: - - pip install --upgrade pip - - pip install --group docs -e . + - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --group docs sphinx: configuration: docs/conf.py builder: "dirhtml" diff --git a/docs/getting-started.rst b/docs/getting-started.rst index af427cb..2a71eeb 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -10,8 +10,13 @@ supported. For example, use `pytest-asyncio