-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (124 loc) · 3.64 KB
/
pyproject.toml
File metadata and controls
132 lines (124 loc) · 3.64 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
# Copyright (C) 2025 Severin Strobl <git@severin-strobl.de>
#
# SPDX-License-Identifier: MIT
#
# Exact calculation of the overlap volume of spheres and mesh elements.
# http://dx.doi.org/10.1016/j.jcp.2016.02.003
[build-system]
build-backend = "scikit_build_core.build"
requires = [ "scikit-build-core" ]
[project]
name = "overlap"
description = "Exact calculation of the overlap volume and area of spheres and mesh elements"
readme = "README.md"
keywords = [
"computational-geometry",
"mesh-processing",
"numerical-simulations",
]
license = { text = "MIT" }
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"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 :: Python :: 3.14",
"Topic :: Scientific/Engineering",
]
dynamic = [ "version" ]
dependencies = [ "numpy" ]
[[project.authors]]
name = "Severin Strobl"
email = "git@severin-strobl.de"
[project.optional-dependencies]
benchmark = [ "pyperf" ]
test = [ "pytest>=6" ]
[project.urls]
github = "https://github.com/severinstrobl/overlap"
issues = "https://github.com/severinstrobl/overlap/issues"
source = "https://github.com/severinstrobl/overlap.git"
[tool.setuptools_scm]
write_to = "python/overlap/_version.py"
[tool.scikit-build]
[tool.scikit-build.cmake]
version = ">=3.18"
[tool.scikit-build.metadata]
version.provider = "scikit_build_core.metadata.setuptools_scm"
[tool.scikit-build.sdist]
include = [ "python/overlap/_version.py" ]
[tool.cibuildwheel]
test-requires = [ "pytest==7.4.4" ]
test-command = "python -m pytest -vs {project}/tests/python"
build-verbosity = 1
environment-pass = [ "SETUPTOOLS_SCM_OVERRIDES_FOR_OVERLAP" ]
enable = "pypy"
skip = "pp311-manylinux_i686 cp314t-* cp313-pyodide_wasm32"
[tool.cibuildwheel.linux]
archs = [ "auto64", "auto32" ]
[[tool.cibuildwheel.overrides]]
select = "*-macosx_x86_64"
inherit.environment = "append"
environment.MACOSX_DEPLOYMENT_TARGET = "10.15"
[[tool.cibuildwheel.overrides]]
select = "*-macosx_arm64"
inherit.environment = "append"
environment.MACOSX_DEPLOYMENT_TARGET = "11.0"
[[tool.cibuildwheel.overrides]]
select = "*pyodide*"
inherit.environment = "append"
environment.CFLAGS = "-fexceptions"
environment.LDFLAGS = "-fexceptions"
build-frontend = { name = "build", args = [ "--exports", "whole_archive" ] }
[tool.cibuildwheel.windows]
archs = [ "auto64", "auto32" ]
[tool.ruff]
line-length = 100
indent-width = 4
fix = true
output-format = "github"
[tool.ruff.format]
indent-style = "space"
quote-style = "double"
[tool.ruff.lint]
# ref: https://docs.astral.sh/ruff/rules/
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"B", # flake8-bugbear
"D", # pycodestyle
"E", # pycodestyle errors
"F", # Pyflakes
"FBT", # flake8-boolean-trap
"I", # isort
"N", # pep8-naming
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"SLF", # flake8-self
"UP", # pyupgrade
"W", # pycodestyle warnings
]
# disable some rules for benchmarks/tests
per-file-ignores."benchmarks/*" = [
"D", # pycodestyle
]
per-file-ignores."tests/*" = [
"ANN201", # missing-return-type-undocumented-public-function
"D", # pycodestyle
]
pydocstyle.convention = "google"
[tool.pyproject-fmt]
table_format = "long"
[tool.pytest.ini_options]
minversion = "6"
testpaths = [ "tests/python" ]
addopts = [ "-ra", "--strict-config", "--strict-markers" ]
filterwarnings = [ "error" ]
log_cli_level = "INFO"
xfail_strict = true