Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2024 06:50:50 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: d349395d542f - main - devel/py-configargparse: Convert to USE_PYTHON=pep517
Message-ID:  <202404080650.4386ooPs046771@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=d349395d542f11e724de575c494d095ef6caba91

commit d349395d542f11e724de575c494d095ef6caba91
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-08 06:46:10 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-08 06:46:10 +0000

    devel/py-configargparse: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 devel/py-configargparse/Makefile             |  5 ++++-
 devel/py-configargparse/files/patch-setup.py | 11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/devel/py-configargparse/Makefile b/devel/py-configargparse/Makefile
index c875f58e55d6..19f91a8a528e 100644
--- a/devel/py-configargparse/Makefile
+++ b/devel/py-configargparse/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	configargparse
 PORTVERSION=	1.5.3
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,11 +13,13 @@ WWW=		https://github.com/bw2/ConfigArgParse
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/devel/py-configargparse/files/patch-setup.py b/devel/py-configargparse/files/patch-setup.py
new file mode 100644
index 000000000000..d0a0aab0a7bf
--- /dev/null
+++ b/devel/py-configargparse/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2021-10-03 00:16:57 UTC
++++ setup.py
+@@ -80,7 +80,7 @@ setup(
+ 
+ 
+ setup(
+-    name='ConfigArgParse',
++    name='configargparse',
+     version="1.5.3",
+     description='A drop-in replacement for argparse that allows options to '
+                 'also be set via config files and/or environment variables.',



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