From fadcc5c9656aaa250c1120eac768df272b8763c6 Mon Sep 17 00:00:00 2001 From: Baden Ashford Date: Fri, 21 Jul 2023 10:14:43 +0100 Subject: [PATCH] Limit cython to versions less than 3.0.0 Hard-code the requirement to the most recent minor release Pin cython in build-system.requires --- pyproject.toml | 10 +++++----- requirements.txt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c9b21f5..fa8f949 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ [build-system] requires = [ - "setuptools>=42", - "wheel", - "cython", - "oldest-supported-numpy" + "setuptools>=42", + "wheel", + "cython>=0.29.15,<3.0.0", + "oldest-supported-numpy", ] -build-backend = "setuptools.build_meta" \ No newline at end of file +build-backend = "setuptools.build_meta" diff --git a/requirements.txt b/requirements.txt index ddbe982..06a043b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ numpy>=1.14.5 setuptools>=45.2.0 -Cython>=0.29.15 +Cython>=0.29.15,<3.0.0 scipy>=1.4.1