From 3f76374b362c6518da47ab3fa4cc225b08168735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herman=20=C3=98ie=20Kolden?= Date: Thu, 14 Sep 2023 10:20:40 +0200 Subject: [PATCH] ci: allow newer numpy on newer python --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index aee2bcb..13c639c 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,10 @@ license='BSD 3-Clause', classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], - install_requires=['numpy < 1.25'], # numpy >= 1.25 requires python 3.9 + install_requires=[ + "numpy < 1.25; python_version < '3.9'", + "numpy >= 1.25; python_version >= '3.9'", + ], tests_require=['pytest', 'ddt'], entry_points = { 'console_scripts': [