Skip to content

Document support for self-referential extras #11296

Closed

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

Activity

  1. added
    type: docsDocumentation related
    and removed
    S: needs triageIssues/PRs that need to be triaged
    on Jul 25, 2022
  2. sbidoul commented on Jul 25, 2022

    @sbidoul
    Member

    I marked this as awaiting PR. I'd say a having adding a test is important if we document it.

  3. Bobronium commented on Feb 8, 2023

    @Bobronium
  4. pradyunsg commented on Feb 8, 2023

    @pradyunsg
  5. added
    C: testsTesting and related things
    good first issueA good item for first time contributors to work on
    on May 11, 2024
  6. 3 remaining items

  7. locked as resolved and limited conversation to collaborators on Aug 9, 2026
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

    C: testsTesting and related thingsstate: 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