101 lines
2.3 KiB
TOML
101 lines
2.3 KiB
TOML
|
|
[project]
|
||
|
|
name = "lazy-fjh"
|
||
|
|
version = "2.0.0"
|
||
|
|
description = "时间序列数据分析系统 - FastAPI 版本"
|
||
|
|
readme = "README.md"
|
||
|
|
requires-python = ">=3.10"
|
||
|
|
authors = [{ name = "Your Name", email = "your.email@example.com" }]
|
||
|
|
keywords = ["time-series", "data-analysis", "fastapi", "statistical-analysis"]
|
||
|
|
classifiers = [
|
||
|
|
"Development Status :: 4 - Beta",
|
||
|
|
"Intended Audience :: Science/Research",
|
||
|
|
"License :: OSI Approved :: MIT License",
|
||
|
|
"Programming Language :: Python :: 3",
|
||
|
|
"Programming Language :: Python :: 3.10",
|
||
|
|
"Programming Language :: Python :: 3.11",
|
||
|
|
"Programming Language :: Python :: 3.12",
|
||
|
|
"Operating System :: OS Independent",
|
||
|
|
]
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
# FastAPI 和 Web 框架
|
||
|
|
"fastapi>=0.104.1",
|
||
|
|
"uvicorn[standard]>=0.24.0",
|
||
|
|
"python-multipart>=0.0.6",
|
||
|
|
"python-dotenv>=1.0.0",
|
||
|
|
|
||
|
|
# 数据处理
|
||
|
|
"pandas>=2.2.2",
|
||
|
|
"numpy>=1.26.4",
|
||
|
|
|
||
|
|
# 统计和科学计算
|
||
|
|
"scipy>=1.13.0",
|
||
|
|
"scikit-learn>=1.3.0",
|
||
|
|
"statsmodels>=0.14.0",
|
||
|
|
|
||
|
|
# 可视化
|
||
|
|
"matplotlib>=3.7.2",
|
||
|
|
"seaborn>=0.12.2",
|
||
|
|
|
||
|
|
# 报告生成
|
||
|
|
"reportlab>=4.0.4",
|
||
|
|
"python-docx>=0.8.11",
|
||
|
|
"python-pptx>=0.6.21",
|
||
|
|
|
||
|
|
# API 和数据
|
||
|
|
"openai>=1.3.0",
|
||
|
|
"gradio_client>=0.9.0",
|
||
|
|
"beautifulsoup4>=4.12.2",
|
||
|
|
"requests>=2.31.0",
|
||
|
|
|
||
|
|
# 系统和图像
|
||
|
|
"psutil>=5.9.5",
|
||
|
|
"Pillow>=10.0.0",
|
||
|
|
"opencv-python>=4.8.1.78",
|
||
|
|
]
|
||
|
|
|
||
|
|
[project.optional-dependencies]
|
||
|
|
dev = [
|
||
|
|
"pytest>=7.4.0",
|
||
|
|
"pytest-cov>=4.1.0",
|
||
|
|
"black>=23.0.0",
|
||
|
|
"ruff>=0.1.0",
|
||
|
|
"mypy>=1.0.0",
|
||
|
|
]
|
||
|
|
|
||
|
|
prod = ["gunicorn>=21.2.0", "supervisor>=4.2.5"]
|
||
|
|
|
||
|
|
[build-system]
|
||
|
|
requires = ["flit_core >=3.2,<4"]
|
||
|
|
build-backend = "flit_core.buildapi"
|
||
|
|
|
||
|
|
[tool.uv]
|
||
|
|
dev-dependencies = [
|
||
|
|
"pytest>=7.4.0",
|
||
|
|
"pytest-cov>=4.1.0",
|
||
|
|
"black>=23.0.0",
|
||
|
|
"ruff>=0.1.0",
|
||
|
|
]
|
||
|
|
|
||
|
|
[tool.pytest.ini_options]
|
||
|
|
testpaths = ["tests"]
|
||
|
|
python_files = "test_*.py"
|
||
|
|
python_classes = "Test*"
|
||
|
|
python_functions = "test_*"
|
||
|
|
|
||
|
|
[tool.black]
|
||
|
|
line-length = 100
|
||
|
|
target-version = ["py310", "py311", "py312"]
|
||
|
|
|
||
|
|
[tool.ruff]
|
||
|
|
line-length = 100
|
||
|
|
target-version = "py310"
|
||
|
|
select = ["E", "F", "W", "I"]
|
||
|
|
ignore = ["E501"]
|
||
|
|
|
||
|
|
[tool.mypy]
|
||
|
|
python_version = "3.10"
|
||
|
|
warn_return_any = true
|
||
|
|
warn_unused_configs = true
|
||
|
|
disallow_untyped_defs = false
|