Skip to content

Document support for self-referential extras #11296

Open
@ofek

Description

@ofek

What's the problem this feature will solve?

This (coupled with maybe a new explicit test) will provide a guarantee to users that the following use case is supported:

[project]
name = "pkg"

[project.optional-dependencies]
all = ["pkg[a]", "pkg[b]"]
a = ["..."]
b = ["..."]

Describe the solution you'd like

Add a note in docs + a new test that explicitly checks this

Alternative Solutions

N/A

Additional context

@ichard26 found that this has been supported since 21.2 (tested by @henryiii) #10393 (comment)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: testsTesting and related thingsgood first issueA good item for first time contributors to work onstate: awaiting PRFeature discussed, PR is neededtype: docsDocumentation related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions