From 7ae568176b39dafc654c716949004a7166e4e0bd Mon Sep 17 00:00:00 2001 From: Thomas VINCENT Date: Thu, 21 Dec 2023 15:43:16 +0100 Subject: [PATCH 1/2] update requested cython for noexcept keywork + use oldest-supported-numpy --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 76ad89dbb8..9e3b1b09a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,8 @@ requires = [ "wheel", "setuptools", - "numpy>=1.12", - "Cython>=0.21.1" + "oldest-supported-numpy", + "Cython>=0.29.31" ] build-backend = "setuptools.build_meta" From 6f1bfca79603b7bb4b92d5598308471cef1ef3fc Mon Sep 17 00:00:00 2001 From: Thomas VINCENT Date: Thu, 21 Dec 2023 15:58:07 +0100 Subject: [PATCH 2/2] fix ci --- .github/workflows/ci.yml | 4 ++-- ci/appveyor.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7043eadbf0..76ad1cdd6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,7 @@ jobs: run: | python -m pip install --upgrade pip pip install --upgrade build setuptools wheel - pip install --upgrade --pre numpy cython + pip install --upgrade --pre oldest-supported-numpy cython - name: Print python info used for build run: | @@ -118,7 +118,7 @@ jobs: then pip install -r ci/requirements-pinned.txt; fi - pip install --pre -r requirements.txt + pip install --pre --upgrade -r requirements.txt pip uninstall -y PyQt5 PyQt6 PySide6 if [ "${{ matrix.QT_BINDING }}" == "PyQt5" ]; then pip install --pre pyqt5; diff --git a/ci/appveyor.yml b/ci/appveyor.yml index 268be468b6..bcd9c43ca2 100644 --- a/ci/appveyor.yml +++ b/ci/appveyor.yml @@ -67,7 +67,7 @@ build_script: - "pip install %PIP_OPTIONS% --upgrade build" - "pip install %PIP_OPTIONS% --upgrade setuptools" - "pip install %PIP_OPTIONS% --upgrade wheel" - - "pip install %PIP_OPTIONS% --upgrade numpy" + - "pip install %PIP_OPTIONS% --upgrade oldest-supported-numpy" - "pip install %PIP_OPTIONS% --upgrade cython" # Print Python info