Code: Select all
$ twine check dist/pi3d-2.55*
Checking dist/pi3d-2.55-py3-none-any.whl: ERROR InvalidDistribution: Metadata is missing required fields: Name, Version.
Make sure the distribution includes the files where those fields are specified, and is using a supported Metadata-Version: 1.0, 1.1, 1.2, 2.0, 2.1,
2.2.
Ich hatte kein Upgrade durchgeführt setuptools, twine oder pkginfo, die mir bekannt sind (ich habe natürlich --upgrade und verschiedene spezifische Versionen neu installiert, seitdem dieser Fehler zum ersten Mal aufgetreten ist)
Die früheren Builds in meinem pi3d/dist geben den Twine-Check-Fehler nicht aus, daher denke ich, dass es etwas mit setuptools zu tun haben muss. Ich habe alle Vorschläge ausprobiert, die ich beim Googeln der Fehlermeldung gefunden habe, aber das Einzige, was ich finden kann, ist, dass das Rad pi3d-2.55-py3-non-any/pi3d-2.55.dist-info/METADATA
enthält
Code: Select all
Metadata-Version: 2.4
Name: pi3d
Version: 2.55
Summary: pi3d OpenGL 3D graphics library
Author: Tim Skillman, Paddy Gaunt, Tom Ritchford
Maintainer: Paddy Gaunt
License-Expression: MIT
Project-URL: Homepage, http://pi3d.github.com/html/index.html
Keywords: OpenGL,3D,r...
Irgendeine Ahnung, was das eigentliche Problem ist und wie man es löst?
Paddy
PS BEARBEITEN: Wenn ich den Inhalt der .whl-Datei ändere, um Metadata-Version: 2.2 festzulegen, geht Twine in Ordnung, aber ich erhalte eine Fehlermeldung vom Server, dass es kein enthält RAD. An dem angegebenen Speicherort scheint es eine Datei mit diesem Namen zu geben.
Code: Select all
$ twine upload dist/pi3d-2.55*.whl --verbose
Uploading distributions to https://upload.pypi.org/legacy/
INFO dist/pi3d-2.55-py3-none-any.whl (307.5 KB)
INFO Querying keyring for password
Enter your API token:
INFO username: __token__
INFO password:
Uploading pi3d-2.55-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 319.9/319.9 kB • 00:02 • 193.1 kB/s
INFO Response from https://upload.pypi.org/legacy/:
400 Invalid distribution file. WHEEL not found at pi3d-2.55.dist-info/WHEEL
INFO
400 Invalid distribution file. WHEEL not found at pi3d-2.55.dist-info/WHEEL
400 Invalid distribution file. WHEEL not found at pi3d-2.55.dist-info/WHEEL
The server could not comply with the request since it is either malformed or otherwise incorrect.
Invalid distribution file. WHEEL not found at pi3d-2.55.dist-info/WHEEL
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Invalid distribution file. WHEEL not found at pi3d-2.55.dist-info/WHEEL
Mobile version