-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (152 loc) · 4.52 KB
/
pyproject.toml
File metadata and controls
170 lines (152 loc) · 4.52 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# PyQuantLib: Python bindings for QuantLib
# Copyright (c) 2025 Yassine Idyiahia
#
# Source: https://github.com/quantales/pyquantlib
# Licensed under the BSD 3-Clause License. See LICENSE file for details.
[build-system]
requires = [
"scikit-build-core>=0.10.0",
"pybind11>=2.11.0",
]
build-backend = "scikit_build_core.build"
[project]
name = "pyquantlib"
dynamic = ["version"]
description = "Python bindings for QuantLib"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
authors = [
{ name = "Yassine Idyiahia", email = "yassine.id@gmail.com" },
]
maintainers = [
{ name = "Yassine Idyiahia", email = "yassine.id@gmail.com" },
]
keywords = [
"quantlib",
"quantitative-finance",
"derivatives",
"pricing",
"risk",
"fixed-income",
"options",
"finance",
"pybind11",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: C++",
"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",
"Topic :: Office/Business :: Financial :: Investment",
"Topic :: Scientific/Engineering :: Mathematics",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://github.com/quantales/pyquantlib"
Documentation = "https://pyquantlib.readthedocs.io"
Repository = "https://github.com/quantales/pyquantlib"
Issues = "https://github.com/quantales/pyquantlib/issues"
Changelog = "https://pyquantlib.readthedocs.io/en/latest/changelog.html"
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.4.0",
"pybind11-stubgen>=2.5.0",
"build>=1.0.0",
"numpy>=1.20.0",
]
docs = [
"sphinx>=7.0",
"furo>=2024.0",
"myst-parser>=3.0",
"sphinx-copybutton>=0.5",
]
examples = [
"jupyter>=1.0.0",
"matplotlib>=3.5.0",
"pandas>=1.3.0",
"numpy>=1.20.0",
]
all = [
"pyquantlib[dev,docs,examples]",
]
# ==============================================================================
# scikit-build-core Configuration
# ==============================================================================
[tool.scikit-build]
build-dir = "build"
cmake.version = ">=3.18"
wheel.packages = ["pyquantlib"]
install.components = ["python"]
sdist.include = ["pyquantlib/*.pyi", "pyquantlib/_pyquantlib/*.pyi"]
# Version from pyquantlib/version.py (single source of truth)
metadata.version.provider = "scikit_build_core.metadata.regex"
metadata.version.input = "pyquantlib/version.py"
# Default to Release builds
cmake.build-type = "Release"
# Parallel builds: Ninja auto-detects cores
# Override with: CMAKE_BUILD_PARALLEL_LEVEL=8 pip install -e .
# ==============================================================================
# Ruff Configuration (Linter)
# ==============================================================================
[tool.ruff]
target-version = "py39"
line-length = 100
exclude = ["*.pyi"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.isort]
known-first-party = ["pyquantlib"]
# ==============================================================================
# Pytest Configuration
# ==============================================================================
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
]
# ==============================================================================
# Coverage Configuration
# ==============================================================================
[tool.coverage.run]
source = ["tests"]
branch = true
omit = [
"*/site-packages/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
show_missing = true
skip_covered = false