Skip to content

Replace pypi_formula_mappings.json with a new DSL #20832

@p-linnane

Description

@p-linnane

Verification

Provide a detailed description of the proposed feature

pypi_formula_mappings.json lives in the root of Homebrew/core and is currently just over 1100 lines. Contributors are often unaware of this file and maintainers usually have to push changes to it ourselves in their PR's. It would be a lot cleaner to have this logic stored on a per-formula basis rather than referencing an external file.

What is the motivation for the feature?

Reducing complexity of formulae by having PyPI mappings within the formulae files themselves.

How will the feature be relevant to at least 90% of Homebrew users?

Contributing/maintaining Python formulae will become easier since everything is self-contained. Also reduces the instances of merge conflicts when multiple PR's change pypi_formula_mappings.json.

What alternatives to the feature have been considered?

Status quo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions