Skip to content

build(python): migrate to PEP 735 dependency groups - #21

Merged
lukasberbuer merged 1 commit into
mainfrom
build/python-dependency-groups
Aug 3, 2026
Merged

build(python): migrate to PEP 735 dependency groups#21
lukasberbuer merged 1 commit into
mainfrom
build/python-dependency-groups

Conversation

@lukasberbuer

Copy link
Copy Markdown
Member

Move docs/tests/tools/dev from [project.optional-dependencies] to [dependency-groups]. These are development dependencies and don't belong in the published package metadata. The dev group now uses include-group instead of the self-referencing openae[docs,tests,tools] extra.

Update the consumers accordingly:

  • CI installs with pip install . --group tests
  • cibuildwheel uses test-groups instead of a duplicated test-requires
  • Read the Docs installs via build.jobs.install, since the python.install key has no dependency group support

Requires pip >= 25.1, hence the pip upgrade steps. Note that dependency groups are not part of the wheel/sdist metadata, so pip install openae[tests] no longer works.

Move docs/tests/tools/dev from [project.optional-dependencies] to
[dependency-groups]. These are development dependencies and don't
belong in the published package metadata. The dev group now uses
include-group instead of the self-referencing openae[docs,tests,tools]
extra.

Update the consumers accordingly:
- CI installs with `pip install . --group tests`
- cibuildwheel uses test-groups instead of a duplicated test-requires
- Read the Docs installs via build.jobs.install, since the
  python.install key has no dependency group support

Requires pip >= 25.1, hence the pip upgrade steps. Note that dependency
groups are not part of the wheel/sdist metadata, so `pip install
openae[tests]` no longer works.
@lukasberbuer
lukasberbuer marked this pull request as ready for review August 3, 2026 15:33
@lukasberbuer
lukasberbuer merged commit 6488b85 into main Aug 3, 2026
37 checks passed
@lukasberbuer
lukasberbuer deleted the build/python-dependency-groups branch August 3, 2026 15:34
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.

1 participant