版本标签更新工具
simple-version-manager的Python项目详细描述
[![生成状态](https://travis-ci.org/simontorres/simple-version-manager.svg?branch=master)](https://travis-ci.org/simontorres/simple-version-manager) [![覆盖状态](https://coveralls.io/repos/github/simontorres/simple-version-manager/badge.svg?branch=master)](https://coveralls.io/github/simontorres/simple-version-manager?分支=主) #简化版本管理
开发这个小工具的目的是简化这个过程 增加你的版本号。它的设计目的是使用特定的格式 解释如下。
##支持的版本格式
有无数种方法可以处理你的版本,没有正确的方法 _错了方向。我选择的格式如下:
` major.minor.patch.devN `
一些没有特定顺序的示例
` 0.0.1 1.1.1.dev1 30.1.1.dev5 `
##用法 请注意,这将取决于您的团队的规模和复杂性。 项目。不管怎样,如果队伍很大,总有一个经理 控件更新版本的时间,因此原则上对于大型或 即使是一个人的团队。下面是一些示例:
- 您应该在拉下 上游的最新变化
- 您可以将–补丁,–小或–大与结合使用–发布 当您要创建新版本时。
- 您还可以自由地独立更新任何字段
##选项 用例子更好地解释了参数选项。假设我们现在 正在处理版本1.2.3.dev4
- ^{tt3}$ will increase the development version by one leaving you with 1.2.3.dev5
- ^{tt4}$ will give you 1.2.4.dev1 notice that the development version is dropped back to one
- ^{tt5}$ will change the version to 1.3.0.dev1 notice now that not only _dev_ is dropped to one but also the patch count drops to zero.
- ^{tt6}$ will change version to 2.0.0.dev1 which is the same as –minor plus dropping _minor_ to zero.
- ^{tt7}$ will remove the devN part leaving you with 1.2.3. –release can be used in combination of other options.
- ^{tt8}$ Let you set the version to any value.
If you start from a _stable_ version like 2.0.0 you should use the –dev argument that will increase the patch number and add the _dev1_ string. 2.0.1.dev1
#参考资料
- [distutils.version.looseversion](http://epydoc.sourceforge.net/stdlib/distutils.version.LooseVersion-class.html)
- [语义版本](https://semver.org/)(此处不使用,但在版本编号方面有很好的参考)