Skip to content

Commit 83b5244

Browse files
committed
修改为兼容3.7
1 parent 13a9dd2 commit 83b5244

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

pyproject.toml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ authors = ["Zhipu AI"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]
9-
python = ">=3.8.1,<3.12,!=3.9.7"
9+
python = ">=3.7.1,<3.12,!=3.9.7 "
1010
httpx = ">=0.23.0"
1111
pydantic = ">=1.9.0,<3.0"
1212
cachetools = ">=4.2.2"
1313
pyjwt = "~=2.8.0"
1414

15+
1516
[tool.poetry.group.test.dependencies]
1617
# The only dependencies that should be added are
1718
# dependencies used for running tests (e.g., pytest, freezegun, response).
@@ -23,12 +24,12 @@ duckdb-engine = "^0.9.2"
2324
pytest-watcher = "^0.2.6"
2425
freezegun = "^1.2.2"
2526
responses = "^0.22.0"
26-
pytest-asyncio = "^0.23.2"
27+
pytest-asyncio = { version = "^0.23.2", python = "^3.8" }
2728
lark = "^1.1.5"
28-
pandas = "^2.0.0"
29-
pytest-mock = "^3.10.0"
29+
pandas = { version = "^2.0.0", python = "^3.8" }
30+
pytest-mock = "^3.10.0"
3031
pytest-socket = "^0.6.0"
31-
syrupy = "^4.0.2"
32+
syrupy = { version = "^4.0.2", python = ">=3.8.1,<3.9.7 || >3.9.7,<3.12" }
3233
requests-mock = "^1.11.0"
3334

3435
[tool.poetry.group.test_langchain.dependencies]
@@ -39,14 +40,14 @@ duckdb-engine = "^0.9.2"
3940
pytest-watcher = "^0.2.6"
4041
freezegun = "^1.2.2"
4142
responses = "^0.22.0"
42-
pytest-asyncio = "^0.23.2"
43+
pytest-asyncio = { version = "^0.23.2", python = "^3.8" }
4344
lark = "^1.1.5"
44-
pandas = "^2.0.0"
45-
pytest-mock = "^3.10.0"
45+
pandas = { version = "^2.0.0", python = "^3.8" }
46+
pytest-mock = "^3.10.0"
4647
pytest-socket = "^0.6.0"
47-
syrupy = "^4.0.2"
48+
syrupy = { version = "^4.0.2", python = ">=3.8.1,<3.9.7 || >3.9.7,<3.12" }
4849
requests-mock = "^1.11.0"
49-
langchain = "0.1.5"
50+
langchain = { version = "0.1.5", python = ">=3.8.1,<3.9.7 || >3.9.7,<3.12" }
5051

5152

5253
[tool.poetry.group.lint]
@@ -66,9 +67,9 @@ extended_testing = [
6667

6768
[tool.ruff.lint]
6869
select = [
69-
"E", # pycodestyle
70-
"F", # pyflakes
71-
"I", # isort
70+
"E", # pycodestyle
71+
"F", # pyflakes
72+
"I", # isort
7273
"T201", # print
7374
]
7475

0 commit comments

Comments
 (0)