git: dd69d35da333 - main - devel/py-etils: Update to 1.4.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 16 Aug 2023 18:31:53 UTC
The branch main has been updated by sunpoet:

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

commit dd69d35da333a9b6b0871b41ee036769575b253f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-08-16 18:11:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-08-16 18:25:25 +0000

    devel/py-etils: Update to 1.4.1
    
    - Update WWW
    - Add ARRAY_TYPES, EAPP, ECOLAB, EDC, ENP, ETREE and ETQDM options
    
    Changes:        https://github.com/google/etils/releases
---
 devel/py-etils/Makefile | 41 ++++++++++++++++++++++++++++++++---------
 devel/py-etils/distinfo |  6 +++---
 2 files changed, 35 insertions(+), 12 deletions(-)

diff --git a/devel/py-etils/Makefile b/devel/py-etils/Makefile
index 65fc76f0eb6a..d9ca93bb306b 100644
--- a/devel/py-etils/Makefile
+++ b/devel/py-etils/Makefile
@@ -1,32 +1,55 @@
 PORTNAME=	etils
-PORTVERSION=	1.3.0
+PORTVERSION=	1.4.1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Collection of common python utils
-WWW=		https://github.com/google/etils
+WWW=		https://etils.readthedocs.io/en/latest/ \
+		https://github.com/google/etils
 
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.8<4:devel/py-flit-core@${PY_FLAVOR}
 
-USES=		python
+USES=		python:3.9+
 USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-OPTIONS_DEFINE=	EPATH EPY
-OPTIONS_DEFAULT=EPATH EPY
-EPATH_DESC=	Pathlib-like API
-EPATH_IMPLIES=	EPY
-EPY_DESC=	Collection of generic python utils
-
+OPTIONS_DEFINE=	ARRAY_TYPES EAPP ECOLAB EDC ENP EPATH EPY ETREE ETQDM
+OPTIONS_DEFAULT=ARRAY_TYPES EAPP EDC ENP EPATH EPY ETREE ETQDM
+ARRAY_TYPES_DESC=	Typing annotations for jax, numpy, ... arrays
+ARRAY_TYPES_IMPLIES=	ENP
+EAPP_DESC=		Absl flags/app utilities
+EAPP_IMPLIES=		EPY
+ECOLAB_DESC=		Colab utilities
+ECOLAB_IMPLIES=		ENP EPY
+EDC_DESC=		Dataclasses utilities
+EDC_IMPLIES=		EPY
+ENP_DESC=		Numpy utilities
+ENP_IMPLIES=		EPY
+EPATH_DESC=		Pathlib-like API
+EPATH_IMPLIES=		EPY
+EPY_DESC=		Collection of generic python utilities
+ETREE_DESC=		Tree utilities for tf.nest, jax.tree_utils, DeepMind tree
+ETREE_IMPLIES=		ENP EPY ETQDM
+ETQDM_DESC=		Tqdm utilities
+ETQDM_IMPLIES=		EPY
+
+EAPP_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}absl-py>=0:devel/py-absl-py@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}simple-parsing>=0:devel/py-simple-parsing@${PY_FLAVOR}
+ECOLAB_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jupyter>=0:devel/py-jupyter@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}mediapy>=0:devel/py-mediapy@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}
+ENP_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}
 EPATH_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}zipp>=0:devel/py-zipp@${PY_FLAVOR}
 EPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+ETQDM_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}absl-py>=0:devel/py-absl-py@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}tqdm>=0:misc/py-tqdm@${PY_FLAVOR}
 
 .include <bsd.port.mk>
diff --git a/devel/py-etils/distinfo b/devel/py-etils/distinfo
index 6db45cee23d6..fa8b9ade8a13 100644
--- a/devel/py-etils/distinfo
+++ b/devel/py-etils/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1685162130
-SHA256 (etils-1.3.0.tar.gz) = 0a695ec45a982ae7c9deb437f1f251346d88b43ca59be67e961f61fe8bc8cae4
-SIZE (etils-1.3.0.tar.gz) = 77560
+TIMESTAMP = 1691070044
+SHA256 (etils-1.4.1.tar.gz) = 53193b57b28ff14c4ee2b27fca1d09c4c1356ceb9324b416e9d9c2eef5f6dfdb
+SIZE (etils-1.4.1.tar.gz) = 83151