11[project ]
22name = " kbase"
33version = " 0.1.0"
4- requires-python = " >=3.12,<3. 13"
4+ requires-python = " >=3.13"
55dependencies = [
66 " cos-python-sdk-v5>=1.9.38" ,
77 " elasticsearch>=9.1.0" ,
8- " fastapi>=0.116.1 " ,
8+ " fastapi>=0.118.2 " ,
99 " gunicorn>=23.0.0" ,
1010 " langchain>=0.3.27" ,
11- " langchain-community>=0.3.29 " ,
11+ " langchain-community>=0.3.31 " ,
1212 " mistune>=3.1.4" ,
13- " numpy>=1.24,<2.0 " ,
13+ " numpy>=2.3.3 " ,
1414 " pdfplumber>=0.11.7" ,
15+ " pydantic>=2.12.0" ,
1516 " pydantic-settings>=2.10.1" ,
1617 " pypdf>=6.0.0" ,
1718 " python-multipart>=0.0.20" ,
1819 " pyyaml>=6.0.2" ,
20+ " ruff>=0.14.0" ,
1921 " scipy>=1.16.1" ,
20- " sentence-transformers>=2.3.0,<2.7.0 " ,
21- " torch>=2.1 .0" ,
22- " transformers>=4.35.0,<4.50 .0" ,
22+ " sentence-transformers>=5.1.1 " ,
23+ " torch>=2.8 .0" ,
24+ " transformers>=4.57 .0" ,
2325 " unstructured[docx,pdf,pptx,xlsx]>=0.18.14" ,
2426 " uvicorn>=0.35.0" ,
2527]
@@ -41,7 +43,7 @@ dev = [
4143
4244[tool .ruff ]
4345line-length = 80
44- target-version = " py312 "
46+ target-version = " py313 "
4547lint.extend-select = [
4648 " B" , # flake8-bugbear
4749 " I" , # isort
@@ -71,7 +73,7 @@ suppress-none-returning = false # 检查返回None的函数
7173strict = true # 严格的类型导入检查
7274
7375[tool .mypy ]
74- python_version = " 3.12 "
76+ python_version = " 3.13 "
7577packages = [" app" , " tests" ]
7678strict = true
7779warn_unreachable = true # 警告无法到达的代码
@@ -103,7 +105,3 @@ python_classes = "Test*"
103105python_functions = " test_*"
104106
105107[tool .uv ]
106- required-environments = [
107- " sys_platform == 'darwin' and platform_machine == 'arm64'" ,
108- " sys_platform == 'darwin' and platform_machine == 'x86_64'"
109- ]
0 commit comments