我可以在 setup.cfg 的元数据描述字段中使用 attr: 吗?
Can I use attr: in description field of metadata in setup.cfg?
我尝试在描述中使用 attr:
,但 PyPi 显示 attr: round_utils.__doc__
而不是该表达式的值。
文档说我不能在描述中使用 attr:
。查看元数据 table(下面的 link):
https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html#metadata
但我是这样做的:https://github.com/zifter/numeral-system-py, because I saw the package description works in PyPi https://pypi.org/project/numeral-system-py/。
附加我的文件和 links:
setup.cfg
[metadata]
name = round-utils
version = 1.0.4
author = Marchenko Ilya
author_email = mrmar333@yandex.ru
home-page = https://github.com/IliyaZinoviev/round-utils.git
description = attr: round_utils.__doc__
license = MIT
license-file = LICENSE
platform = any
keywords = round, utils, number
classifiers =
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3.8
Operating System :: OS Independent
[options]
zip_safe = false
include_package_data = true
python_requires = >= 3.8
package_dir =
round_utils=source/round_utils
tests=source/tests
packages =
round_utils
test_suite = tests
setup_requires =
setuptools >=30.3.0 # minimal version for `setup.cfg`
[bdist_wheel]
universal = true
[check]
metadata = true
strict = true
[sdist]
formats = gztar
round_utils.__init__py
"""Package for rounding functions"""
from .round import round_up, round_down
__all__ = [
'round_up',
'round_down'
]
PyPi link: https://test.pypi.org/project/round-utils/
我尝试在描述中使用 attr:
,但 PyPi 显示 attr: round_utils.__doc__
而不是该表达式的值。
文档说我不能在描述中使用 attr:
。查看元数据 table(下面的 link):
https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html#metadata
但我是这样做的:https://github.com/zifter/numeral-system-py, because I saw the package description works in PyPi https://pypi.org/project/numeral-system-py/。
附加我的文件和 links:
setup.cfg
[metadata]
name = round-utils
version = 1.0.4
author = Marchenko Ilya
author_email = mrmar333@yandex.ru
home-page = https://github.com/IliyaZinoviev/round-utils.git
description = attr: round_utils.__doc__
license = MIT
license-file = LICENSE
platform = any
keywords = round, utils, number
classifiers =
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3.8
Operating System :: OS Independent
[options]
zip_safe = false
include_package_data = true
python_requires = >= 3.8
package_dir =
round_utils=source/round_utils
tests=source/tests
packages =
round_utils
test_suite = tests
setup_requires =
setuptools >=30.3.0 # minimal version for `setup.cfg`
[bdist_wheel]
universal = true
[check]
metadata = true
strict = true
[sdist]
formats = gztar
round_utils.__init__py
"""Package for rounding functions"""
from .round import round_up, round_down
__all__ = [
'round_up',
'round_down'
]
PyPi link: https://test.pypi.org/project/round-utils/