版本标签更新工具

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

#参考资料

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

推荐PyPI第三方库


热门话题
java为什么用Jsoup解析后内容不一样   java save方法无法使用Hibernate+Spring保存对象   java如何从JaxWs WebMethod发送Http状态为202的空响应   Java BuffereImage“块”模糊问题   java中的模板CAL集   java MyBatis deleteinsertupdate在一个查询中   在执行下一个方法之前,java将等待线程执行结束   java JTextField无法保存enter字符   java回滚撤消重做   java解析异常的最佳实践。toString()来执行一些逻辑   在Java中完成类的精确副本的构造函数的单元测试   java我无法从LinkedList类调用客户端中的方法   java启动RxJava2可观察。没有初始延迟的间隔()?   添加更多参数时java Mybatis插入失败