Skip to content

Feature request: a --leave-sdist/--skip-sdist option #41

@agriyakhetarpal

Description

@agriyakhetarpal

Hi there, thanks a lot for this project!

I'm opening this issue to ask whether an option to skip sdists from being cleaned up could be included in the CLI, such as --skip-sdist or --leave-sdist (perhaps "leave" is better due to the existing option --leave-most-recent-only).

Here are some points that make up my rationale for this feature request:

  • sizes for projects with big binaries are almost always taken up by wheels and not by sdists,
  • in many cases, deleting an entire project's distribution files means that it becomes uninstallable (which has very much been noted in the WARNING section in the README)
  • to save up on sizes, packages opt for a solution where they often delete all the wheels for old/rc/beta/non-stable versions, but keep their sdists, as this still allows for a mechanism to let package users and redistributors compile from the source distribution rather than not being able to get any distribution at all
  • this is a middle ground for those who haven't been authorised for extra space for their packages on PyPI

While my use case is primarily across personal projects I've put up on PyPI where my sdist sizes vary but are in the KiB range, and wheels range around ~25 MiB (and thus add up quickly), I imagine it would be useful for the needs of several other major and minor projects, too.

If it's a "yes" from the maintainers here, I'm also willing to try putting together a PR to do so and contribute!

Thank you for your time!

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