From 3964a433d5a2955ce2bb07eacab6ec2407d67600 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 19 Jun 2024 16:34:40 +0200 Subject: [PATCH] Pin numpy <2.0.0 on v8.2.x branch (#941) * Upper pin numpy in requirements.txt * Pin numpy in pyprpoject * Pin numpy in build-constraints.txt * Pin numpy in setup.cfg --- build-constraints.txt | 2 +- pyproject.toml | 4 ++-- requirements.txt | 4 ++-- setup.cfg | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build-constraints.txt b/build-constraints.txt index 5540d634d..aabb262c7 100644 --- a/build-constraints.txt +++ b/build-constraints.txt @@ -3,4 +3,4 @@ numpy==1.15.0; python_version<='3.7' and platform_machine!='aarch64' numpy==1.19.2; python_version<='3.7' and platform_machine=='aarch64' numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64' numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64' -numpy>=1.25.0; python_version>='3.9' +numpy>=1.25.0,<2.0.0; python_version>='3.9' diff --git a/pyproject.toml b/pyproject.toml index aa7dd3a3f..5f6151de5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,8 +6,8 @@ requires = [ "cymem>=2.0.2,<2.1.0", "preshed>=3.0.2,<3.1.0", "blis>=0.7.8,<0.8.0", - "numpy>=1.15.0; python_version < '3.9'", - "numpy>=1.25.0; python_version >= '3.9'", + "numpy>=1.15.0,<2.0.0; python_version < '3.9'", + "numpy>=1.25.0,<2.0.0; python_version >= '3.9'", ] build-backend = "setuptools.build_meta" diff --git a/requirements.txt b/requirements.txt index d95af3ebd..362512952 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,8 +10,8 @@ confection>=0.0.1,<1.0.0 ml_datasets>=0.2.0,<0.3.0; python_version < "3.11" # Third-party dependencies pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0 -numpy>=1.15.0; python_version < "3.9" -numpy>=1.19.0; python_version >= "3.9" +numpy>=1.15.0,<2.0.0; python_version < "3.9" +numpy>=1.19.0,<2.0.0; python_version >= "3.9" packaging>=20.0 # Backports of modern Python features dataclasses>=0.6,<1.0; python_version < "3.7" diff --git a/setup.cfg b/setup.cfg index ffb476a5d..a6492a1aa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -50,8 +50,8 @@ install_requires = confection>=0.0.1,<1.0.0 # Third-party dependencies setuptools - numpy>=1.15.0; python_version < "3.9" - numpy>=1.19.0; python_version >= "3.9" + numpy>=1.15.0,<2.0.0; python_version < "3.9" + numpy>=1.19.0,<2.0.0; python_version >= "3.9" pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0 packaging>=20.0 # Backports of modern Python features