You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
twine upload dist/treq-20.4.0*
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: twm
Enter your password:
Uploading treq-20.4.0-py2.py3-none-any.whl
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 62.2k/62.2k [00:01<00:00, 44.6kB/s]
NOTE: Try --verbose to see response content.
HTTPError: 400 Client Error: 'test/x-rst' is an invalid value for Description-Content-Type. Error: Invalid description content type: type/subtype is not valid See https://packaging.python.org/specifications/core-metadata for url: https://upload.pypi.org/legacy/
Your Environment
Your operating system: Ubuntu 18.04
Version of python you are running: Python 3.7.7 (distro version)
How did you install twine? Did you use your operating system's package manager or pip or something else?
pipx
(sopip
)The Issue
twine check
doesn't validateDescription-Content-Type
/long_description_content_type
.Steps to Reproduce
I added
Description-Content-Type
metadata becausetwine check
warned me it was missing, but I made a typo: it istest/x-rst
, (test
vs.text
).I ran
twine check
on the packages with this metadata:However, when I went to upload to PyPI:
The artifacts are attached here: https://github.com/twisted/treq/releases/tag/release-20.4.0
The text was updated successfully, but these errors were encountered: