From b4c548c9f92708f2c435022af0470c2759c7f166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erlend=20H=C3=A5rstad?= Date: Thu, 17 Aug 2023 11:59:04 +0200 Subject: [PATCH] Pin numpy required version to 1.x.x Numpy 2.0 will release in a few months time and we don't know how that will affect us. Until there is a release candidate for numpy 2.0 we should set a 1.x.x as an strict requirement. See [1]. [1] https://github.com/numpy/numpy/issues/24300 --- python/requirements-dev.txt | 2 +- python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/requirements-dev.txt b/python/requirements-dev.txt index e1404f5da..7582d753c 100644 --- a/python/requirements-dev.txt +++ b/python/requirements-dev.txt @@ -1,6 +1,6 @@ bandit -numpy +numpy<2.0 setuptools setuptools_scm pytest diff --git a/python/setup.py b/python/setup.py index bfe63589f..4bbc82283 100755 --- a/python/setup.py +++ b/python/setup.py @@ -36,7 +36,7 @@ def get_long_description(): packages = ['dlisio', 'dlisio.dlis', 'dlisio.lis', 'dlisio.common', 'dlisio.dlis.utils'], license = 'LGPL-3.0', platforms = 'any', - install_requires = ['numpy'], + install_requires = ['numpy < 2.0'], setup_requires = ['setuptools >= 28', 'pybind11 >= 2.3', 'setuptools_scm',