devel/py-aioitertools: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for dependency and package change
This commit is contained in:
Po-Chuan Hsieh 2023-03-22 02:42:27 +08:00
parent d6dedd1727
commit 95203371df
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 5 additions and 29 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= aioitertools
PORTVERSION= 0.11.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,18 +12,18 @@ WWW= https://github.com/omnilib/aioitertools
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 31000
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0:devel/py-typing-extensions@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0:devel/py-typing-extensions@${PY_FLAVOR}
.endif
post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
.include <bsd.port.post.mk>

View file

@ -1,25 +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 = \
['aioitertools', 'aioitertools.tests']
package_data = \
{'': ['*']}
extras_require = \
{":python_version < '3.10'": ['typing_extensions>=4.0']}
setup(name='aioitertools',
version='%%PORTVERSION%%',
description='itertools and builtins for AsyncIO and mixed iterables',
author='Amethyst Reese',
author_email='amy@noswap.com',
url='https://aioitertools.omnilib.dev',
packages=packages,
package_data=package_data,
extras_require=extras_require,
python_requires='>=3.6',
)