git: 4be8586c98bc - main - devel/py-etils: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 19:27:06 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4be8586c98bc2b2a8e83723bc9bf992e7d6b2583 commit 4be8586c98bc2b2a8e83723bc9bf992e7d6b2583 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-03-21 18:42:49 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:20:36 +0000 devel/py-etils: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- devel/py-etils/Makefile | 8 +++--- devel/py-etils/files/setup.py | 66 ------------------------------------------- 2 files changed, 4 insertions(+), 70 deletions(-) diff --git a/devel/py-etils/Makefile b/devel/py-etils/Makefile index a4f75566395f..d07f01544fe0 100644 --- a/devel/py-etils/Makefile +++ b/devel/py-etils/Makefile @@ -1,5 +1,6 @@ PORTNAME= etils PORTVERSION= 1.0.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,8 +12,10 @@ WWW= https://github.com/google/etils LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.5<4:devel/py-flit-core@${PY_FLAVOR} + USES= python:3.8+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -27,7 +30,4 @@ EPATH_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-import ${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/files/setup.py b/devel/py-etils/files/setup.py deleted file mode 100644 index 4773d3cafc62..000000000000 --- a/devel/py-etils/files/setup.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/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.eapp', - 'etils.ecolab', - 'etils.edc', - 'etils.enp', - 'etils.enp.array_types', - 'etils.epath', - 'etils.epy', - 'etils.etqdm', - 'etils.etree', - 'etils.lazy_imports'] - -package_data = \ -{'': ['*'], 'etils.epath': ['docs/*']} - -extras_require = \ -{'all': ['etils[array-types]', - 'etils[eapp]', - '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': ['etils[enp]'], - 'dev': ['pytest', - 'pytest-subtests', - 'pytest-xdist', - 'pylint>=2.6.0', - 'yapf', - 'chex'], - 'eapp': ['absl-py', 'simple_parsing', 'etils[epy]'], - 'ecolab': ['jupyter', 'numpy', 'mediapy', 'etils[enp]', 'etils[epy]'], - 'edc': ['typing_extensions', 'etils[epy]'], - 'enp': ['numpy', 'etils[epy]'], - 'epath': ['importlib_resources', 'typing_extensions', 'zipp', 'etils[epy]'], - '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': ['tensorflow', 'etils[etree]'], - 'lazy-imports': ['etils[ecolab]']} - -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.8', - )