57 lines
1.7 KiB
TOML
57 lines
1.7 KiB
TOML
[build-system]
|
|
requires = ["maturin>=1.0,<2.0"]
|
|
build-backend = "maturin"
|
|
|
|
[project]
|
|
name = "chanlun"
|
|
version = "2606.125"
|
|
description = "缠论技术分析库 — Rust 高性能实现"
|
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
license = { file = "LICENSE", content-type = "text/plain" }
|
|
authors = [
|
|
{ name = "YuYuKunKun" },
|
|
]
|
|
keywords = ["chanlun", "technical-analysis", "trading", "stock", "crypto"]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Financial and Insurance Industry",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Rust",
|
|
"Topic :: Office/Business :: Financial :: Investment",
|
|
]
|
|
requires-python = ">=3.9"
|
|
dependencies = [
|
|
"termcolor>=3.0",
|
|
"parse>=1.2",
|
|
"loguru>=0.6",
|
|
"backtrader==1.9.78.123",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/YuYuKunKun/chanlun.rs"
|
|
Repository = "https://github.com/YuYuKunKun/chanlun.rs"
|
|
Issues = "https://github.com/YuYuKunKun/chanlun.rs/issues"
|
|
|
|
[tool.maturin]
|
|
features = ["pyo3/extension-module"]
|
|
python-source = "."
|
|
module-name = "chanlun._chanlun"
|
|
manifest-path = "Cargo.toml"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = ["-v", "--tb=short", "--durations=10"]
|
|
|
|
[tool.ruff.lint]
|
|
# 启用 FA (flake8-future-annotations) 和 UP (pyupgrade) 规则
|
|
select = ["FA", "UP"]
|
|
|
|
# [tool.ruff.lint.flake8-future-annotations]
|
|
# 强制在所有文件中注入 from __future__ import annotations
|
|
# force-future-annotations = true |