-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
175 lines (161 loc) · 5 KB
/
Copy pathpyproject.toml
File metadata and controls
175 lines (161 loc) · 5 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
171
172
173
174
175
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"cffi>=1.16",
"poetry-core>=1.9",
"setuptools>=69",
]
[tool.poetry]
name = "pysatl-core"
version = "0.1.0a0"
description = "Computation core for PySATL"
readme = "README.md"
license = "MIT"
documentation = "https://pysatl.github.io/pysatl-core/"
authors = [
"Leonid Elkin <yolkinleonwork@gmail.com>",
"Mikhail Mikhailov <desiment@yandex.ru>",
]
keywords = [
"density-functions",
"distributions",
"mathematics",
"numerical-analysis",
"probability",
"random-variables",
"sampling",
"scientific-computing",
"statistics",
"symbolic-computation",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Mathematics",
"Typing :: Typed",
]
packages = [ { include = "pysatl_core", from = "src" } ]
include = [
{ path = "src/pysatl_core/**/*.pyi", format = "wheel" },
{ path = "src/pysatl_core/**/*.pyi", format = "sdist" },
{ path = "src/pysatl_core/py.typed", format = "wheel" },
{ path = "src/pysatl_core/py.typed", format = "sdist" },
{ path = "src/pysatl_core/sampling/unuran/bindings/_unuran_cffi*.pyd", format = "wheel" },
{ path = "src/pysatl_core/sampling/unuran/bindings/_unuran_cffi*.so", format = "wheel" },
{ path = "src/pysatl_core/sampling/unuran/bindings/cffi_unuran.h", format = "wheel" },
{ path = "src/pysatl_core/sampling/unuran/bindings/cffi_unuran.h", format = "sdist" },
{ path = "subprojects/unuran-pysatl/README.md", format = "sdist" },
{ path = "subprojects/unuran-pysatl/license.txt", format = "sdist" },
{ path = "subprojects/unuran-pysatl/meson.build", format = "sdist" },
{ path = "subprojects/unuran-pysatl/unuran/src/**", format = "sdist" },
]
homepage = "https://github.com/PySATL/pysatl-core"
repository = "https://github.com/PySATL/pysatl-core"
urls.Changelog = "https://pysatl.github.io/pysatl-core/changelog.html"
urls.Issues = "https://github.com/PySATL/pysatl-core/issues"
urls.Security = "https://github.com/PySATL/pysatl-core/security/policy"
[tool.poetry.build]
script = "src/pysatl_core/sampling/unuran/bindings/_cffi_build.py"
[tool.poetry.dependencies]
python = ">=3.12"
numpy = "^2.0.0"
scipy = ">=1.13"
cffi = ">=1.16.0"
mypy_extensions = ">=1.0.0"
[tool.poetry.group.dev.dependencies]
build = ">=1.2,<2"
ruff = ">=0.6"
mypy = ">=1.12"
pytest = ">=8"
pytest-cov = ">=5"
coverage = { version = ">=7.5", extras = [ "toml" ] }
pre-commit = ">=3.6"
codespell = ">=2.3"
pyproject-fmt = "==2.21.2"
readme-renderer = ">=43,<45"
twine = ">=6.2,<7"
types-setuptools = "*"
scipy-stubs = ">=1.13.0.0"
types-cffi = ">=1.17.0.0"
[tool.poetry.group.docs.dependencies]
jupyter = "^1.1.1"
matplotlib = "^3.10.6"
sphinx = "^9.1"
sphinx-rtd-theme = "^3.1"
sphinxcontrib-napoleon = "^0.7"
sphinx-autodoc-typehints = "^3.10"
sphinx-copybutton = "^0.5"
myst-nb = "^1.3.0"
linkify-it-py = "^2.0.3"
[tool.cibuildwheel]
archs = [ "auto64" ]
build = "cp312-* cp313-*"
skip = "*-musllinux_*"
test-command = 'python -c "from pysatl_core.sampling.unuran.bindings import _unuran_cffi; assert _unuran_cffi is not None; print(_unuran_cffi.lib.unur_get_errno())"'
[tool.ruff]
target-version = "py312"
line-length = 100
exclude = [ "subprojects" ]
format.line-ending = "lf"
lint.select = [ "B", "C4", "E", "F", "I", "ISC", "PIE", "SIM", "TID", "UP" ]
lint.ignore = [ "B008", "E203" ]
lint.per-file-ignores."**/__init__.py" = [ "F403" ]
lint.fixable = [ "ALL" ]
lint.unfixable = []
lint.isort.combine-as-imports = true
lint.isort.force-single-line = false
lint.isort.known-first-party = [ "pysatl_core" ]
lint.isort.order-by-type = true
[tool.codespell]
skip = "subprojects/**"
[tool.pyproject-fmt]
expand_tables = [
"tool.coverage.report",
"tool.coverage.run",
"tool.poetry.build",
"tool.poetry.dependencies",
"tool.poetry.group.dev.dependencies",
"tool.poetry.group.docs.dependencies",
"tool.pytest.ini_options",
]
skip_wrap_for_keys = [ "tool.cibuildwheel.test-command" ]
[tool.mypy]
files = [ "src", "tests" ]
python_version = "3.12"
strict = true
warn_unused_configs = true
warn_return_any = true
disallow_untyped_defs = true
disallow_any_generics = true
no_implicit_optional = true
namespace_packages = true
explicit_package_bases = true
mypy_path = [ "src" ]
[[tool.mypy.overrides]]
module = [ "tests.*" ]
disallow_untyped_defs = false
check_untyped_defs = true
warn_return_any = false
implicit_reexport = true
[tool.pytest.ini_options]
addopts = "-q --cov=pysatl_core --cov-report=term-missing"
testpaths = [ "tests" ]
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
]
[tool.coverage.run]
source = [ "pysatl_core" ]
branch = true
parallel = true