这是我的设置
setup(
name="`...",
version="...",
description=...,
long_description_content_type="text/markdown",
long_description=README,
author="...",
classifiers=[...],
packages=["..."],
include_package_data=True,
)
我使用以下命令来打包我的项目
python setup.py sdist bdist_wheel
但是当我跑的时候
twine check dist/*
我得到以下错误
Checking dist\Futshane_TBG-1.0.0-py3-none-any.whl: FAILED
`long_description` has syntax errors in markup and would not be rendered on PyPI.
line 9: Error: Unexpected indentation.
warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
Checking dist\Futshane_TBG-1.0.0.tar.gz: FAILED
`long_description` has syntax errors in markup and would not be rendered on PyPI.
line 9: Error: Unexpected indentation.
warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
当我显然已经提供了一种类型时,为什么它无法识别提供的类型
我尝试切换“long\u description\u content\u type”和“long\u description”参数的顺序,并没有将description参数分配给包含描述的变量,而是直接将其分配给描述。这样做解决了我的问题
相关问题 更多 >
编程相关推荐