devel/py-threadpoolctl: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for package change
This commit is contained in:
Po-Chuan Hsieh 2023-04-06 01:17:04 +08:00
parent c21f170717
commit 6e5636cae4
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 4 additions and 18 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= threadpoolctl
PORTVERSION= 3.1.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,12 +12,11 @@ WWW= https://github.com/joblib/threadpoolctl
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=0:devel/py-flit-core@${PY_FLAVOR}
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
.include <bsd.port.mk>

View file

@ -1,14 +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
setup(name='threadpoolctl',
version='%%PORTVERSION%%',
description='threadpoolctl',
author='Thomas Moreau',
author_email='thomas.moreau.2010@gmail.com',
url='https://github.com/joblib/threadpoolctl',
py_modules=['threadpoolctl'],
python_requires='>=3.6',
)