On Mon, Aug 26, 2019 at 05:32:33PM +0300, Timo Myyr?? wrote:
> Here is a update to configargparse. This is required by multimedia/yle-dl as it
> doesn't work with 0.12.0 currenly in ports tree.
> COMMENT= argparse replacement, allows options to be set via files/env
> -MODPY_EGG_VERSION = 0.12.0
> +MODPY_EGG_VERSION = 0.13.0
Why not 0.14.0? Came out in January.
> DISTNAME= ConfigArgParse-${MODPY_EGG_VERSION}
> PKGNAME= py-${DISTNAME}
> REVISION= 0
REVISION should be deleted when changing version.
Here's a version of the diff that takes it to 0.14.0 and picks up the
test dependencies. The tests are a bit confusing because the python 2
version runs 1600+ tests and python 3 runs 29.
--Kurt
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-configargparse/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile 12 Jul 2019 20:45:46 -0000 1.7
+++ Makefile 26 Aug 2019 15:07:47 -0000
@@ -2,10 +2,9 @@
COMMENT= argparse replacement, allows options to be set via files/env
-MODPY_EGG_VERSION = 0.12.0
+MODPY_EGG_VERSION = 0.14.0
DISTNAME= ConfigArgParse-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
-REVISION= 0
CATEGORIES= devel
@@ -18,7 +17,13 @@ FLAVOR?=
MODULES= lang/python
MODPY_PI= Yes
MODPY_SETUPTOOLS= Yes
+MODPY_PYTEST= Yes
-TEST_DEPENDS= textproc/py-yaml${MODPY_FLAVOR}
+TEST_DEPENDS= devel/py-mock${MODPY_FLAVOR} \
+ textproc/py-yaml${MODPY_FLAVOR}
+
+.if !${FLAVOR:Mpython3}
+TEST_DEPENDS+= devel/py-unittest2
+.endif
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-configargparse/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo 20 May 2017 08:10:23 -0000 1.3
+++ distinfo 26 Aug 2019 15:07:47 -0000
@@ -1,2 +1,2 @@
-SHA256 (ConfigArgParse-0.12.0.tar.gz) = KM19Z2aWUfKkUYNng4xJU5RXUEWEoTlwmyuPbCCO8zk=
-SIZE (ConfigArgParse-0.12.0.tar.gz) = 41524
+SHA256 (ConfigArgParse-0.14.0.tar.gz) = Li7+K+P5BXesqUFeMstimqLs2SB4rb4ntToD5T/xLpE=
+SIZE (ConfigArgParse-0.14.0.tar.gz) = 26847
No comments:
Post a Comment