git: 58aebd927283 - main - science/py-eccodes: Update to 1.6.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 31 Jul 2023 16:47:17 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=58aebd927283d0e53e63f70b7028d039f29f6aab

commit 58aebd927283d0e53e63f70b7028d039f29f6aab
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-07-31 16:32:05 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-07-31 16:40:12 +0000

    science/py-eccodes: Update to 1.6.0
    
    Changes:        https://github.com/ecmwf/eccodes-python/blob/develop/CHANGELOG.rst
---
 science/py-eccodes/Makefile             |  3 +--
 science/py-eccodes/distinfo             |  6 +++---
 science/py-eccodes/files/patch-setup.py | 15 +++++++++++++++
 3 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/science/py-eccodes/Makefile b/science/py-eccodes/Makefile
index 216ccf229318..2d3bdfaf6c49 100644
--- a/science/py-eccodes/Makefile
+++ b/science/py-eccodes/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	eccodes
-PORTVERSION=	1.5.2
-PORTREVISION=	1
+PORTVERSION=	1.6.0
 CATEGORIES=	science python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/science/py-eccodes/distinfo b/science/py-eccodes/distinfo
index 8df2011cb2e8..9383b5a0af54 100644
--- a/science/py-eccodes/distinfo
+++ b/science/py-eccodes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1681052960
-SHA256 (eccodes-1.5.2.tar.gz) = f7cce47fc9b1df3ed9eea21c4060fa572e07a4d0f014f6fd1f74683df9b45801
-SIZE (eccodes-1.5.2.tar.gz) = 2261256
+TIMESTAMP = 1689398903
+SHA256 (eccodes-1.6.0.tar.gz) = 59393040bcf89d8048127410926582aaffc688e174bebd464719307bbc5d9e15
+SIZE (eccodes-1.6.0.tar.gz) = 2261932
diff --git a/science/py-eccodes/files/patch-setup.py b/science/py-eccodes/files/patch-setup.py
new file mode 100644
index 000000000000..a3db2665c58d
--- /dev/null
+++ b/science/py-eccodes/files/patch-setup.py
@@ -0,0 +1,15 @@
+--- setup.py.orig	2023-07-11 10:42:35 UTC
++++ setup.py
+@@ -37,12 +37,6 @@ def parse_version_from(path):
+ 
+ 
+ install_requires = ["numpy"]
+-if sys.version_info < (3, 7):
+-    install_requires = ["numpy<1.20"]
+-elif sys.version_info < (3, 8):
+-    install_requires = ["numpy<1.22"]
+-elif sys.version_info < (3, 9):
+-    install_requires = ["numpy<1.25"]
+ 
+ install_requires += ["attrs", "cffi", "findlibs"]
+