用于创建变更日志的工具

changelog-builder的Python项目详细描述


变更日志生成器

基于注释创建降价变更日志的工具。在


Python verionPyPI versionMIT LicenseMade with pypipal


目录

Installation

Usage

Examples

Notes

License

安装

使用包管理器pip安装changelog builder。在

pip install changelog-builder

使用

^{pr2}$
参数
  • path项目目录的路径,默认为getcwd()
  • --filename-fn更改日志文件的名称,默认为变更日志.md
  • --identifier-id一个或多个标识更改的字符串(忽略前面行中的空白),默认为“#NEW”“#NEW”
  • --current version-cv三个数字,按major、minor和patch指定当前版本,默认为0 0 0
  • --version increment-ic三个数字,按major、minor和patch指定增量,默认为0 1[示例:增量为0.1.0的4.2.1版本变为4.3.1]
  • --files-fi扫描的一个或多个文件后缀(需要从一个点开始),默认为“.py”

这两个还不能正常工作:

  • --includes-in另外包含的一个或多个文件,默认为[]
  • --excludes-ex一个或多个被排除的文件,默认为[]

第一次在项目中运行changelog builder将创建一个.changelog_builder文件,该文件以json格式存储上面的参数,并且可以手动修改,但这可能很少有必要,因为每个传递的参数都会更改设置文件。在

示例

以下代码:

defdivision(divident:int,divisior:int)->float:# NEW division by zero isn't allowed anymoreifdivisor==0:returnNone...

将生成此更改日志(而上面的# NEW division by zero isn't allowed anymore行将被删除):


变更日志

0.0.12020-4-21

  • division by zero isn't allowed anymore

多种用途如下:


变更日志

0.0.32020-4-27

  • now in beta
  • the screen size issue due to dpi settings should be resolved

0.0.22020-4-22

  • some new stuff
  • fixed #34

0.0.12020-4-21

  • division by zero isn't allowed anymore

注释

A very popular use case might be setting a version in the parameters directly. In this case should the current-version parameter be set to the desired version and the version-increment to 0 0 0. This set the next version to the desired value but will also set the version-increment in the settings file which means every use in the future without the version-increment parameter set differently, will result in the version not to be increased.

It is also possible to mark the identifiers (like # NEW) in your IDE

Pycharm: File → Settings → Editor → TODO → [the plus sign in the upper right] → Type in the regex pattern (like \bnew\b.* which will catch both # new and # NEW if case sensitive is unchecked) and specify the way you want it to be highlighted

This is certainly possible with other IDEs as well.

Both the --includes as well as the --excludes parameter do not work properly at the moment.

许可证

MIT


此文件由pypipal.setup_生成器工具。

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

推荐PyPI第三方库


热门话题
google chrome我在哪里可以下载Mac OSX Lion的Java 6?   java管道化hadoop映射减少作业   java避免在使用jsoup解析html时删除空格和换行符   java将arrayList中的元素相互比较   如何创建一个计算一组数字之和的程序(Java)?   java JavaFX 8 JVM在退出后保留   升华文本3升华文本3 Java交互控制台?   JAVAutil。扫描仪和维基百科   java Android在RecyclerView中更新TextClock的时间格式(12/24小时格式)   java集合,如果达到限制,则可以在添加新项之前删除旧项   hex Java将十六进制转换为带符号的8位代码   java如何使用SQL中其他列的数据?   java如何确保返回指定类型的列表?   列出如何在java中声明匿名arraylist?   在JavaSpringBoot中使用RESTXML文件   使用Java在ColdFusion中计算HMACSHA256摘要的加密