Skip to content

Commit e9b01f3

Browse files
authored
Merge pull request #34 from Serverless-Devs/fix-optional-deps
Fix optional deps
2 parents 2f78dc2 + 015a4c9 commit e9b01f3

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ jobs:
2626
run: |
2727
make setup PYTHON_VERSION=${{ matrix.python-version }}
2828
29+
- name: Run minimal installation test
30+
run: |
31+
# 创建一个临时目录用于测试
32+
mkdir -p /tmp/minimal_test
33+
cd /tmp/minimal_test
34+
35+
# 使用 uv 创建一个新环境并只安装项目的默认依赖
36+
uv venv -p 3.10
37+
38+
# 安装项目但不包含任何可选依赖
39+
uv pip install "$GITHUB_WORKSPACE/"
40+
41+
# 测试导入和版本打印
42+
uv run python -c "import agentrun; print(f'Version: {agentrun.__version__}')"
43+
2944
- name: Run type check (mypy)
3045
run: |
3146
make mypy-check

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies = [
1515
"pydash>=8.0.5",
1616
"alibabacloud-agentrun20250910>=5.0.1",
1717
"alibabacloud_tea_openapi>=0.4.2",
18+
"alibabacloud_bailian20231229>=2.6.2",
1819
]
1920

2021
[project.optional-dependencies]
@@ -53,10 +54,6 @@ mcp = [
5354
"mcp>=1.21.2; python_version >= '3.10'",
5455
]
5556

56-
knowledgebase = [
57-
"alibabacloud_bailian20231229>=2.6.2"
58-
]
59-
6057
[dependency-groups]
6158
dev = [
6259
"coverage>=7.10.7",

0 commit comments

Comments
 (0)