[project]
name = "homalos-ctp"
dynamic = ["version"]
description = "CTP Python API extension module construction."
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Lumosylva", email = "donnymoving@gmail.com" },
]
requires-python = ">=3.13"
dependencies = [
"hatch>=1.14.1",
"meson-python>=0.18.0",
"pybind11>=3.0.1",
"pybind11-stubgen>=2.5.5",
"twine>=6.1.0",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Office/Business :: Financial :: Investment",
"Natural Language :: Chinese (Simplified)",
]
keywords = ["ctp", "quantitative", "trading", "investment"]
[project.urls]
Homepage = "https://github.com/Homalos/ctp"
Repository = "https://github.com/Homalos/ctp"
Documentation = "https://github.com/Homalos/ctp/blob/main/README.md"
Issues = "https://github.com/Homalos/ctp/issues"
"Documentation (中文)" = "https://github.com/Homalos/ctp/blob/main/README_CN.md"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "ctp/__version__.py"
pattern = "__version__ = ['\"](?P<version>[^'\"]+)['\"]"
[tool.hatch.build.hooks.custom]
path = "hatch_build.py"
class-name = "CustomBuildHook"
[tool.hatch.build.targets.sdist]
include = [
"ctp",
"build.py",
"demo.py",
"LICENSE",
"README.md",
"README_CN.md",
"docs"
]
exclude = [
"ctp/api/__pycache__",
"**/*.pyc",
"/build",
"/con",
"**/__pycache__",
"**/*.pyc",
".gitignore",
".python-version",
"uv.lock"
]
artifacts = [
"ctp/api/*.pyd",
"ctp/api/*.so",
"LICENSE",
"README.md",
"README_CN.md",
"docs/**/*",
]
[tool.hatch.build.targets.wheel]
packages = [
"ctp",
"build.py",
"demo.py",
"LICENSE",
"README.md",
"README_CN.md",
"docs"
]
exclude = [
"ctp/api/__pycache__",
"**/*.pyc",
"/build",
"/con",
"**/__pycache__",
"**/*.pyc",
".gitignore",
".python-version",
"uv.lock"
]
artifacts = [
"ctp/api/*.pyd",
"ctp/api/*.so",
"LICENSE",
"README.md",
"README_CN.md",
"docs/**/*",
]