Skip to content

A standalone implementation of PEP 735 Dependency Groups

License

Notifications You must be signed in to change notification settings

pypa/dependency-groups

Folders and files

NameName
Last commit message
Last commit date
Mar 2, 2025
Nov 1, 2024
Jan 17, 2025
Nov 1, 2024
Oct 31, 2024
Oct 12, 2024
Sep 5, 2024
Sep 5, 2024
Jan 17, 2025
Sep 11, 2024
Oct 12, 2024
Nov 1, 2024
Sep 5, 2024
Sep 10, 2024
Oct 14, 2024
Nov 1, 2024
Oct 31, 2024

Repository files navigation

Dependency Groups

An implementation of Dependency Groups (PEP 735).

This is a library which is able to parse dependency groups, following includes, and provide that data as output.

Interfaces

dependency-groups provides the following:

  • A DependencyGroupResolver which implements efficient resolution of dependency groups
  • A resolve() function which converts a dependency group name to a list of strings (powered by the resolver)
  • Three CLI commands:
    • python -m dependency_groups GROUPNAME prints a dependency group's contents
    • lint-dependency-groups loads all dependency groups to check for correctness
    • pip-install-dependency-groups GROUPNAME... wraps a pip invocation to install the contents of a dependency group
  • A pre-commit hooks which runs lint-dependency-groups

Documentation

Full documentation is available on the Dependency Groups doc site.