-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
98 lines (87 loc) · 2.96 KB
/
pyproject.toml
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
[project]
name = "hpx"
description = "Multiresolution HEALPix sampling and adaptive grids"
readme = "README.md"
authors = [ { name = "Leo Singer", email = "leo.p.singer@nasa.gov" } ]
classifiers = [
"Development Status :: 1 - Planning",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"numpy>=1.23",
]
requires-python = ">=3.9"
version = "0.0.1"
[project.optional-dependencies]
doc = [
"sphinx-astropy[confv2]",
]
test = [
"astropy",
"pytest",
"pytest-benchmark",
"scipy",
]
[build-system]
build-backend = 'mesonpy'
requires = [
"meson-python",
"numpy>=2.0.0",
]
[tool.meson-python]
limited-api = true
[tool.cibuildwheel]
build-verbosity = 1
skip = [
# Skip these platforms because conda-forge does not support them, and we
# are using conda to install our external shared library dependencies.
"*i686*", "*musl*",
# Skip these platforms because the configuration is failing with the error
# `Need python for x86_64, but found x86`.
# See https://github.com/nasa-gcn/hpx/pull/14
"*win32",
# Skip this platform because meson cannot find numpy-config.
# See https://github.com/nasa-gcn/hpx/pull/12
"pp*-win_amd64",
]
test-extras = ["test"]
test-command = ["pytest {project}/test --benchmark-disable"]
before-all = [
"curl -L https://micro.mamba.pm/install.sh | bash",
"bash -c '~/.local/bin/micromamba install -y --prefix ~/micromamba cgal-cpp cmake'",
]
[tool.cibuildwheel.environment]
CMAKE = "$HOME/micromamba/bin/cmake"
[tool.cibuildwheel.linux]
# Build Linux wheels for aarch64 under emulation.
archs = ["auto", "aarch64"]
[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair --add-path C:\\\\Users\\\\runneradmin\\\\micromamba\\\\Library\\\\bin -w {dest_dir} {wheel}"
[tool.cibuildwheel.windows.environment]
CMAKE = "C:\\\\Users\\\\runneradmin\\\\micromamba\\\\Library\\\\bin\\\\cmake"
[[tool.cibuildwheel.overrides]]
select = "pp*"
# PyPy does not support the Python limited API.
config-settings.setup-args = "-Dpython.allow_limited_api=false"
# We can't run our full pytest test suite on PyPy wheels
# because Scipy doesn't distributes PyPy wheels.
# See https://github.com/scipy/scipy/issues/17974
test-extras = []
test-command = ["python -c 'import hpx._core'"]
[[tool.cibuildwheel.overrides]]
# macOS arm64 wheels are built on GitHub on macOS 12; set deployment target accordingly
select = "*macosx_x86_64"
inherit.environment = "append"
environment.MACOSX_DEPLOYMENT_TARGET = "12.0"
[[tool.cibuildwheel.overrides]]
# macOS arm64 wheels are built on GitHub on macOS 14; set deployment target accordingly
select = "*macosx_arm64"
inherit.environment = "append"
environment.MACOSX_DEPLOYMENT_TARGET = "14.0"