-
Notifications
You must be signed in to change notification settings - Fork 989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPError: 400 Only one sdist may be uploaded per release (when using --skip-existing) #15824
Comments
The issue here seems to be the difference between Packaging considers these the same file, because:
but it looks like the logic in ...so it doesn't correctly skip the upload and attempts to do it anyways. Our error message here is a little confusing though, because we also don't take normalization into account when checking for duplicate filenames: warehouse/warehouse/forklift/legacy.py Lines 910 to 939 in 5a2d6f8
And so this fails on our check for multiple source distributions instead: warehouse/warehouse/forklift/legacy.py Lines 941 to 953 in 5a2d6f8
Fixing this is probably blocked on #12245, since there is not such a thing as a normalized source distribution filename in every case until that is resolved. |
Thanks for this, I didn't release the filename of the tar file had been changed to lowercase. Now I need to figure out what has caused this change, the versions of build (1.2.1) and twine (5.0.0) are the same. |
The change is caused by tools starting to support PEP 625. In your case, it is probably setuptools. In your case, Once #12245 is fixed, this should go away, and there's probably nothing you need to do here in the meantime. |
OK great that explains it, thanks for your help. I'll probably just up-version to get around the issue. |
I don't know if this is also related to PEP 625, but I also tried to upload a package to test.pypi.org (using pypa/gh-action-pypi-publish@release/v1 with
I would have expected a warning. At https://test.pypi.org/project/sphinxcontrib-opencontracting/#files, I can see that the sdist has two hyphens: sphinxcontrib-opencontracting-0.0.9.tar.gz The file being uploaded (built with Verbose info from
|
Yes, that is due to what I mentioned above:
|
This is due to pypi/warehouse#15824 It will self-correct on next release. This reverts commit fc36583.
Describe the bug
Since 15th April my uploads to test.pypi.org have started failing with the error:
HTTPError: 400 Only one sdist may be uploaded per release.
Not sure if something has changed, I thought if the --skip-existing flag was set this was okay?
Below is the GitHub actions log output.
Expected behavior
I would expect just the warning as before:
WARNING Skipping BittyTax-0.5.3.dev3.tar.gz because it appears to already exist
To Reproduce
My Platform
Additional context
None
The text was updated successfully, but these errors were encountered: