Description
Dependency Groups ================= An implementation of Dependency Groups (`PEP 735 <https://peps.python.org/pep-0735/>`_). 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 <https://dependency-groups.readthedocs.io/>`_.
Release History
| Version | Changes | Urgency | Date |
|---|---|---|---|
| 1.3.1 | Imported from PyPI (1.3.1) | Low | 4/21/2026 |
| 1.3.0 | - Bugfix: raise a `TypeError` on non-list groups (was `ValueError`). Thanks @henryiii! - Several improvements to the CLI interfaces! Thanks @henryiii! - Add support for a `cli` extra, as in `pip install "dependency-groups[cli]"`, which ensures that `tomli` is present on older Pythons. - Add support for `dependency-groups` as an entrypoint, as an alias of `python -m dependency_groups`. - The `dependency-groups` command now supports a `--list` flag to list groups instead of resolving the | Low | 11/1/2024 |
| 1.2.0 | - Switch to `flit-core` as the build backend - Add support for supplying multiple dependency groups to the functional `resolve()` API: `resolve(dependency_groups, *groups: str)`. Thanks @henryiii! | Low | 10/29/2024 |
| 1.1.0 | - Add support for Python 3.8 | Low | 10/28/2024 |
| 1.0.0 | - Update metadata to 1.0.0 and "Production" status - Support Python 3.13 | Low | 10/15/2024 |
| 0.3.0 | - Add a new command, `pip-install-dependency-groups`, which is capable of installing dependency groups by invoking `pip` | Low | 10/2/2024 |
| 0.2.2 | - The pre-commit hook sets `pass_filenames: false` - The error presentation in the lint CLI has been improved | Low | 9/11/2024 |
| 0.2.1 | - Bugfix to pre-commit config | Low | 9/11/2024 |
| 0.2.0 | - Add a new CLI component, `lint-dependency-groups`, which can be used to lint dependency groups - Provide a pre-commit hook, named `lint-dependency-groups` | Low | 9/11/2024 |
| 0.1.1 | - Fix a bug in cycle detection for nontrivial cycles | Low | 9/10/2024 |
| 0.1.0 | - Initial release | Low | 9/10/2024 |
