Skip to content

Use metadata 2.2+ for sdist dependencies #13326

Open
@notatallshaw

Description

@notatallshaw

What's the problem this feature will solve?

Currently pip uses the metadata file for wheels to get dependencies during resolution.

Separate metadata files aren't offered for sdists, but when metadata 2.2+ files are available and the requirements are non-dynamic there is no need to call the build backend.

Describe the solution you'd like

Extract static dependency data from sdists by downloading the sdist and checking if it has static dependency data, otherwise falling back to the build system.

Alternative Solutions

Rely on build system to extract dependencies.

Additional context

PyPI does not plan to publish .metadata files for sdists.

There are no known plans for PyPI to serve PEP 643 files (Metadata for Package Source Distributions) using PEP 658 (Serve Distribution Metadata in the Simple Repository API)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions