Date: Thu, 7 Jul 2022 12:37:03 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 313d74c86b6c - main - devel/py-etils: Add py-etils 0.6.0 Message-ID: <202207071237.267Cb35x073941@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=313d74c86b6c762830e58a2c9176983bbb3083af commit 313d74c86b6c762830e58a2c9176983bbb3083af Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-07-07 12:22:03 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-07-07 12:36:11 +0000 devel/py-etils: Add py-etils 0.6.0 Etils (eclectic utils) is an open-source collection of utils for python. WWW: https://github.com/google/etils --- devel/Makefile | 1 + devel/py-etils/Makefile | 34 ++++++++++++++++++++++++ devel/py-etils/distinfo | 3 +++ devel/py-etils/files/setup.py | 61 +++++++++++++++++++++++++++++++++++++++++++ devel/py-etils/pkg-descr | 3 +++ 5 files changed, 102 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index abb414a12927..fc85bf3b329c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4450,6 +4450,7 @@ SUBDIR += py-epc SUBDIR += py-epdb SUBDIR += py-epsilon + SUBDIR += py-etils SUBDIR += py-evdev SUBDIR += py-eventlib SUBDIR += py-ewmh diff --git a/devel/py-etils/Makefile b/devel/py-etils/Makefile new file mode 100644 index 000000000000..21c056a19978 --- /dev/null +++ b/devel/py-etils/Makefile @@ -0,0 +1,34 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= etils +PORTVERSION= 0.6.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Collection of common python utils + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +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 + +EPATH_RUN_DEPENDS= +EPATH_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${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} + +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include <bsd.port.mk> diff --git a/devel/py-etils/distinfo b/devel/py-etils/distinfo new file mode 100644 index 000000000000..fc3e4f595a0b --- /dev/null +++ b/devel/py-etils/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1656702468 +SHA256 (etils-0.6.0.tar.gz) = 6677241051835d0db11c4947bcad938f57b51ea102290624f892f1e4e51b70e5 +SIZE (etils-0.6.0.tar.gz) = 57081 diff --git a/devel/py-etils/files/setup.py b/devel/py-etils/files/setup.py new file mode 100644 index 000000000000..d6990535f44c --- /dev/null +++ b/devel/py-etils/files/setup.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python +# setup.py generated by flit for tools that don't yet use PEP 517 + +from distutils.core import setup + +packages = \ +['etils', + 'etils.array_types', + 'etils.ecolab', + 'etils.edc', + 'etils.enp', + 'etils.epath', + 'etils.epy', + 'etils.etqdm', + 'etils.etree'] + +package_data = \ +{'': ['*'], 'etils.epath': ['docs/*']} + +extras_require = \ +{'all': ['etils[array-types]', + 'etils[ecolab]', + 'etils[edc]', + 'etils[enp]', + 'etils[epath]', + 'etils[epy]', + 'etils[etqdm]', + 'etils[etree]', + 'etils[etree-dm]', + 'etils[etree-jax]', + 'etils[etree-tf]'], + 'array-types': ['numpy'], + 'dev': ['pytest', + 'pytest-subtests', + 'pytest-xdist', + 'pylint>=2.6.0', + 'yapf', + 'chex'], + 'ecolab': ['jupyter', 'numpy', 'mediapy', 'etils[enp]'], + 'edc': ['etils[epy]'], + 'enp': ['numpy', 'etils[array-types]'], + 'epath': ['importlib_resources', 'zipp', 'etils[epy]'], + 'epath-no-tf': ['etils[epath]'], + 'epy': ['typing_extensions'], + 'etqdm': ['absl-py', 'tqdm', 'etils[epy]'], + 'etree': ['etils[array_types]', 'etils[epy]', 'etils[enp]', 'etils[etqdm]'], + 'etree-dm': ['dm-tree', 'etils[etree]'], + 'etree-jax': ['jax[cpu]', 'etils[etree]'], + 'etree-tf': ['tf-nightly', 'etils[etree]']} + +setup(name='etils', + version='%%PORTVERSION%%', + description='Collection of common python utils', + author=None, + author_email='Conchylicultor <etils@google.com>', + url=None, + packages=packages, + package_data=package_data, + extras_require=extras_require, + python_requires='>=3.7', + ) diff --git a/devel/py-etils/pkg-descr b/devel/py-etils/pkg-descr new file mode 100644 index 000000000000..71d621de7bb9 --- /dev/null +++ b/devel/py-etils/pkg-descr @@ -0,0 +1,3 @@ +Etils (eclectic utils) is an open-source collection of utils for python. + +WWW: https://github.com/google/etils
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207071237.267Cb35x073941>