Skip to content

Stop calling distribution packages sdists? #539

Open
@webknjaz

Description

I noticed that antsibull-build rebuild-single accepts --sdist-dir which is technically a lie. It calls python -m build internally that produces both an sdist and a wheel.

The helper function is kinda called correctly: https://github.com/ansible-community/antsibull/blob/f6fda44642e8c1d7f346cde2715dc62a824681ae/src/antsibull/build_ansible_commands.py#L316make_dist_with_wheels(). "Kinda" because wheels are dists, it's like daying "dist with dists".
And it's called with an "sdist dir" at https://github.com/ansible-community/antsibull/blob/f6fda44642e8c1d7f346cde2715dc62a824681ae/src/antsibull/build_ansible_commands.py#L742C9-L742C71.

This confusion leaked into the CLI/UX and external descriptions, including GHA workflows with steps like "Upload Ansible sdist to PyPI” being inspired by the misconception that it doesn't upload wheels.

Hence $sbj.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions