-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
41 lines (35 loc) · 1.46 KB
/
pyproject.toml
File metadata and controls
41 lines (35 loc) · 1.46 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
[build-system]
requires = ["scikit-build-core>=0.10", "pybind11[global]>=2.12", "numpy", "wheel"]
build-backend = "scikit_build_core.build"
[project]
name = "LeptonWeighter"
version = "1.1.5" # keep in sync with configure script
description = "Weights injected neutrino final states to neutrino fluxes"
authors = [{name = "Carlos A. Argüelles Delgado", email = "carguelles@fas.harvard.edu"}]
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: C++",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = ["numpy"]
[project.optional-dependencies]
hdf5 = ["h5py"]
tables = ["tables"]
[tool.scikit-build]
minimum-version = "0.11"
wheel.expand-macos-universal-tags = true
# cibuildwheel configuration for building wheels in CI
[tool.cibuildwheel]
before-all = "bash {project}/tools/wheels/cibw_before_all.sh {project}"
skip = "pp*" # Skip PyPy builds
[tool.cibuildwheel.linux]
environment = { RUNNER_OS="Linux" }
repair-wheel-command = "bash ./tools/wheels/repair_wheel_linux.sh {wheel} {dest_dir}"
[tool.cibuildwheel.macos]
# Set MACOSX_DEPLOYMENT_TARGET to 14.0 to match Homebrew libraries on macOS 14 (Sonoma)
environment = { RUNNER_OS="macOS", MACOSX_DEPLOYMENT_TARGET="14.0" }
repair-wheel-command = "bash ./tools/wheels/repair_wheel_macos.sh {wheel} {dest_dir} {delocate_archs}"