当我执行以下几行并输入我的信息时
twine upload dist/*
弹出以下错误
HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information. for url: https://upload.pypi.org/legacy/
转到网址后,我并没有更接近解决问题。我的 setup.py 如下(带有空白信息)
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="quizmaker",
version="0.0.1",
author="my secret name",
author_email="email",
description="secret descripting",
long_description=long_description,
long_description_content_type="text/markdown",
url="the url",
packages=setuptools.find_packages(),
python_requires='>=3.6',
)
如果对此有任何解决方案,请告诉我。谢谢你。