-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (138 loc) · 4.12 KB
/
pyproject.toml
File metadata and controls
153 lines (138 loc) · 4.12 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
[build-system]
requires = [
"scikit-build-core>=0.10",
"nanobind>=2.5",
"typing_extensions", # required by nanobind stubgen.py on Python <3.11
]
build-backend = "scikit_build_core.build"
[project]
name = "openae"
dynamic = ["version"]
description = "Implementation of the OpenAE standards for real-time acoustic emission signal processing"
readme = "README.md"
license = { text = "MIT License" }
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
]
keywords = [
"openae",
"acoustic emission",
"open standard",
"analysis",
"signal processing",
"feature extraction",
"machine learning",
]
dependencies = ["numpy>=1.20"]
[project.optional-dependencies]
docs = [
"sphinx>=8",
"sphinx-autodoc-typehints",
"sphinx-design",
"myst-parser",
"breathe>=4",
"furo",
]
tests = [
"coverage[toml]>=5", # pyproject.toml support
"pytest>=6", # pyproject.toml support
"pytest-benchmark",
"tomli; python_version < '3.11'",
]
tools = [
"mypy>=0.9", # pyproject.toml support
"ruff>=0.9",
]
dev = [
"openae[docs,tests,tools]", # recursive dependency since pip 21.2
]
[project.urls]
Homepage = "https://openae.io"
Source = "https://github.com/openae-io/openae-lib"
Issues = "https://github.com/openae-io/openae-lib/issues"
Changelog = "https://github.com/openae-io/openae-lib/blob/main/CHANGELOG.md"
[tool.coverage.run]
branch = true
parallel = true
source = ["openae"]
[tool.coverage.paths]
source = ["bindings/python/src", "*/site-packages"]
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-q --benchmark-columns=mean,stddev"
testpaths = ["bindings/python/tests"]
log_cli = true
log_cli_level = "WARNING"
[tool.ruff]
include = ["pyproject.toml", "bindings/python/**/*.py"]
line-length = 100
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # flake8-annotations
"COM812", # Trailing comma missing, conflicts with ruff format
"D", # pydocstyle
]
[tool.ruff.lint.per-file-ignores]
"test_*" = [
"INP001", # File is part of an implicit namespace package. Add an __init__.py.
"S101", # Use of `assert` detected
"PLR2004", # Magic value used in comparison
]
[tool.scikit-build]
cmake.build-type = "Release"
wheel.packages = ["openae"]
build.verbose = true
build-dir = "build/python/{wheel_tag}"
install.components = ["bindings"]
minimum-version = "build-system.requires"
[tool.scikit-build.cmake.define]
BUILD_SHARED_LIBS = "OFF"
OPENAE_BUILD_PYTHON = "ON"
OPENAE_BUILD_PYTHON_STUBS = "OFF"
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "CMakeLists.txt"
regex = '''(?is)^\s*project\s*\(\s*\w+\s*VERSION\s+(?P<value>[\d\.]+)'''
[tool.cibuildwheel]
build = [
# https://cibuildwheel.pypa.io/en/stable/options/#build-skip
"cp3*-manylinux_x86_64",
"cp3*-manylinux_aarch64",
"cp3*-macosx_x86_64",
"cp3*-macosx_arm64",
"cp3*-win_amd64",
"cp3*-pyodide_wasm32",
]
skip = [
"cp38*",
]
build-verbosity = 1
test-command = "pytest {project}/bindings/python/tests"
test-requires = ["pytest", "pytest-benchmark"]
# select images with C++ 20 support: https://github.com/pypa/manylinux
# manylinux_2_28 with GCC 14
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
# musllinux_1_2 with GCC 14
musllinux-x86_64-image = "musllinux_1_2"
musllinux-aarch64-image = "musllinux_1_2"
[tool.cibuildwheel.pyodide]
test-command = "" # Pyodide wheels cannot run pytest on the standard GitHub runner