semvermager实现了semver标准的一个子集
semvermanager的Python项目详细描述
总经理
semvermamager
导出一个实现
SEMVER标准的一个受限子集。
Version
使用以下字段定义语义版本
结构:
# MAJOR.MINOR.PATCH-TAGintMAJOR# 0->NintMINOR# 0->NintPATCH# 0-NstrTAG# one of "alpha", "beta". intTAG_VERSION# a version number appended to alpha or beta.
版本可以使用
bump
功能。碰撞面片值只会增加面片值。
碰撞次要值将修补程序值归零,碰撞主要值
将次对象和面片值归零。
semvermanager
仅支持python 3.6及更高版本。
semvermgr脚本
该包包含用于生成版本的命令行脚本。
$ semvermgr -h usage: semvermgr.py [-h][--version VERSION][--make][--bump {major,minor,patch,tag,tag_version}][--getversion][--bareversion][--overwrite][--update][--label LABEL][--separator SEPARATOR][filenames [filenames ...]] positional arguments: filenames Files to use as version file optional arguments: -h, --help show this help message and exit --version VERSION Specify a version in the form major.minor.patch-tag --make Make a new version file --bump {major,minor,patch,tag,tag_version} Bump a version field --getversion Report the current version in the specified file --bareversion Return the unquoted version strin with VERSION= --overwrite overwrite files without checking [default: False] --update Update multiple version strings in file --label LABEL field used to determine which line is the version line [default: VERSION] --separator SEPARATOR Character used to separate the version label from the version [default: =]
安装
$pip3installsemvermanager
文档
完整文档位于readthedocs.io。
源代码
author:jdrumgoole在GitHub