Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jul 2024 16:28:36 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: bcaa3395fd0f - main - devel/py-entrypoints: Convert to USE_PYTHON=pep517
Message-ID:  <202407061628.466GSaJO082570@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=bcaa3395fd0fa5b8bda5143779d1d999cde58109

commit bcaa3395fd0fa5b8bda5143779d1d999cde58109
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-06 16:11:53 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-06 16:11:53 +0000

    devel/py-entrypoints: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 devel/py-entrypoints/Makefile       |  8 ++++----
 devel/py-entrypoints/files/setup.py | 14 --------------
 2 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/devel/py-entrypoints/Makefile b/devel/py-entrypoints/Makefile
index 30a8e025ca5d..2723c45bf311 100644
--- a/devel/py-entrypoints/Makefile
+++ b/devel/py-entrypoints/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	entrypoints
 PORTVERSION=	0.4
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,11 @@ WWW=		https://github.com/takluyver/entrypoints
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils pytest
+USE_PYTHON=	autoplist concurrent pep517 pytest
 
 NO_ARCH=	yes
 
-post-patch:
-	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>
diff --git a/devel/py-entrypoints/files/setup.py b/devel/py-entrypoints/files/setup.py
deleted file mode 100644
index ff77668cf787..000000000000
--- a/devel/py-entrypoints/files/setup.py
+++ /dev/null
@@ -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='entrypoints',
-      version='%%PORTVERSION%%',
-      description='Discover and load entry points from installed packages.',
-      author='Thomas Kluyver',
-      author_email='thomas@kluyver.me.uk',
-      url='https://github.com/takluyver/entrypoints',
-      py_modules=['entrypoints'],
-      python_requires='>=3.6',
-     )



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