100 lines
2.5 KiB
TOML
100 lines
2.5 KiB
TOML
[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"]
|