Skip to content

Commit a7c2617

Browse files
committed
[cicd] add uv desception
1 parent 04fc967 commit a7c2617

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

COMPILE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@
104104
```
105105

106106
* 通过uv安装(Linux/MacOS/Windows)
107-
* 通过执行下述uv指令添加PyCGraph作为项目依赖
108107
```shell
109-
$ # 该指令会根据不同系统采取不同的策略拉取PyCGraph作为依赖,Linux系统则拉取git仓库main分支代码并从源码构建依赖,Windows/Mac系统则从pip仓库拉取依赖
110-
$ uv add "pycgraph @ git+https://github.com/ChunelFeng/CGraph.git@main#subdirectory=python" --marker "sys_platform == 'linux'"
111-
```
108+
$ uv init cgraph_env # 通过uv 创建一个名为 cgraph_env 的环境
109+
$ cd cgraph_env
110+
$ uv add "pycgraph @ git+https://github.com/ChunelFeng/CGraph.git@main#subdirectory=python" --marker "sys_platform == 'linux'" # 添加PyCGraph依赖
111+
$ python3 -c "import PyCGraph" # 验证 PyCGraph 成功安装
112+
```

python/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[build-system]
2-
# some dependency needed by PyCGraph
32
requires = ["setuptools", "wheel", "pybind11"]
43
build-backend = "setuptools.build_meta"
54

65
[project]
76
name = "PyCGraph"
8-
dynamic = ["version", "description", "authors", "license", "readme", "requires-python", "keywords", "classifiers"]
7+
dynamic = ["version", "description", "author", "license", "readme", "requires-python", "keywords", "classifiers"]
98

109
dependencies = [
1110
"pybind11",

0 commit comments

Comments
 (0)