Skip to content

Inconsistent requires_dist behavior #6231

Closed
@astrofrog

Description

@astrofrog

Describe the bug

The following packages both define dependencies in a setup.cfg file:

https://pypi.org/pypi/astropy/json (link to setup.cfg)

https://pypi.org/pypi/glue-vispy-viewers/json (link to setup.cfg)

However, while glue-vispy-viewers seems to have the correct dependencies in requires_dist in the JSON meta-data, the same field is empty for astropy.

Expected behavior

I would have expected either both cases to work, or neither.

To Reproduce

The URLs above should demonstrate the issue.

Additional context

I have seen in one place someone say something about the order in which packages are uploaded (wheels vs source) but for a package like astropy, where the wheels take a while to build and upload and are uploaded separately, it's difficult to upload the wheels first. Many developers are also not going to be aware of this behavior. So if this is indeed the issue, then if the source file is uploaded first, when the first wheel is uploaded, requires_dist should be updated if it was null previously?

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