gpt4 book ai didi

python - pypi信息显示在错误的地方

转载 作者:行者123 更新时间:2023-12-04 08:30:09 25 4
gpt4 key购买 nike

使用twine将我的代码上传到pypi后,应该在侧边栏中显示的信息(即主页,分类器,关键字,作者,作者电子邮件)现在以明文形式显示在主体中(主页和作者电子邮件除外) ,这是网址)。
我想知道这是否是我的 setup.py 的问题,但在谷歌上还没有找到太多。
setup.py 的(节略)内容:

setup(
name="binarycpython",
version="0.2",
description="""
This is a python API for binary_c (versions {}) by David Hendriks, Rob Izzard and collaborators.
Based on the initial set up by Jeff andrews.
It is tested and designed to work for versions {}, we can't guarantee proper functioning for other versions

If you want to use a different version of binary_c, download and install a different version of this package
""".format(
','.join(str(REQUIRED_BINARY_C_VERSIONS)), ','.join(str(REQUIRED_BINARY_C_VERSIONS))
),
author="David Hendriks",
author_email="davidhendriks93@gmail.com",
# long_description=readme(),
long_description="hello",
url="https://gitlab.eps.surrey.ac.uk/ri0005/binary_c-python",
license="gpl",
keywords = ['binary_c', 'astrophysics', 'stellar evolution', 'population synthesis'], # Keywords that define your package best
packages=[
"binarycpython",
"binarycpython.utils",
"binarycpython.core",
"binarycpython.tests",
"binarycpython.tests.c_bindings",
],
install_requires=["numpy", "pytest", "h5py"],
include_package_data=True,
ext_modules=[BINARY_C_PYTHON_API_MODULE], # binary_c must be loaded

classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: C",
"Topic :: Education",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
],

cmdclass={'build': CustomBuildCommand},

)
描述的格式也很奇怪:空行后面的行与其余行位于不同的位置。然而,这可能只是它的工作方式。
任何建议/提示表示赞赏!

最佳答案

您的 description字段不应包含换行符。
这是 https://github.com/pypa/setuptools/issues/1390 .

关于python - pypi信息显示在错误的地方,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65066125/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com