Open andrii-i opened 5 hours ago
For reference, here is the relevant log excerpt source distribution upload logs:
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 152.0/152.0 MB • 00:03 • 62.2 MB/s
WARNING Error during upload. Retry with the --verbose option for more details.
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
File too large. Limit for project 'jupyter-scheduler' is 100 MB. See
https://pypi.org/help/#file-size-limit for more information.
Description
Looking for help in understanding why this happened and how to prevent it from happening during the next release.
During the
Step 2: Publish Release
of Jupyter Scheduler new release 2.10.0 Source Distribution upload failed due to PyPI source distributions size limits (~150 Mb) due to tar build being drastically larger in size vs before jupyter-releaser introduction. Built distribution upload went through, npm upload did not as it's later in the script.By now 2.10.0 is fixed by building and uploading missing files manually but running
jupyter-releaser build-python
seems to produce the source of the same size >150 Mb (which causes PyPI size limit errors) vs up to 3 Mb before thejupyter-releaser
was introduced. We need to avoid this happening in the the next release.Reproduce
jupyter-releaser build-python
, see its size (>100 Mb)Expected behavior
Workflow does not fail, source distribution of the reasonable size is built and uploaded to PyPI, upload to npm happens.
Context