Skip to content

Publish Requires-Dist for source distributions when using setup.cfg? #1805

@di

Description

@di

Consider the following example:

setup.py:

from setuptools import setup

setup()

setup.cfg:

[metadata]
name = setup-cfg-example
version = 0.0.0
[options]
install_requires =
    foobar

When building a built distribution, the following metadata is produced:

Metadata-Version: 2.1
Name: setup-cfg-example
Version: 0.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Platform: UNKNOWN
Requires-Dist: foobar

UNKNOWN

However for the same source distribution:

Metadata-Version: 1.0
Name: setup-cfg-example
Version: 0.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN

In this case, where install_requires is set in setup.cfg and is completely deterministic, should setuptools include Requires-Dist in the metadata for the source distribution?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions