git: baf3be6734e8 - main - devel/py-cftime: Update to 1.6.2

From: Wen Heping <wen_at_FreeBSD.org>
Date: Sat, 25 Feb 2023 06:21:21 UTC
The branch main has been updated by wen:

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

commit baf3be6734e89ac7cfa92d10baae37d7fcaf8223
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2023-02-25 06:18:34 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2023-02-25 06:18:34 +0000

    devel/py-cftime: Update to 1.6.2
    
    Update LICENSE
    
    PR:             269119
    Reported by:    yuri@
---
 devel/py-cftime/Makefile | 18 ++++++++++--------
 devel/py-cftime/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/devel/py-cftime/Makefile b/devel/py-cftime/Makefile
index 312aff84ed9a..7b8020287e44 100644
--- a/devel/py-cftime/Makefile
+++ b/devel/py-cftime/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	cftime
-PORTVERSION=	1.0.3.4
-PORTREVISION=	1
+PORTVERSION=	1.6.2
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -9,17 +8,20 @@ MAINTAINER=	wen@FreeBSD.org
 COMMENT=	Time-handling functionality from netcdf4-python
 WWW=		https://github.com/Unidata/cftime
 
-LICENSE=	GPLv3+
-LICENSE_FILE=	${WRKSRC}/COPYING
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYNUMPY}
 RUN_DEPENDS=	${PYNUMPY}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR}
 
-USES=		python:3.6+
-USE_PYTHON=	autoplist distutils cython
+USES=		python:3.7+
+USE_PYTHON=	autoplist cython distutils pytest
 
-do-test:
-	@cd ${WRKSRC} && py.test
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cftime/_cftime${PYTHON_EXT_SUFFIX}.so
 
 .include <bsd.port.mk>
diff --git a/devel/py-cftime/distinfo b/devel/py-cftime/distinfo
index 2115d2325b5c..0a1e0efda20f 100644
--- a/devel/py-cftime/distinfo
+++ b/devel/py-cftime/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1553672327
-SHA256 (cftime-1.0.3.4.tar.gz) = dd74d0d470baf1c50e31335215793a5e78436903e34b4f151fa9ccbf3a6cc20c
-SIZE (cftime-1.0.3.4.tar.gz) = 46422
+TIMESTAMP = 1677277379
+SHA256 (cftime-1.6.2.tar.gz) = 8614c00fb8a5046de304fdd86dbd224f99408185d7b245ac6628d0276596e6d2
+SIZE (cftime-1.6.2.tar.gz) = 52745