experiment: use uv and dependency-groups in build pipelines#14122
Open
RonnyPfannschmidt wants to merge 7 commits into
Open
experiment: use uv and dependency-groups in build pipelines#14122RonnyPfannschmidt wants to merge 7 commits into
RonnyPfannschmidt wants to merge 7 commits into
Conversation
RonnyPfannschmidt
force-pushed
the
enable-uv
branch
2 times, most recently
from
January 17, 2026 20:12
02b004f to
4d21d6f
Compare
RonnyPfannschmidt
force-pushed
the
enable-uv
branch
2 times, most recently
from
June 10, 2026 09:20
d18014f to
ccefa12
Compare
RonnyPfannschmidt
force-pushed
the
enable-uv
branch
from
July 14, 2026 08:17
ccefa12 to
d2ec5d4
Compare
RonnyPfannschmidt
marked this pull request as ready for review
July 14, 2026 08:18
There was a problem hiding this comment.
Pull request overview
This PR experiments with modernizing pytest’s build/dev infrastructure by adopting uv lockfiles and PEP 735 dependency groups, and integrating tox-uv into CI to speed up environment creation and installs.
Changes:
- Add a
uv.locklockfile and define adevdependency group inpyproject.toml. - Switch tox environments to use
dependency_groups(and addtox-uv) instead of thedevextra. - Update GitHub Actions workflows to install
tox-uvalongsidetox.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
uv.lock |
Adds a uv lockfile capturing resolved dependencies and markers for the repo. |
tox.ini |
Migrates tox env dependency management to dependency_groups and introduces tox-uv. |
pyproject.toml |
Updates core dependency minimums and introduces [dependency-groups].dev. |
.github/workflows/update-plugin-list.yml |
Installs tox-uv in the workflow runner before invoking tox. |
.github/workflows/test.yml |
Installs tox-uv in CI before running tox test jobs. |
.github/workflows/prepare-release-pr.yml |
Installs tox-uv before running the release-prep tox env. |
.github/workflows/doc-check-links.yml |
Installs tox-uv before running docs linkcheck via tox. |
.github/workflows/deploy.yml |
Installs tox-uv before running the release-notes tox env. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
RonnyPfannschmidt
force-pushed
the
enable-uv
branch
from
July 20, 2026 09:46
d2ec5d4 to
3380575
Compare
The-Compiler
requested changes
Jul 20, 2026
The-Compiler
approved these changes
Jul 20, 2026
The-Compiler
left a comment
Member
There was a problem hiding this comment.
LGTM but I don't know much about uv/pyproject.toml
Contributor
|
Successfully ran the tests locally via |
This is an experimental change to modernize the build infrastructure: - Add uv.lock for reproducible dependency resolution - Migrate from optional-dependencies to dependency-groups (PEP 735) - Configure tox to use tox-uv for faster dependency installation - Update all GitHub Actions workflows to install tox-uv - Update minimum version pins to sensible modern values: - iniconfig>=2, packaging>=24, pygments>=2.15, tomli>=2 - attrs>=23.1, hypothesis>=6.75, numpy>=1.26, pytest-xdist>=3.5 - coverage>=7.5, pexpect>=4.9, pre-commit>=4 - Remove py library from dev deps (pytest vendors its own minimal version) Usage: uv sync --group dev # Install with dev dependencies uv run pytest # Run tests uvx --with tox-uv tox # Run tox with uv backend Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Anthropic Claude <claude@anthropic.com>
The PEP 735 dependency group is a superset of the old optional extra and nothing in the repo references pytest[dev] anymore. Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Anthropic Claude Opus 4 <claude@anthropic.com>
Keep optional-dependencies.dev so CONTRIBUTING's pip install -e ".[dev]" still works, and allowlist uv for the plugins tox env. Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Cursor Grok 4.5 <grok@x.ai>
The warning is attributed to stdlib pty (stacklevel=1), not ptyprocess, and only fails under filterwarnings=error on Python 3.15+ (especially macOS, where Mach counts extra runtime threads). Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Cursor Grok 4.5 <grok@x.ai>
Python 3.15 defaults pdb to PyREPL, which adds ANSI/bracketed-paste sequences that break exact pexpect matching on macOS. Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Cursor Grok 4.5 <grok@x.ai>
Keep PYTHON_BASIC_REPL for pdb selftests and restore the strict assert. Make optional-dependencies.dev an empty stub scheduled for removal, document dependency-group installs, and rely on the pyproject.toml forkpty warning filter only. Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Cursor Grok 4.5 <grok@x.ai>
Keep the published `dev` extra for external repos that still use it, have `[dependency-groups].dev` pull from that extra, and document only the group-based install path for contributing. Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Cursor Grok 4.5 <grok@x.ai>
RonnyPfannschmidt
force-pushed
the
enable-uv
branch
from
July 21, 2026 08:55
a36fa98 to
449b3f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Experiment to modernize build infrastructure:
Usage:
uv sync --group dev && uv run pytest