windows-python-release skillA
windows-python-release is agent-read markdown (skill) from mambo-wang/codewiki-plus: 当要手动发布 Python 包(codewiki-plus)到 PyPI 并建 GitHub Release 时——CI 不发布、Windows 控制台为 GBK、可能无 gh CLI、本机网络对 upload.pypi.org 的 Python TLS 握手有干扰——按 8 步主干执行:同步四处版本→bump 提交→pytest+ruff 闸门→清 dist 构建→PR 合并 main→tag merge commit 建 Release→uv publish(TLS 超时则 curl.exe 直传)→PyPI JSON API 核对.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
## 工作场景 手动发布 Python 包(`codewiki-plus`)到 PyPI 并创建 GitHub Release。**CI 只跑测试与 lint,不负责构建与发布**(`.github/workflows/ci.yml:13-74`),因此发布主干没有脚本承载,必须按序手工执行。Windows 控制台默认 GBK,环境可能无 gh CLI。 ## 适用条件 - 发布是手动流程,仓库无发布脚本 - 提交信息或 Release 正文含中文/emoji - 环境无 gh CLI / 未配置 GH_TOKEN,但 git credential manager 已保存凭据 ## 核心 SOP 按序执行 8 步,**每步有判定点,不通过就停,不要带着问题往下走**。 1. **同步四处版本引用**:`pyproject.toml`(`version`)、`codewiki/__init__.py`(`__version__`)、`uv.lock`、`codewiki/mcp/server.py`(`version=__version__` 注入,勿手写常量)。CLI 与 actor id 也从 `__version__` 读取,自动跟随。 判定点:四处版本字符串完全一致。 2. **提交 bump 并推送 develop**:消息 `chore: bump version to X`;推 `origin develop`。 判定点:`git show` 确认版本改动齐全。 ⚠️ 中文提交信息用 `git commit -F <utf8 文件>`,**不要用 `-m`**(GBK 破坏,乱码或拆词)。 3. **发布闸门**:`pytest -q` 全绿;`ruff check` / `ruff format --check` 通过。 判定点:无失败用例,无 lint 错误。 4. **构建并清理产物**:`uv build`;发布前**清 `dist/`** 或只精确指定本次产物。 判定点:`dist/` 下只剩本次版本的 wheel 与 sdist。 ⚠️ 不清 `dist/` 会连带上传旧产物(5.6.0 发布时残留 6 个)。 5. **合并 main**:建 PR develop→main(无 gh CLI 时用 Python `subprocess` 调 `git credential fill` 取凭据再调 REST API,请求体显式 UTF-8);轮询 head sha 的 **check-runs**(不是 commit status)等 CI 绿后合并。 判定点:PR merged,main 含 bump commit。 …
Read the whole file at its exact version.
How to install
mdr add mambo-wang/codewiki-plus/windows-python-release@git:20260923.9360ad5mdr add mambo-wang/codewiki-plus/windows-python-release@sha256:be15e8ce6d102678Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_gfefnpdsz2peqxki)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260923.9360ad5 latest | 2026-09-23 | 9360ad5 | 6,656 B | A | view · diff |
| git:20260923.fb77062 | 2026-09-23 | fb77062 | 5,745 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6656 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mambo-wang/codewiki-plus · 17 stars · license MIT · pushed 2026-09-23 · branch develop
API
GET https://markdownregistry.com/api/v1/artifacts/art_gfefnpdsz2peqxki GET https://markdownregistry.com/api/v1/resolve?ref=mambo-wang/codewiki-plus/windows-python-release GET https://markdownregistry.com/api/v1/blob/be15e8ce6d1026782f08cfe6a2a6c798f38153838efdfb5eb1e8b3fd1e4fafcf
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from mambo-wang/codewiki-plus
Every file in mambo-wang/codewiki-plus