-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (78 loc) · 2.22 KB
/
pyproject.toml
File metadata and controls
86 lines (78 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[project]
name = "vnpy_ctp"
version = "6.7.11.4"
description = "CTP gateway for vn.py quant trading framework."
readme = "README.md"
license = {text = "MIT"}
authors = [{name = "Xiaoyou Chen", email = "xiaoyou.chen@mail.vnpy.com"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Natural Language :: Chinese (Simplified)",
]
requires-python = ">=3.10"
dependencies = ["vnpy>=3.0.0"]
keywords = ["quant", "quantitative", "investment", "trading", "algotrading", "ctp"]
[project.urls]
"Homepage" = "https://www.vnpy.com"
"Documentation" = "https://www.vnpy.com/docs"
"Changes" = "https://github.com/vnpy/vnpy_ctp/blob/master/CHANGELOG.md"
"Source" = "https://github.com/vnpy/vnpy_ctp/"
"Forum" = "https://www.vnpy.com/forum"
[build-system]
requires = [
"meson-python>=0.17.1",
"meson>=1.7.0",
"pybind11>=2.13.6",
]
build-backend = "mesonpy"
[tool.mesonpy]
args = ['--vsenv']
[tool.mesonpy.distribution]
include = [
"**/*.dll",
"**/*.so",
"**/*.pyd",
"**/*.h",
"**/*.cpp",
"**/*.lib",
"**/*.a",
"**/*.framework/**", # 添加Mac框架文件夹支持
]
preserve-path = true
[tool.ruff]
target-version = "py310"
output-format = "full"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # pyflakes
"UP", # pyupgrade
"W", # pycodestyle warning
]
ignore = ["E501"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
ignore_missing_imports = true