warehouse icon indicating copy to clipboard operation
warehouse copied to clipboard

Warehouse API to delete old .dev wheels (nightly builds)

Open ogrisel opened this issue 2 years ago • 2 comments
trafficstars

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

ogrisel avatar Jan 11 '23 14:01 ogrisel

Why not use https://test.pypi.org for nightly builds?

dolfinus avatar Jan 13 '23 08:01 dolfinus

Blocked on https://github.com/pypi/warehouse/issues/13409.

di avatar Apr 11 '23 19:04 di