Prechádzať zdrojové kódy

v0.4(增加环境依赖配置文件)

kyle 1 týždeň pred
rodič
commit
517b333668

+ 22 - 0
auto-generate-export-contracts/SKILL.md

@@ -5,6 +5,28 @@ description: "根据订单合同信息自动生成车辆出口销售合同(Word)
 
 # 海外合同自动生成 Skill
 
+## 环境安装
+
+**首次使用时,必须先安装依赖包:**
+
+```bash
+pip install -r requirements.txt
+```
+
+如遇到权限问题,可尝试:
+
+```bash
+pip install --user -r requirements.txt
+```
+
+依赖列表(见 `requirements.txt`):
+
+| 包名 | 版本要求 | 用途 |
+|------|---------|------|
+| `python-docx` | >=1.1.0 | 生成/修改 Word 销售合同 |
+| `openpyxl` | >=3.1.0 | 生成/修改 Excel Proforma Invoice、读取价格表 |
+| `num2words` | >=0.5.13 | 金额英文大写转换 |
+
 ## 功能
 
 根据用户提供的订单合同信息,自动生成:

+ 3 - 0
auto-generate-export-contracts/requirements.txt

@@ -0,0 +1,3 @@
+python-docx>=1.1.0
+openpyxl>=3.1.0
+num2words>=0.5.13