Skip to content

feat: add configurable PGO dependency group (#3278) - #3310

Open
1998LJ wants to merge 1 commit into
PyO3:mainfrom
1998LJ:feat/3278-pgo-dependency-group
Open

1998LJ wants to merge 1 commit into
PyO3:mainfrom
1998LJ:feat/3278-pgo-dependency-group

Conversation

@1998LJ

@1998LJ 1998LJ commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3278.

What changed

  • Add pgo-dependency-group under [tool.maturin], defaulting to dev.
  • Install the selected PEP 735 dependency group before running the PGO training command.
  • When uv is available, export the selected group to a temporary requirements file so the lockfile is respected without syncing away the instrumented wheel.
  • Fall back to pip install --group when uv is not being used.
  • Document the new configuration and add coverage for configuration parsing and the PGO dependency-group flow.

Why

Projects may keep PGO or training dependencies in a group other than dev. This makes that group configurable while preserving the existing default behavior.

@1998LJ
1998LJ force-pushed the feat/3278-pgo-dependency-group branch 3 times, most recently from 699b699 to 61658b6 Compare September 22, 2026 12:59
@1998LJ
1998LJ force-pushed the feat/3278-pgo-dependency-group branch from ef42cc5 to 23bc7da Compare September 27, 2026 12:07

This branch has not been deployed

No deployments
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.

Add pgo-dependency-group configuration

1 participant