From a90032b472018076b4d0e13283860f3520590a3b Mon Sep 17 00:00:00 2001 From: Ting Sun Date: Thu, 4 Jul 2024 20:51:52 +0100 Subject: [PATCH] chore: Update numpy dependency to version 1.19.3 for compatibility with Python 3.9 --- .github/workflows/build-publish_to_pypi.yml | 7 +++---- pyproject.toml | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-publish_to_pypi.yml b/.github/workflows/build-publish_to_pypi.yml index 678d81ab..81a0b956 100644 --- a/.github/workflows/build-publish_to_pypi.yml +++ b/.github/workflows/build-publish_to_pypi.yml @@ -23,14 +23,13 @@ jobs: strategy: matrix: buildplat: - - [ubuntu-latest, manylinux, x86_64] + # - [ubuntu-latest, manylinux, x86_64] - [macos-11, macosx, x86_64] - - [windows-2019, win, AMD64] + # - [windows-2019, win, AMD64] - [macos-14, macosx, arm64] python: ["cp39", "cp310", "cp311", "cp312"] - fail-fast: false env: @@ -54,7 +53,7 @@ jobs: CIBW_ARCHS: ${{ matrix.buildplat[2] }} CIBW_ENVIRONMENT_PASS_LINUX: RUNNER_OS CIBW_BEFORE_ALL_MACOS: "brew install gfortran && brew unlink gfortran && brew link gfortran" - CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel" # Use delvewheel on windows + CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel" # Use delvewheel on windows CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}" CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND_MACOS: "python -m pytest '{project}/test'" diff --git a/pyproject.toml b/pyproject.toml index 163505b9..dd4f59e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,9 +23,9 @@ license = { text = "GPL-V3.0" } dependencies = [ "pandas< 1.5; python_version <= '3.9'", # to fix scipy dependency issue in UMEP under QGIS3 wtih python 3.9 - "numpy==1.19.3; python_version <= '3.9'", # oldest numpy version compatible with Python 3.9 - "pandas; python_version > '3.9'", + "oldest-supported-numpy; python_version <= '3.9'", # oldest numpy version compatible with Python 3.9 "importlib_resources; python_version < '3.9'", # to fix importlib issue in UMEP under QGIS3 + "pandas; python_version > '3.9'", "matplotlib", "chardet", "scipy",