# 使用 Homebrew 安装 dunamai

查看 dunamai 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dunamai
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dunamai
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dunamai
- **软件包管理器:** Homebrew
- **版本:** 1.26.2
- **来源摘要:** Dynamic version generation
- **主页:** <https://github.com/mtkennerly/dunamai>
- **最后更新:** 2026-08-03T09:05:14Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dunamai (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.26.2
## 项目历史与用法

Dunamai is a Python library and CLI for deriving standards-compliant version strings from version-control tags, aimed at CI builds, release tagging, and dynamic package versions.

### 项目历史

Dunamai was created in 2019 by Michael Kennerly as an alternative in the dynamic-versioning space. Its README contrasts it with Versioneer, especially for projects that do not use setup.py or do not want generated versioning code committed into the repository.

The project broadened beyond Git-only workflows: official docs list support for Git, Mercurial, Darcs, Subversion, Bazaar, Fossil, and Pijul, and serialization styles including PEP 440, Semantic Versioning, and Haskell PVP.

### 采用历史

Dunamai is distributed as a Python package, a command-line tool, a GitHub Action, and a Homebrew formula. Its most visible related adoption path is poetry-dynamic-versioning, another mtkennerly project that uses VCS tags to enable dynamic versioning in Poetry projects.

### 使用方式

Users call commands such as `dunamai from any` in CI or release scripts to produce versions from tags, commit distance, dirty state, branch names, and commit IDs. As a library, it exposes a Version object so build tools can inspect and serialize version parts.

### 为什么软件包爱好者会关心

Dunamai matters to package maintainers because dynamic version generation sits at the boundary between VCS history, build backends, Python packaging rules, and reproducible release artifacts. It is a small package, but it codifies a common maintainer desire: tag a release once and let packaging metadata follow.

### 时间线

- 2019: The GitHub repository is created.
- 2019: v0.1.0 is published on GitHub Releases and PyPI.
- 2019: poetry-dynamic-versioning is created as a related Poetry integration.
- 2026: v1.26.1 is published and packaged as Homebrew stable 1.26.1.

### Related projects

- Related projects include Versioneer, setuptools-scm, poetry-dynamic-versioning, Poetry, Flit, GitHub Actions, and the VCS tools that Dunamai can read: Git, Mercurial, Darcs, Subversion, Bazaar, Fossil, and Pijul.

### 来源

- <https://github.com/mtkennerly/dunamai#readme>
- <https://dunamai.readthedocs.io/>
- <https://api.github.com/repos/mtkennerly/dunamai>
- <https://api.github.com/repos/mtkennerly/dunamai/releases>
- <https://pypi.org/pypi/dunamai/json>
- <https://api.github.com/repos/mtkennerly/poetry-dynamic-versioning>
- <https://formulae.brew.sh/formula/dunamai>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/dunamai.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dunamai.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
