PEP 735: Dependency Groups in pyproject.toml

[dependency-groups]
# `.` is the only path-like value accepted and it stands for the current project 
production = ["."]
test = ["pytest", "."]
index-url = "https://corporate-repo.test/simple/"

[mypackage]
editable = true

[common-core]
path = "../commone-core"
editable = true

[pytest]
version = "<7.4"

Basically it is this idea.

Maybe we can play with having one set of default “overrides” (i.e. concrete dependencies) per dependency group, as long as it is easy to opt-out of those defaults and use another set of overrides instead.

1 Like