"setuptools-changelog-shortener: 将仅添加最新的变更日志条目到long_description"
项目描述
setuptools-changelog-shortener
此setuptools插件允许缩短用于Python包中的 long_description 元数据的变更日志条目数量。
用法
首先,确保 setuptools_changelog_shortener 包含在您的构建需求中。
# pyproject.toml
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_changelog_shortener"]
要启用变更日志缩短,请将以下部分添加到您的 pyproject.toml
# pyproject.toml
[tool.setuptools_changelog_shortener]
read_from = "CHANGELOG.rst"
write_to = "CHANGELOG.short.rst"
然后您可以使用 CHANGELOG.short.rst 文件来为您的 long_description 元数据字段。
其他选项包括
- count
要包含的变更日志条目数。默认为 5。
- delimiter
要查找每个条目中的分隔符。默认为 ^--+ 正则表达式,使用 - 字符查找docutils标题。
- title
要将到缩短的CHANGELOG文件顶部的标题。默认为 Changelog\n=========。
变更日志
0.2.0 (未发布)
修复当 count 大于或等于变更日志条目数时的错误。
将 tomli 添加到构建需求。
0.1.0 (2022-02-07)
初始发布。
项目细节
关闭
散列值 for setuptools-changelog-shortener-0.2.0.tar.gz
算法 | 散列摘要 | |
---|---|---|
SHA256 | ff93517a3771836b8e407f3eb52459053ebdb95564f1ed5e6d4ad9c49e369775 |
|
MD5 | c69b9ff10705d72871529f4fed40aa50 |
|
BLAKE2b-256 | e89224e535ad95e9d51ec40286ce75c939c3c87213650720e681500831d2cc75 |
关闭
散列值 for setuptools_changelog_shortener-0.2.0-py3-none-any.whl
算法 | 散列摘要 | |
---|---|---|
SHA256 | d51b0288f0fa0a1e36962287d2fef50f50f2423a55442d5bff906f3e1a6976ec |
|
MD5 | 0c1dce11e66cdb719d5e6e4f027c60ef |
|
BLAKE2b-256 | e34c88c45bdc224f130a0c1ed2c8274e586f1d3816f92c830a2cfd66c4231af9 |