Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (66 loc) · 2.75 KB
/
Copy pathpyproject.toml
File metadata and controls
78 lines (66 loc) · 2.75 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
[build-system]
requires = [
"scikit-build-core>=1.1",
# Keep in step with the version cmake/Dependencies.cmake fetches for plain CMake builds
"pybind11==3.1.0"
]
build-backend = "scikit_build_core.build"
[project]
dynamic = ["readme"]
name = "asmc-preparedecoding"
version = "2.2.5"
description = "Prepare decoding quantities for ASMC & FastSMC"
authors = [
{ name = "PalamaraLab (https://palamaralab.github.io/)" }
]
# Wheels are built for every Python this allows (see [tool.cibuildwheel])
requires-python = ">=3.11"
dependencies = [
'numpy',
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
[tool.scikit-build]
# Use the defaults of the scikit-build-core version required above, so a newer one doesn't change the build
minimum-version = "build-system.requires"
build.verbose = true
cmake.build-type = "Release"
build.targets = ["preparedecoding_python_bindings"]
wheel.packages = ["src/asmc"]
# The SDist needs only what builds the package: leave out CI configuration, notebooks, docs and the 53 MB of
# regression test data
sdist.exclude = [".github", "docs", "notebooks", "test/regression", "utils"]
[tool.scikit-build.cmake.define]
PREPARE_DECODING_PYTHON_BINDINGS = "ON"
PREPARE_DECODING_BUILDING_FROM_PYPROJECT = "ON"
ENABLE_TESTING = "OFF"
[[tool.dynamic-metadata]]
provider = "scikit_build_core.metadata.fancy_pypi_readme"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "PyPI_README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "RELEASE_NOTES.md"
# Wheels: build with `uvx cibuildwheel` (Linux needs Docker or Podman). Python versions come from requires-python, and
# cibuildwheel builds free-threaded (3.14t+) wheels too: the module doesn't declare itself GIL-free, so importing it
# re-enables the GIL.
[tool.cibuildwheel]
skip = "*-musllinux_*"
test-requires = "numpy"
# Check every wheel against the regression reference outputs, which covers the libraries each wheel bundles
test-command = "cd {project}/test/regression && bash test_prepare_python.sh"
[tool.cibuildwheel.linux]
before-all = "dnf -y install gmp-devel mpfr-devel zlib-devel"
[tool.cibuildwheel.macos]
before-all = "brew install gmp mpfr"
# Homebrew's libraries target the macOS version they were built on: the deployment target must match the build machine
environment = { MACOSX_DEPLOYMENT_TARGET = "15.0" }