Files
sanguo_vnpy_v2/pyproject.toml
T
claude_dev ff6ca3bf05
CI/CD / test (push) Successful in 27s
CI/CD / nas-deploy (push) Successful in 13s
CI/CD / nas-verify (push) Successful in 10s
chore: dev 依赖补 pytest-asyncio 声明(审计P2, 新环境按 dev extras 装不再报未知配置项) [nas] [no-doc]
2026-09-27 08:00:32 +08:00

100 lines
2.5 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[project]
name = "sanguo-vnpy"
version = "2.0.0"
description = "Sanguo Quantitative Trading Platform based on VeighNa"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Sanguo Team", email = "team@sanguo.com"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Office/Business :: Financial :: Investment",
]
requires-python = ">=3.10"
dependencies = [
"tzlocal>=5.3.1",
"PySide6==6.8.2.1",
"pyqtgraph>=0.13.7",
"qdarkstyle>=3.2.3",
"numpy>=2.2.3",
"pandas>=2.2.3",
"ta-lib>=0.6.4",
"deap>=1.4.2",
"pyzmq>=26.3.0",
"plotly>=6.0.0",
"tqdm>=4.67.1",
"loguru>=0.7.3",
"nbformat>=5.10.4",
"requests>=2.32.0",
"qrcode>=7.4.2",
]
[project.optional-dependencies]
alpha = [
"polars>=1.26.0",
"scipy>=1.15.2",
"alphalens-reloaded>=0.4.5",
"scikit-learn>=1.6.1",
"lightgbm>=4.6.0",
"torch>=2.6.0",
"pyarrow>=19.0.1",
]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio==1.4.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
]
all = [
"sanguo-vnpy[alpha,dev]",
]
[project.urls]
"Homepage" = "http://192.168.2.154:3000/sanguo/sanguo_vnpy_v2"
"Repository" = "http://192.168.2.154:3000/sanguo/sanguo_vnpy_v2"
"Documentation" = "http://192.168.2.154:3000/sanguo/sanguo_vnpy_v2/wiki"
"Bug Tracker" = "http://192.168.2.154:3000/sanguo/sanguo_vnpy_v2/issues"
[build-system]
requires = ["hatchling>=1.27.0"]
build-backend = "hatchling.build"
# 不构建 wheel 分发:部署走 scripts/nas_sync/promote.sh 代码镜像(rsync/scp)+ docker
# pip install(见 docs/three-env-code-promote.md)。保留 build-system 仅为 pip -e 场景。
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # pyflakes
"UP", # pyupgrade
"W", # pycodestyle warning
"I", # isort
]
ignore = ["E501"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
strict_optional = true
[tool.pytest.ini_options]
testpaths = ["tests"]