Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2023 18:46:29 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4a8c75a08685 - main - devel/py-pep517: Convert to USE_PYTHON=pep517
Message-ID:  <202302121846.31CIkTHn097798@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a8c75a086850cf67bc63e36c0420f84558415db

commit 4a8c75a086850cf67bc63e36c0420f84558415db
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-02-12 18:36:52 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-02-12 18:41:46 +0000

    devel/py-pep517: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 devel/py-pep517/Makefile       |  8 ++++----
 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',
-     )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302121846.31CIkTHn097798>