Date: Fri, 4 Sep 2015 19:02:19 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r396131 - in head/www/py-spyne: . files Message-ID: <201509041902.t84J2JW6006161@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Fri Sep 4 19:02:18 2015 New Revision: 396131 URL: https://svnweb.freebsd.org/changeset/ports/396131 Log: - Allow build with Python 3 - Add NO_ARCH - Bump PORTREVISION for package change Added: head/www/py-spyne/files/ head/www/py-spyne/files/patch-spyne-server-twisted-http.py (contents, props changed) head/www/py-spyne/files/patch-spyne-test-transport-test_msgpack.py (contents, props changed) Modified: head/www/py-spyne/Makefile Modified: head/www/py-spyne/Makefile ============================================================================== --- head/www/py-spyne/Makefile Fri Sep 4 19:01:32 2015 (r396130) +++ head/www/py-spyne/Makefile Fri Sep 4 19:02:18 2015 (r396131) @@ -3,6 +3,7 @@ PORTNAME= spyne PORTVERSION= 2.11.0 +PORTREVISION= 1 CATEGORIES= www devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,7 +15,8 @@ LICENSE= LGPL21 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>=0:${PORTSDIR}/devel/py-pytz +NO_ARCH= yes USE_PYTHON= autoplist distutils -USES= python:2 +USES= python .include <bsd.port.mk> Added: head/www/py-spyne/files/patch-spyne-server-twisted-http.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-spyne/files/patch-spyne-server-twisted-http.py Fri Sep 4 19:02:18 2015 (r396131) @@ -0,0 +1,11 @@ +--- spyne/server/twisted/http.py.orig 2014-06-23 22:42:15 UTC ++++ spyne/server/twisted/http.py +@@ -99,7 +99,7 @@ def _render_file(file, request): + + try: + fileForReading = file.openForReading() +- except IOError, e: ++ except IOError as e: + import errno + + if e[0] == errno.EACCES: Added: head/www/py-spyne/files/patch-spyne-test-transport-test_msgpack.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-spyne/files/patch-spyne-test-transport-test_msgpack.py Fri Sep 4 19:02:18 2015 (r396131) @@ -0,0 +1,26 @@ +--- spyne/test/transport/test_msgpack.py.orig 2014-06-09 22:35:04 UTC ++++ spyne/test/transport/test_msgpack.py +@@ -52,9 +52,9 @@ class TestMessagePackServer(unittest.Tes + request = msgpack.packb({'yay': [v]}) + prot.dataReceived(msgpack.packb([1, request])) + val = prot.transport.value() +- print repr(val) ++ print(repr(val)) + val = msgpack.unpackb(val) +- print repr(val) ++ print(repr(val)) + + self.assertEquals(val, {0: msgpack.packb(v)}) + +@@ -80,9 +80,9 @@ class TestMessagePackServer(unittest.Tes + request = msgpack.packb({'yay': [v]}) + def _ccb(_): + val = prot.transport.value() +- print repr(val) ++ print(repr(val)) + val = msgpack.unpackb(val) +- print repr(val) ++ print(repr(val)) + + self.assertEquals(val, {0: msgpack.packb(v)}) +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509041902.t84J2JW6006161>