Skip to content
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

deleting release does not delete files on testing infrastructure #5707

Closed
tomato42 opened this issue Apr 17, 2019 · 4 comments
Closed

deleting release does not delete files on testing infrastructure #5707

tomato42 opened this issue Apr 17, 2019 · 4 comments

Comments

@tomato42
Copy link

Describe the bug

even after the release is deleted in the test.pypi.org instance, it's impossible to re-upload files. twine reports following error:

HTTPError: 400 Client Error: This filename has already been used, use a different version. See https://test.pypi.org/help/#file-name-reuse for url: https://test.pypi.org/legacy/

Expected behavior

when a release is deleted in test instance, it should either delete all associated files with it or allow re-upload of files with the same names

To Reproduce

  1. upload a new package to test pypi
  2. delete that newly created package from test pypi
  3. try uploading the same version of package

My Platform

setuptools (41.0.0)
twine (1.13.0)
wheel (0.33.1)

Additional context

What's the purpose of test infrastructure[1] if it can't be used to test, fix and verify problem with release without burning through package versions!?

1 - the only way to verify that project long description is correct before publishing a package, as there is no way to edit the long description after uploading the file

@jamadden
Copy link
Contributor

jamadden commented Apr 17, 2019

1 - the only way to verify that project long description is correct before publishing a package, as there is no way to edit the long description after uploading the file

Perhaps you could try readme-renderer, which provides the twine check command to verify the long description in the same way that warehouse does?

UPDATE: For ReST, I also personally like restview which shares the same underlying guts and allows for interactive editing: restview --long --pypi -> opens browser, refreshes it automatically while you edit your .rst or setup.py files.

@tomato42
Copy link
Author

I want to see how it looks like on the webpage, with tags, versions, etc.

@chaoflow
Copy link

@tomato42 I see and share your point and would also prefer if there'd be a way to re-upload releases to the testing infrastructure.

A workaround I'm using is to use .dev releases after a release to test.pypi.org that needs corrections.

test.pypi.org:

  • 1.2.3 needs fix
  • 1.2.3.dev0 and another
  • 1.2.3.dev1 looks great

pypi.org

  • 1.2.3 corresponds to 1.2.3.dev1 on test.pypi.org apart from the different version.

@di
Copy link
Member

di commented Apr 30, 2019

Thanks for the feature request! Using dev or prereleases is the recommended method here, for now.

The only distinction between PyPI and TestPyPI is that they are entirely separate (and can be visually distinguished). Otherwise, they behave exactly the same, which allows maintainers to have the same expectations about both. E.g., PyPI doesn't allow for reuploading of deleted distributions, so TestPyPI doesn't either.

Long term, we plan to turn down TestPyPI (#918) and instead support two-phase uploads (#726) which will allow maintainers to preview/review a new distribution before publishing, which will obviate this problem, so I'm going to close this issue in favor of that plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants