Update: devel-pyflexmock 0.10.2 -> 0.10.3

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Update: devel-pyflexmock 0.10.2 -> 0.10.3

Kurt Mosiejczuk-9
Somewhat quick update for py-flexmock to 0.10.3

I pulled in the necessary TEST_DEPENDS which weren't in there before.
It pulls in shells/bash because their test script calls bash and
seems to use some bash-specific variable substitution. If that's too
bothersome I can dig deeper and see about doing more rewriting of the
run_tests.sh script. I was leaning towards less-intrusive for future
updates.

All tests pass for both flavors.

I've included this as a tarball as I couldn't figure out how to get the
diff to generate properly. The patches directory didn't exist before my
update and cvs really didn't want to include that patch.  Tips on how to
better handle this situation are quite welcome.

--Kurt


py-flexmock.tar.gz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Update: devel-pyflexmock 0.10.2 -> 0.10.3

Kurt Mosiejczuk-9
On Thu, Feb 14, 2019 at 12:40:03AM -0500, Kurt Mosiejczuk wrote:
> Somewhat quick update for py-flexmock to 0.10.3

> I pulled in the necessary TEST_DEPENDS which weren't in there before.
> It pulls in shells/bash because their test script calls bash and
> seems to use some bash-specific variable substitution. If that's too
> bothersome I can dig deeper and see about doing more rewriting of the
> run_tests.sh script. I was leaning towards less-intrusive for future
> updates.

> All tests pass for both flavors.

> I've included this as a tarball as I couldn't figure out how to get the
> diff to generate properly. The patches directory didn't exist before my
> update and cvs really didn't want to include that patch.  Tips on how to
> better handle this situation are quite welcome.

ping?

--Kurt

Reply | Threaded
Open this post in threaded view
|

Re: Update: devel-pyflexmock 0.10.2 -> 0.10.3

Kurt Mosiejczuk-9
On Sun, Feb 24, 2019 at 11:15:36PM -0500, Kurt Mosiejczuk wrote:
> On Thu, Feb 14, 2019 at 12:40:03AM -0500, Kurt Mosiejczuk wrote:
> > Somewhat quick update for py-flexmock to 0.10.3

> > I pulled in the necessary TEST_DEPENDS which weren't in there before.
> > It pulls in shells/bash because their test script calls bash and
> > seems to use some bash-specific variable substitution. If that's too
> > bothersome I can dig deeper and see about doing more rewriting of the
> > run_tests.sh script. I was leaning towards less-intrusive for future
> > updates.

> > All tests pass for both flavors.

I figured out how to get cvs to include the formerly non-existent
patches directory in the diff.

The only consumer is sysutils/borgmatic that uses it as a TEST_DEPENDS.
borgmatic's test suite seems to be broken though. It ends up pulling
multiple of its depends as eggs and then runs 0 tests anyway.

So... ping again for py-flexmock.

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-flexmock/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile 7 Jul 2017 17:05:49 -0000 1.1.1.1
+++ Makefile 7 Mar 2019 05:31:24 -0000
@@ -2,7 +2,7 @@
 
 COMMENT = testing library for Python
 
-MODPY_EGG_VERSION = 0.10.2
+MODPY_EGG_VERSION = 0.10.3
 DISTNAME = flexmock-${MODPY_EGG_VERSION}
 PKGNAME = py-${DISTNAME}
 
@@ -17,5 +17,16 @@ MODPY_SETUPTOOLS = Yes
 
 FLAVORS = python3
 FLAVOR ?=
+
+TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR} \
+ devel/py-test${MODPY_FLAVOR} \
+ shells/bash
+
+.if !${FLAVOR:Mpython3}
+TEST_DEPENDS += devel/py-twisted
+.endif
+
+do-test:
+ cd ${WRKSRC}/tests && ./run_tests.sh
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-flexmock/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 7 Jul 2017 17:05:49 -0000 1.1.1.1
+++ distinfo 7 Mar 2019 05:31:24 -0000
@@ -1,2 +1,2 @@
-SHA256 (flexmock-0.10.2.tar.gz) = /pXIcn9Ntz3I8ve0VIv/55kkQKll/v1g2ikavaU1LCs=
-SIZE (flexmock-0.10.2.tar.gz) = 44425
+SHA256 (flexmock-0.10.3.tar.gz) = QcwILNQFE2RO0CN8mdcStuOXzCzfE9gBY6fidokwLAw=
+SIZE (flexmock-0.10.3.tar.gz) = 45017
Index: patches/patch-tests_run_tests_sh
===================================================================
RCS file: patches/patch-tests_run_tests_sh
diff -N patches/patch-tests_run_tests_sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-tests_run_tests_sh 7 Mar 2019 05:31:24 -0000
@@ -0,0 +1,11 @@
+$OpenBSD$
+
+Index: tests/run_tests.sh
+--- tests/run_tests.sh.orig
++++ tests/run_tests.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/bin/env bash
+
+ PYTHON_IMPLEMENTATIONS=${PYTHON_IMPLEMENTATIONS:-"python pypy jython"}
+ python_VERSIONS=${PYTHON_VERSIONS:-"2.6 2.7 3.3 3.4 3.5"}