Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jul 2024 16:29:05 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: 03d5f94786fb - main - devel/py-testpath: Convert to USE_PYTHON=pep517
Message-ID:  <202407061629.466GT5Xh083601@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=03d5f94786fb6be228610671e2efe954ec27d3a2

commit 03d5f94786fb6be228610671e2efe954ec27d3a2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-06 16:12:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-06 16:12:13 +0000

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

diff --git a/devel/py-testpath/Makefile b/devel/py-testpath/Makefile
index b73672eb884f..3d341e54aeb0 100644
--- a/devel/py-testpath/Makefile
+++ b/devel/py-testpath/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	testpath
 PORTVERSION=	0.6.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,11 @@ WWW=		https://github.com/jupyter/testpath
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.2.0<4:devel/py-flit-core@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist 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-testpath/files/setup.py b/devel/py-testpath/files/setup.py
deleted file mode 100644
index b7ed5d66b73c..000000000000
--- a/devel/py-testpath/files/setup.py
+++ /dev/null
@@ -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 = \
-['testpath']
-
-package_data = \
-{'': ['*']}
-
-extras_require = \
-{'test': ['pytest']}
-
-setup(name='testpath',
-      version='%%PORTVERSION%%',
-      description='Test utilities for code working with files and commands',
-      author=None,
-      author_email='Jupyter Development Team <jupyter@googlegroups.com>',
-      url=None,
-      packages=packages,
-      package_data=package_data,
-      extras_require=extras_require,
-      python_requires='>= 3.5',
-     )



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