From 2c0689b62d4b329a7c3832732ff6e9e04c1e3cb9 Mon Sep 17 00:00:00 2001 From: lixinyu Date: Wed, 24 Jan 2024 15:35:12 +0800 Subject: [PATCH] setup: fix the upload error * the long_description_content_type in setup.py must be the same as the type of README, else it will put the outline like "'text/md' 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 more information." when upload oebuild with twine. Signed-off-by: lixinyu --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ea6b18a..d1a17d5 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setuptools.setup( description='', long_description=long_description, # http://docutils.sourceforge.net/FAQ.html#what-s-the-official-mime-type-for-restructuredtext-data - long_description_content_type="text/x-rst", + long_description_content_type="text/markdown", url='', packages=setuptools.find_packages(where='src'), package_dir={'': 'src'}, -- Gitee