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

Missing sdist on PyPI #1883

Closed
adamjstewart opened this issue Jul 5, 2023 · 10 comments
Closed

Missing sdist on PyPI #1883

adamjstewart opened this issue Jul 5, 2023 · 10 comments
Assignees
Labels
bug / fix Something isn't working help wanted Extra attention is needed

Comments

@adamjstewart
Copy link
Contributor

🐛 Bug

torchmetrics 1.0.0 has no sdist available on PyPI.

To Reproduce

Check https://pypi.org/project/torchmetrics/1.0.0/#files

Expected behavior

Previous releases have a tarball available for download: https://pypi.org/project/torchmetrics/0.11.4/#files

Environment

  • TorchMetrics version: 1.0.0
  • Python & PyTorch Version: N/A
  • Any other relevant information such as OS: N/A
@adamjstewart adamjstewart added bug / fix Something isn't working help wanted Extra attention is needed labels Jul 5, 2023
@Borda Borda self-assigned this Jul 6, 2023
@Borda
Copy link
Member

Borda commented Jul 6, 2023

ok, seems upload failed, so will add it manually https://github.com/Lightning-AI/torchmetrics/actions/runs/5462339923/jobs/9941573869

@Borda
Copy link
Member

Borda commented Jul 6, 2023

Well seems that the upload process dies in the middle but it already reserved the name so we can't add it again :(

INFO     Response from https://upload.pypi.org/legacy/:                                                                                                                                                                                       
         400 This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for more information.                                                                                                   
INFO     <html>                                                                                                                                                                                                                               
          <head>                                                                                                                                                                                                                              
           <title>400 This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for more information.</title>                                                                                  
          </head>                                                                                                                                                                                                                             
          <body>                                                                                                                                                                                                                              
           <h1>400 This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for more information.</h1>                                                                                        
           The server could not comply with the request since it is either malformed or otherwise incorrect.<br/><br/>                                                                                                                        
         This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for more information.                                                                                                       
                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                              
          </body>                                                                                                                                                                                                                             
         </html>                                                                                                                                                                                                                              
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/                                                                                                                                                                      
         This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for more information.

@SkafteNicki
Copy link
Member

@adamjstewart can we kindly ask what you are using the sdist for?
As we do not have any compiled code wheel = sdist.

@Borda Borda added the wontfix label Jul 6, 2023
@adamjstewart
Copy link
Contributor Author

In Spack we prefer to build directly from sdists for all packages. This makes it easier to apply patches and helps optimize builds for packages that aren't pure Python.

@stale stale bot removed the wontfix label Jul 6, 2023
@adamjstewart
Copy link
Contributor Author

Well seems that the upload process dies in the middle but it already reserved the name so we can't add it again :(

This is unfortunate. Could reach out to PyPI devs or just release a post1 version.

@Borda
Copy link
Member

Borda commented Jul 13, 2023

it seem the same thing happened again with 1.0.1 so opened pypa/gh-action-pypi-publish#170

@Borda
Copy link
Member

Borda commented Jul 13, 2023

based on pypa/gh-action-pypi-publish#170 (comment) we will be missing the following version with sdist:

  • 1.0.0
  • 1.0.1
  • 1.4.1

Closing as there is nothing we can do about it...

@Borda Borda closed this as completed Jul 13, 2023
@adamjstewart
Copy link
Contributor Author

Thanks for looking into this! Absolutely ridiculous that PyPI works this way, but what can you do.

@adamjstewart
Copy link
Contributor Author

As you predicted, 1.4.1 is missing too. Luckily this is the last time.

@Borda
Copy link
Member

Borda commented Aug 4, 2024

As you predicted, 1.4.1 is missing too. Luckily this is the last time.

There is problem with PyPI, as the name was used by different project in past, this particular version was used and removed...
The only thing is to re-release as post =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants