1
0
Files
PPTX/openspec/changes/archive/2026-03-02-migrate-to-uv-package-management/tasks.md
lanyuanxiaoyao 027a832c9a chore: migrate to uv pyproject.toml for dependency management
- Add pyproject.toml with project dependencies
- Remove inline script metadata from yaml2pptx.py
- Update openspec/config.yaml development guidelines
- Update README.md and README_DEV.md documentation
- Archive change: migrate-to-uv-package-management
2026-03-02 22:03:23 +08:00

30 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. 创建 pyproject.toml
- [x] 1.1 在项目根目录创建 pyproject.toml 文件
- [x] 1.2 配置 [project] 段,包含 name、version、requires-python
- [x] 1.3 配置 dependencies 列表python-pptx、pyyaml、flask、watchdog
## 2. 移除 yaml2pptx.py 的 inline metadata
- [x] 2.1 移除 yaml2pptx.py 第 2-10 行的 inline metadata 注释块
## 3. 更新 openspec/config.yaml
- [x] 3.1 移除 context 中 "脚本使用Inline script metadata来指定脚本的依赖包和python运行版本" 描述
- [x] 3.2 确保保留 "本项目编写的python脚本和任何python命令都始终使用uv运行" 核心约束
## 4. 更新 README.md
- [x] 4.1 更新 "安装" 部分,说明使用 pyproject.toml 管理依赖
- [x] 4.2 更新 "依赖项" 部分,说明依赖由 pyproject.toml 声明uv 自动管理
## 5. 验证
- [x] 5.1 运行 `uv run yaml2pptx.py check` 验证基本功能
- [x] 5.2 运行 `uv run yaml2pptx.py convert` 验证转换功能
- [x] 5.3 运行 `uv run yaml2pptx.py preview` 验证预览功能
## 6. 更新 README_DEV.md可选
- [x] 6.1 检查 README_DEV.md 中是否有 inline metadata 相关说明需要更新