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

源代码

可在github.com

authorjdrumgooleGitHub

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
javajaxb在嵌套节点中生成xmlns:xsi声明   java重定向到youtube以上传jsp上可用的视频   java提高了JVM和ANT的性能   java如何将返回的JSON数据放在HTML表单中   java如何发送XWWWFORMURLENCODE在重新授权   java为什么jvm XX:+EliminateAllocations失败   堆移除和重建方法?(爪哇)   Stanford NPL in Spark(Scala)应用程序运行到Java堆空间(Java.lang.OutOfMemoryError)   调试java中打开/关闭println的任何方式(详细模式)   java IntelliJ在鼠标悬停时显示JavaDocs工具提示   Olingo Odata Java中的自动扩展选项   json将postgres文本arry转换为java列表?   oop需要帮助推断Java代码   复选框的java添加操作侦听器AbstractTableModel   java如何从公共静态void main(String[]args)传递值   java从数据库中获取大值   java Processing 2.0电影从jar运行时无法打开电影文件   java如何在不使用应用程序的情况下刷新活动?   尝试将JSON解析为ListView时的Android:JSON parse:null对象引用