Metadata-Version: 2.3
Name: depver
Version: 0.2.1
Summary: Add your description here
Author: ahfei
Author-email: ahfei <ahfei@vfly2.com>
Requires-Python: >=3.11
Description-Content-Type: text/markdown

depver 是一个可以根据 git commit 中注释的类型和依赖关系，自动更新版本号的工具。

若要用本工具，需要在 commit 的注释第一行放上这样格式的内容 <type>: <description> ，比如 `feat: support xx`，工具将会根据类型增加版本号。

在项目根目录，添加一个 depver.toml 文件存放包和服务的文件路径和依赖关系。

可查看示例 tests/depver.toml 了解格式。示例里，有 4 个包，和 2 个服务，其中 shell 依赖 core，而两个服务都依赖 shell，因此，当 core 的版本号更新时，shell 和两个服务的都会更新。

然后运行

```sh
python -m depver
```

运行之后，会创建一个 .last_commit_time 文件记录上一次运行时，最新提交的时间，避免针对同一个提交更新多次版本号。
