用于跟踪和递增项目版本号的工具。
dover的Python项目详细描述
用于递增项目版本号的命令行实用程序。
安装
... pip install dover
它是做什么的?
当dover从项目的根目录运行时,它将执行 以下内容:
looks for a configuration file (^{tt2}$, ^{tt3}$, ^{tt4}$, ^{tt5}$)
reads any ^{tt1}$ configuration line in this format:
[dover:file:relatvie/file.pth]Or in the case of ^{tt5}$:
[tool.dover] versioned_files = ["pyproject.toml", "dover/cli.py"]
- 在配置的文件引用中搜索“version”字符串
- 验证所有配置文件中的所有版本字符串。
- 显示和/或根据 cli选项。
用法
... dover --help dover v0.5.1 dover is a commandline utility for tracking and incrementing your project version numbers. Usage: dover [--list] [--debug] [--format=<fmt>] dover increment ((--major|--minor|--patch) [--dev|--alpha|--beta|--rc] | [--major|--minor|--patch] (--dev|--alpha|--beta|--rc) | --release) [--apply] [--debug] [--no-list] [--format=<fmt>] Options: -M --major Update major version segment. -m --minor Update minor version segment. -p --patch Update patch version segment. -d --dev Update dev version segment. -a --alpha Update alpha pre-release segment. -b --beta Update beta pre-release segment. -r --rc Update release candidate segment. -R --release Clear pre-release version. -x --no-list Do not list files. --format=<fmt> Apply format string. --debug Print full exception info. -h --help Display this help message --version Display dover version.
有关详细信息,请参见Read The Docs。
历史记录
0.5.0(2018-11-25)
- 为使用pyproject.toml的项目添加了新的dover配置选项
- 已开始使用
black
进行代码格式化
0.4.0(2018-03-10)
- 添加了
--dev
选项作为预发布状态。 - 添加了清除任何预发行版的
--release
选项 版本控制。 - 添加了
--format
选项,允许用户控制 格式来自标准的0.0.0-dev.1
格式。
0.3.1(2018-03-02)
- 要处理的文档更新 无效的自述格式。
0.3.0(2018-03-02)
- 添加了预发布选项
- 添加–无列表选项
- 扩展文档
- 100%代码覆盖率
0.2.1(2018-02-22)
- 扩展测试
- 一般代码清理
0.2.0(2018-02-22)
- 改进了输出对齐
- 添加了附加版本匹配检查
0.1.0(2018-02-18)
- 初始提交