Skip to content

Support Metadata 2.5 (PEP 794) #2185

@edgarrmondragon

Description

@edgarrmondragon

Description

Opening this to discuss the implementation I've already started in #2179.

AFAICT, the only gap at the moment of writing between the implementation and the spec is the following

in practice the majority of projects have their project name match what their import name would be. As such, it is a reasonable assumption to make that a project name that is normalized in some way to an import name (e.g. packaging.utils.canonicalize_name(name, validate=True).replace("-", "_")) can be used if some answer is needed.

It's unclear to me if this is the responsibility of the build backend, or of the installer. IMO, it's the latter and the backend should not try to be too smart about adding a default Import-Name, but I'd like to read some opinions.

Use case/motivation

Allow projects to declare import-names/import-namespaces according to PEP 794. The full motivation for why the ecosystem will benefit from this is better explained in the PEP 🙂.

Related issues

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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