Skip to content

Commit 34672e9

Browse files
committed
BLD: ensure all metadata is static, and update versions of dependencies
- put a lower bound on numpy version for Python 3.12; that pre-release is the first version that will work. - add comments around the future updates to the numpy build-time dependency - bump the minimum meson-python version - remove `wheel` as a build dependency (the need for it went away with meson-python PR 215)
1 parent d24bd5b commit 34672e9

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

pyproject.toml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,29 @@
1010
[build-system]
1111
build-backend = 'mesonpy'
1212
requires = [
13-
"meson-python>=0.12.1",
13+
"meson-python>=0.13.1",
1414
"Cython>=0.29.35", # when updating version, also update check in meson.build
1515
"pybind11>=2.10.4",
1616
"pythran>=0.12.0",
17-
# `wheel` is needed for non-isolated builds, given that `meson-python`
18-
# doesn't list it as a runtime requirement (at least in 0.5.0)
19-
"wheel",
2017

21-
# NumPy dependencies - to update these, sync from
22-
# https://github.com/scipy/oldest-supported-numpy/, and then
23-
# update minimum version to match our install_requires min version
24-
# ----------------------------------------------------------------
25-
26-
# now matches minimum supported version, keep here as separate requirement
27-
# to be able to sync more easily with oldest-supported-numpy
18+
# When numpy 2.0.0rc1 comes out, we should update this to build against 2.0,
19+
# and then runtime depend on the range 1.22.X to <2.3. No need to switch to
20+
# 1.25.2 in the meantime (1.25.x is the first version which exports older C
21+
# API versions by default).
2822

2923
# default numpy requirements
3024
"numpy==1.22.4; python_version<='3.10' and platform_python_implementation != 'PyPy'",
3125
"numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'",
32-
33-
# For Python versions which aren't yet officially supported,
34-
# we specify an unpinned NumPy which allows source distributions
35-
# to be used and allows wheels to be used as soon as they
36-
# become available.
37-
"numpy; python_version>='3.12'",
26+
# For Python versions which aren't yet officially supported, we specify an
27+
# unpinned NumPy which allows source distributions to be used and allows
28+
# wheels to be used as soon as they become available.
29+
"numpy>=1.26.0b1; python_version>='3.12'",
3830
"numpy; python_version>='3.9' and platform_python_implementation=='PyPy'",
3931
]
4032

4133
[project]
4234
name = "SciPy"
35+
version = "1.12.0.dev0"
4336
# TODO: add `license-files` once PEP 639 is accepted (see meson-python#88)
4437
# at that point, no longer include them in `py3.install_sources()`
4538
license = {file = "LICENSE.txt"}
@@ -77,7 +70,6 @@ classifiers = [
7770
"Operating System :: Unix",
7871
"Operating System :: MacOS",
7972
]
80-
dynamic = ['version']
8173

8274
[project.optional-dependencies]
8375
test = [

0 commit comments

Comments
 (0)