Skip to content

Freeing up space on PyPI for nightly wheels

JCGoran edited this page May 16, 2025 · 1 revision

Context

We use Azure and GitHub for uploading nightly Python wheels to PyPI on a schedule. As of time of writing, there are 20 NEURON wheels being uploaded each time the scheduled CI runs, and each wheel is roughly 20 MB in size, so ~ 400 MB worth of content is uploaded to PyPI on every run.

Unfortunately, PyPI has limited resources, and each project has, as of time of writing, 10 GB of storage for their entire project, so assuming regular NEURON repo activity, we can expect an upload to happen daily, which means that, without deleting older versions of the nightly wheels, we would run out of space in less than a month.

Here I will explain how to check available storage, as well as how to delete older versions of nightly wheels so newer ones can be uploaded without running out of space on PyPI.

Checking available storage on PyPI

The available storage should be displayed on the NEURON nightly PyPI settings page (https://pypi.org/manage/project/neuron-nightly/settings/):

pypi_storage

Deleting old versions from PyPI

Go to the management page of NEURON nightly on PyPI (https://pypi.org/manage/project/neuron-nightly/releases/), which should look like this:

Screenshot 2025-05-16 at 13 58 06

Click on "Options" for one of the versions, and then on "Delete", which will open up a screen like this:

Screenshot 2025-05-16 at 13 59 31

Input the version in the box and click on "Delete release".

Clone this wiki locally