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

How to upload the files generated by python -m build to pypi? #62

Closed
matsui528 opened this issue Nov 13, 2023 · 3 comments
Closed

How to upload the files generated by python -m build to pypi? #62

matsui528 opened this issue Nov 13, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@matsui528
Copy link
Owner

When uploading the files generated by python -m build to pypi, I received the following error. How to fix it?

Summary:

Checking dist/rii-0.2.11-cp312-cp312-linux_x86_64.whl: PASSED
Checking dist/rii-0.2.11.tar.gz: PASSED
Uploading distributions to https://upload.pypi.org/legacy/
Uploading rii-0.2.11-cp312-cp312-linux_x86_64.whl
25l
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/1.9 MB • --:-- • ?
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/1.9 MB • --:-- • ?
  4% ━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.1/1.9 MB • 00:01 • 166.3 MB/s
  8% ━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.1/1.9 MB • 00:01 • 1.8 MB/s
 22% ━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.4/1.9 MB • 00:01 • 1.9 MB/s
 22% ━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.4/1.9 MB • 00:01 • 1.9 MB/s
 34% ━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.7/1.9 MB • 00:01 • 1.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB • 00:00 • 3.8 MB/s
25hWARNING  Error during upload. Retry with the --verbose option for more details. 
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
         Binary wheel 'rii-0.2.11-cp312-cp312-linux_x86_64.whl' has an          
         unsupported platform tag 'linux_x86_64'.  
@matsui528 matsui528 added the help wanted Extra attention is needed label Nov 13, 2023
@kyamagu
Copy link

kyamagu commented Nov 13, 2023

You'll need a platform-specific tag like manylinux*. Use auditwheel, or build on cibuildwheel to resolve all the headaches around binary packages.

@matsui528
Copy link
Owner Author

Thank you! Let me take a look...

@matsui528
Copy link
Owner Author

Just adding --sdist option solved the problem 😂 #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants