diff options
-rw-r--r-- | devel/py-pep517/Makefile | 8 | ||||
-rw-r--r-- | devel/py-pep517/files/setup.py | 26 |
2 files changed, 4 insertions, 30 deletions
diff --git a/devel/py-pep517/Makefile b/devel/py-pep517/Makefile index e7647e26906d..81cd6b2889d1 100644 --- a/devel/py-pep517/Makefile +++ b/devel/py-pep517/Makefile @@ -1,5 +1,6 @@ PORTNAME= pep517 PORTVERSION= 0.13.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,8 +12,10 @@ WWW= https://github.com/pypa/pep517 LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=2<4:devel/py-flit-core@${PY_FLAVOR} + USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -27,7 +30,4 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-me RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR} .endif -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include <bsd.port.post.mk> diff --git a/devel/py-pep517/files/setup.py b/devel/py-pep517/files/setup.py deleted file mode 100644 index 26efcc181f45..000000000000 --- a/devel/py-pep517/files/setup.py +++ /dev/null @@ -1,26 +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 = \ -['pep517', 'pep517.in_process'] - -package_data = \ -{'': ['*']} - -extras_require = \ -{":python_version<'3.11'": ['tomli >=1.1.0'], - ":python_version<'3.8'": ['importlib_metadata', 'zipp']} - -setup(name='pep517', - version='%%PORTVERSION%%', - description='Wrappers to build Python packages using PEP 517 hooks', - author='Thomas Kluyver', - author_email='thomas@kluyver.me.uk', - url='https://github.com/pypa/pep517', - packages=packages, - package_data=package_data, - extras_require=extras_require, - python_requires='>=3.6', - ) |