From ba2636d4d8b708cb28a9a97aa344c7624e9c4010 Mon Sep 17 00:00:00 2001 From: Gordon Mohr Date: Tue, 4 Jun 2024 10:32:32 -0700 Subject: [PATCH 1/3] test numpy==2.0.0rc2 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 350869a236..6f3121e6d4 100644 --- a/setup.py +++ b/setup.py @@ -325,7 +325,7 @@ def run(self): 'pandas', ] -NUMPY_STR = 'numpy >= 1.18.5' +NUMPY_STR = 'numpy == 2.0.0rc2' install_requires = [ NUMPY_STR, @@ -335,7 +335,7 @@ def run(self): setup( name='gensim', - version='4.3.2.dev0', + version='4.3.2.np2test0', description='Python framework for fast Vector Space Modelling', long_description=LONG_DESCRIPTION, From 62f4bf46bcae825e376908bbdc6176bb5018f9d8 Mon Sep 17 00:00:00 2001 From: Gordon Mohr Date: Tue, 4 Jun 2024 11:52:21 -0700 Subject: [PATCH 2/3] numpy==2.0.0.rc2 & python>=3.9 in pyproject.toml --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5abdf82efb..8ffd5854a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,8 +7,9 @@ requires = [ "Cython>=0.29.32,<3.0.0", # oldest supported Numpy for this platform is 1.17 but the oldest supported by Gensim # is 1.18.5, remove the line when they increase oldest supported Numpy for this platform - "numpy==1.18.5; python_version=='3.8' and platform_machine not in 'arm64|aarch64'", - "oldest-supported-numpy; python_version>'3.8' or platform_machine in 'arm64|aarch64'", + # 20240604 GM: testing numpy-2.0.0rc2 which requires python >= 3.9 (to 3.12) + "numpy==2.0.0rc2; python_version>='3.9' and platform_machine not in 'arm64|aarch64'", + # "oldest-supported-numpy; python_version>'3.8' or platform_machine in 'arm64|aarch64'", "scipy", "setuptools", "wheel", From 751767f70a2e10ccd86fc3942fbb559668da0af0 Mon Sep 17 00:00:00 2001 From: Gordon Mohr Date: Tue, 4 Jun 2024 11:58:42 -0700 Subject: [PATCH 3/3] use legal version id: `4.4.0a1.dev0` --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6f3121e6d4..d74c6919c8 100644 --- a/setup.py +++ b/setup.py @@ -335,7 +335,7 @@ def run(self): setup( name='gensim', - version='4.3.2.np2test0', + version='4.4.0a0.dev0', description='Python framework for fast Vector Space Modelling', long_description=LONG_DESCRIPTION,