From ac6546e3047895a95d5f877590b1d74c577471da Mon Sep 17 00:00:00 2001 From: DorisMai Date: Fri, 22 Nov 2024 17:24:46 +0800 Subject: [PATCH] specified numpy1 installed for python 3.9 due to failed test on github actions build workflow macos. --- .github/workflows/test.yml | 2 +- pyproject.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f60a87..32b8012 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Build on: push: - branches: [main] + branches: [main, numpy1py39] pull_request: branches: [main] diff --git a/pyproject.toml b/pyproject.toml index 896de5d..f99f402 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,8 @@ classifiers = [ ] dependencies = [ "torch", - "numpy", + "numpy>=2.1.1; python_version>='3.10'", + "numpy<2.0.0; python_version<'3.10'", ] [project.urls]