Skip to main content

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

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

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

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

然后运行

python -m depver

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

Metadata

Release files for depver 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for depver 0.2.1
File Size Uploaded
depver-0.2.1.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for depver 0.2.1
File Interpreter ABI Platform
depver-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / depver-0.2.1.tar.gz

Download URL depver-0.2.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
75e2609979062e73235ba5e81a5dec414a4ba96a11793850ea354aae2634ecf9
BLAKE2b-256 checksum
How to use checksums
12fccd93ea3eca59c555f83b6ad51adb5256b06c084df2e377c41dbf327be8cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / depver-0.2.1-py3-none-any.whl

Download URL depver-0.2.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dad4a04ddde3a987c538300f2832f11ea33152885d6f3cc790b3e42fd23db13
BLAKE2b-256 checksum
How to use checksums
ffc23cc1bca303d2ca86be506bc06a213140db331d702e34eb457e8661c97806
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page