Skip to content

Commit 75da6d8

Browse files
Restrict to numpy < 2 and setuptools < 72 for better compatibiltiy with CI pipeline (#213)
* Restrict to numpy<2 since we do not support numpy 2 yet. * Restrict to setuptools < 72 since the "test" command was removed in Setuptools 72. See #214.
1 parent 45b3ecc commit 75da6d8

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
## latest
66

7+
* Restrict to numpy < 2 for better compatibility with CI pipeline. https://github.com/precice/python-bindings/pull/213
8+
* Require setuptools < 72 since support for the test command was removed in Setuptools 72. https://github.com/precice/python-bindings/pull/213
79
* Require setuptools >= 61 to guarantee that pyproject.toml is used https://github.com/precice/python-bindings/pull/207
810
* Fix CI pipeline for spack https://github.com/precice/python-bindings/pull/206
911

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
22
# PEP 518 - minimum build system requirements
3-
requires = ["setuptools>=61", "wheel", "Cython>=0.29", "packaging", "pip>=19.0.0", "numpy", "mpi4py", "pkgconfig"]
3+
requires = ["setuptools>=61,<72", "wheel", "Cython>=0.29", "packaging", "pip>=19.0.0", "numpy<2", "mpi4py", "pkgconfig"]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def initialize_options(self):
137137
author_email='info@precice.org',
138138
license='LGPL-3.0',
139139
python_requires='>=3',
140-
install_requires=['numpy', 'mpi4py', 'Cython'],
140+
install_requires=['numpy<2', 'mpi4py', 'Cython'],
141141
# mpi4py is only needed, if preCICE was compiled with MPI
142142
# see https://github.com/precice/python-bindings/issues/8
143143
packages=['precice'],

spack/repo/packages/py-pyprecice/package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class PyPyprecice(PythonPackage):
5858
depends_on("precice@" + ver, when="@" + ver)
5959

6060
depends_on("python@3:", type=("build", "link", "run"))
61-
depends_on("py-setuptools@61:", type="build")
62-
depends_on("py-numpy", type=("build", "link", "run"))
61+
depends_on("py-setuptools@61:71", type="build")
62+
depends_on("py-numpy@:1", type=("build", "link", "run"))
6363
depends_on("py-mpi4py", type=("build", "run"))
6464
depends_on("py-cython@0.29:", type="build")
6565
depends_on("py-packaging", type="build")

0 commit comments

Comments
 (0)