Skip to content

Commit

Permalink
devel/py-etils: Add py-etils 0.6.0
Browse files Browse the repository at this point in the history
Etils (eclectic utils) is an open-source collection of utils for python.

WWW: https://github.com/google/etils
  • Loading branch information
sunpoet committed Jul 7, 2022
1 parent f208ae5 commit 313d74c
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 34 additions & 0 deletions devel/py-etils/Makefile
Original file line number Diff line number Diff line change
@@ -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>
3 changes: 3 additions & 0 deletions devel/py-etils/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1656702468
SHA256 (etils-0.6.0.tar.gz) = 6677241051835d0db11c4947bcad938f57b51ea102290624f892f1e4e51b70e5
SIZE (etils-0.6.0.tar.gz) = 57081
61 changes: 61 additions & 0 deletions devel/py-etils/files/setup.py
Original file line number Diff line number Diff line change
@@ -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',
)
3 changes: 3 additions & 0 deletions devel/py-etils/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Etils (eclectic utils) is an open-source collection of utils for python.

WWW: https://github.com/google/etils

0 comments on commit 313d74c

Please sign in to comment.