Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 27, 2025

Migrate Python tooling from pip to uv across all documentation and GitHub Actions workflows.

Documentation

  • README.md: pip installuv pip install
  • docs/examples/basic.md: Updated example commands
  • docs/getting-started/installation.md: Updated install commands, changed venv creation to uv venv

GitHub Actions Workflows

All Python workflows now use astral-sh/setup-uv@v7 with caching enabled:

  • docs.yml: uv sync --locked --extra docs + uv run mike
  • pytest.yml: uv sync --locked --all-extras --dev + uv run pytest
  • example.yml: uv sync --locked + uv run python
- uses: astral-sh/setup-uv@v7
  with:
    python-version: ${{ matrix.python-version }}
    enable-cache: true

- run: uv sync --locked --all-extras --dev
- run: uv run pytest --cov=pyds
Original prompt

This section details on the original issue you should resolve

<issue_title>使用uv生态而不是pip在文档和workflow中</issue_title>
<issue_description></issue_description>

<agent_instructions>目前存在pip的地方:

  1. README.md
  2. docs/examples/basic.md
  3. docs/getting-started/installation.md
  4. .github/workflows/docs.yml
  5. .github/workflows/pytest.yml
  6. .github/workflows/example.yml

关于uv在github action中的使用, 你可能需要参考 https://docs.astral.sh/uv/guides/integration/github/
其中关键内容是:

      - uses: astral-sh/setup-uv@v7
        with:
          python-version: ${{ matrix.python-version }}
- name: build
  run: uv sync --locked --all-extras --dev
- name: Enable caching
  uses: astral-sh/setup-uv@v7
  with:
    enable-cache: true
```</agent_instructions>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 27, 2025 06:19
Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>
Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>
Copilot AI changed the title [WIP] Update documentation and workflows to use uv instead of pip Replace pip with uv in documentation and workflows Nov 27, 2025
Copilot AI requested a review from hzhangxyz November 27, 2025 06:23
@hzhangxyz hzhangxyz force-pushed the copilot/update-documentation-to-use-uv branch from fe4c922 to b6ed6e1 Compare November 27, 2025 08:14
@hzhangxyz hzhangxyz marked this pull request as ready for review November 27, 2025 08:30
@hzhangxyz hzhangxyz merged commit 7b31fa9 into main Nov 27, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

使用uv生态而不是pip在文档和workflow中

2 participants