warehouse
warehouse copied to clipboard
Warehouse API to delete old .dev wheels (nightly builds)
Since wharehouse does not provide a way to specify a retention policy for nightly builds (see #8792), publishing nightly builds on pypi.org could cause a waste of resources, especially for packages that generates many binary wheels for numerous platforms.
Making it possible to programmatically delete old .dev wheel files (or even full .dev releases and their files) could be a possible solution alternative to a server-side retention policy: schedule job on the project CI could handle the deletion of old nightly builds and therefore implement some kind of retention policy on the client side. This solution was discussed in:
- https://discuss.python.org/t/publishing-nightly-builds-on-test-pypi-org-with-a-time-based-retention-policy/3152/9?u=ogrisel
Why not use https://test.pypi.org for nightly builds?
Blocked on https://github.com/pypi/warehouse/issues/13409.