Skip to content

Commit 8c86db7

Browse files
committed
[fit] 上传fit_cli至PyPI
1 parent 641392e commit 8c86db7

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

framework/fit/python/fit_cli/readme.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@ python -m fit_cli package %{your_plugin_name}
5555

5656
---
5757

58+
## pip 安装
59+
60+
FIT CLI 工具可通过 pip 进行安装:
61+
```bash
62+
pip install fit-plugin-cli
63+
```
64+
安装后,可以简化命令为:
65+
```bash
66+
fit init %{your_plugin_name}
67+
fit_cli init %{your_plugin_name}
68+
69+
fit build %{your_plugin_name}
70+
fit_cli build %{your_plugin_name}
71+
72+
fit package %{your_plugin_name}
73+
fit_cli package %{your_plugin_name}
74+
```
75+
5876
## 注意事项
5977

6078
1. 运行命令前,请切换至 framework/fit/python 项目根目录。
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "fit-plugin-cli"
7+
version = "0.1.0"
8+
authors = [
9+
{ name = "Akeyiii", email = "[email protected]" }
10+
]
11+
description = "CLI tool for FIT framework plugin development"
12+
license = "MIT"
13+
keywords = ["fit", "cli", "plugin"]
14+
requires-python = ">=3.9"
15+
16+
dependencies = [
17+
]
18+
19+
[project.scripts]
20+
fit_cli = "fit_cli.main:main"
21+
fit = "fit_cli.main:main"
22+
23+
[tool.setuptools]
24+
packages = [
25+
"fit_cli",
26+
"fit_cli.commands",
27+
"fit_cli.utils",
28+
]

0 commit comments

Comments
 (0)