From owner-freebsd-python@FreeBSD.ORG Mon Oct 22 08:30:02 2012 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C142B1B for ; Mon, 22 Oct 2012 08:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 09AE98FC08 for ; Mon, 22 Oct 2012 08:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9M8U1Xx030045 for ; Mon, 22 Oct 2012 08:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9M8U1xe030042; Mon, 22 Oct 2012 08:30:01 GMT (envelope-from gnats) Date: Mon, 22 Oct 2012 08:30:01 GMT Message-Id: <201210220830.q9M8U1xe030042@freefall.freebsd.org> To: freebsd-python@FreeBSD.org Cc: From: "Ildar Hizbulin" Subject: Re: ports/172851: [PATCH] sysutils/py-supervisor: update to 3.0b1 + OPTIONS + more X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Ildar Hizbulin List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2012 08:30:02 -0000 The following reply was made to PR ports/172851; it has been noted by GNATS. From: "Ildar Hizbulin" To: bug-followup@freebsd.org, "Kubilay Kocak" Cc: freebsd-python@freebsd.org, "Ruslan Mahmatkhanov" Subject: Re: ports/172851: [PATCH] sysutils/py-supervisor: update to 3.0b1 + OPTIONS + more Date: Mon, 22 Oct 2012 12:27:57 +0400 ------------e3XHFnrhO3UnSDdMxbcwg4 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Final patch with fix test error. To https://github.com/Supervisor/supervisor/issues/155 send pull request. -- e-mail: hizel@vyborg.ru jid: hizel@vyborg.ru ------------e3XHFnrhO3UnSDdMxbcwg4 Content-Disposition: attachment; filename=py-supervisor.txt Content-Type: text/plain; name=py-supervisor.txt Content-Transfer-Encoding: 7bit diff -ruN sysutils/py-supervisor.old/Makefile sysutils/py-supervisor/Makefile --- sysutils/py-supervisor.old/Makefile 2012-10-22 12:12:59.000000000 +0400 +++ sysutils/py-supervisor/Makefile 2012-10-22 12:19:19.000000000 +0400 @@ -10,7 +10,19 @@ MAINTAINER= hizel@vyborg.ru COMMENT= System to monitor and control a number of processes on UNIX-like OS -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meld3>=0.6.4:${PORTSDIR}/www/py-meld3 +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meld3>=0.6.5:${PORTSDIR}/www/py-meld3 +TEST_DEPENDS:= ${RUN_DEPENDS} \ + ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock + +OPTIONS_DEFINE= TESTS +TESTS_DESC= Install mock for running unit tests +OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options + +.include + +.if ${PORT_OPTIONS:MTESTS} +BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock +.endif PORTDOCS= *.txt *.rst @@ -37,4 +49,7 @@ .endfor .endif +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test + .include diff -ruN sysutils/py-supervisor.old/files/patch-supervisor-tests-test_childutils.py sysutils/py-supervisor/files/patch-supervisor-tests-test_childutils.py --- sysutils/py-supervisor.old/files/patch-supervisor-tests-test_childutils.py 1970-01-01 03:00:00.000000000 +0300 +++ sysutils/py-supervisor/files/patch-supervisor-tests-test_childutils.py 2012-10-22 12:23:18.000000000 +0400 @@ -0,0 +1,11 @@ +--- supervisor/tests/test_childutils.py ++++ supervisor/tests/test_childutils.py +@@ -41,7 +41,7 @@ class ChildUtilsTests(unittest.TestCase): + + def test_get_asctime(self): + from supervisor.childutils import get_asctime +- timestamp = time.mktime((2009, 1, 18, 22, 14, 7, 0, 0, 0)) ++ timestamp = time.mktime((2009, 1, 18, 22, 14, 7, 0, 0, -1)) + result = get_asctime(timestamp) + self.assertEqual(result, '2009-01-18 22:14:07,000') + ------------e3XHFnrhO3UnSDdMxbcwg4--