Skip to content

Migrate from optional dependencies to dependency groups #118

Description

@hbelmiro

Summary

Replace [project.optional-dependencies] with [dependency-groups]
(PEP 735) for lint, test, and
dev in pyproject.toml.

Why

  1. Semantic correctness – optional dependencies are for package
    consumers. Lint/test/dev deps are internal and should not appear as
    installable extras.

  2. Cleaner package metadata – these groups won't leak into the
    published wheel.

  3. No self-references – the fragile kfp-components[lint] pattern
    is replaced by native include-group composition.

  4. uv best practice – uv
    recommends
    dependency groups for dev workflows.

  5. Better defaultsuv sync includes the dev group
    automatically; contributors no longer need --extra dev.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions