`'' is not a valid url` when trying to upload a package
ikus060 opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues (open and closed), and could not find an existing issue
What keywords did you use to search existing issues?
not a valid url
What operating system(s) are you using?
Linux
If you selected 'Other', describe your Operating System here
No response
What version of Python are you running?
Python 3.10.12
How did you install twine? Did you use your operating system's package manager or pip or something else?
pip install twine
What version of twine do you have installed (include the complete output)
twine version 5.0.0 (importlib-metadata: 5.2.0, keyring: 24.3.1, pkginfo: 1.10.0, requests: 2.28.2, requests-toolbelt: 1.0.0, urllib3: 1.26.15)
Which package repository are you using?
pypi.org
Please describe the issue that you are experiencing
When trying to upload my package, twine report the following error.
++ twine upload dist/rdiffweb-2.9.0a4-py3-none-any.whl -u __token__ -p [MASKED]
Uploading distributions to https://upload.pypi.org/legacy/
Uploading rdiffweb-2.9.0a4-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.1/5.1 MB • 00:00 • 12.5 MB/s
WARNING Error during upload. Retry with the --verbose option for more details.
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
'' is not a valid url. See
https://packaging.python.org/specifications/core-metadata for more
information.
Please list the steps required to reproduce this behaviour
Try uploading this whl package.
https://gitlab.com/ikus-soft/rdiffweb/-/jobs/6427272069/artifacts/download?file_type=archive
Please include the PKG-INFO file contents from the artifact you're attempting to upload
Here my METADATA file in whl.
Metadata-Version: 2.1
Name: rdiffweb
Version: 2.9.0a4
Summary: A web interface to rdiff-backup repositories.
Home-page: https://rdiffweb.org/
Author: Patrik Dufresne
Author-email: patrik@ikus-soft.com
License: GPLv3
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Framework :: CherryPy
Requires-Python: <4,>=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: apscheduler
Requires-Dist: argon2-cffi >=18.3.0
Requires-Dist: babel >=0.9.6
Requires-Dist: cached-property
Requires-Dist: CherryPy >=8.9.1
Requires-Dist: configargparse
Requires-Dist: distro
Requires-Dist: humanfriendly
Requires-Dist: Jinja2 >=2.10
Requires-Dist: ldap3
Requires-Dist: MarkupSafe <3
Requires-Dist: packaging
Requires-Dist: psutil >=2.1.1
Requires-Dist: requests
Requires-Dist: sqlalchemy <2,>=1.2
Requires-Dist: WTForms
Requires-Dist: zxcvbn >=4.4.27
Provides-Extra: test
Requires-Dist: html5lib ; extra == 'test'
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: parameterized ; extra == 'test'
Requires-Dist: responses ; extra == 'test'
Requires-Dist: selenium ; extra == 'test'
### A redacted version of your `.pypirc` file
```ini
None
Anything else you'd like to mention?
No response
That looks exactly like the issue I'm seeing #1073
@kaufManu Wow we literally reported the same issue few minutes apart.