Date: Sat, 30 Dec 2017 18:16:10 +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: r457607 - in head/www/py-spyne: . files Message-ID: <201712301816.vBUIGA1r058468@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sat Dec 30 18:16:10 2017 New Revision: 457607 URL: https://svnweb.freebsd.org/changeset/ports/457607 Log: Relax USES=python - Specify UTF-8 encoding for the UTF-8 character in CHANGELOG.rst - Bump PORTREVISION for package change Added: head/www/py-spyne/files/patch-setup.py (contents, props changed) Modified: head/www/py-spyne/Makefile head/www/py-spyne/files/patch-spyne-test-transport-test_msgpack.py Modified: head/www/py-spyne/Makefile ============================================================================== --- head/www/py-spyne/Makefile Sat Dec 30 18:01:32 2017 (r457606) +++ head/www/py-spyne/Makefile Sat Dec 30 18:16:10 2017 (r457607) @@ -3,6 +3,7 @@ PORTNAME= spyne PORTVERSION= 2.12.14 +PORTREVISION= 1 CATEGORIES= www devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -16,6 +17,6 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-p NO_ARCH= yes USE_PYTHON= autoplist concurrent distutils -USES= python:2.7 +USES= python .include <bsd.port.mk> Added: head/www/py-spyne/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-spyne/files/patch-setup.py Sat Dec 30 18:16:10 2017 (r457607) @@ -0,0 +1,19 @@ +--- setup.py.orig 2016-10-28 11:15:20 UTC ++++ setup.py +@@ -3,6 +3,7 @@ + + from __future__ import print_function + ++import codecs + import os + import re + import sys +@@ -48,7 +49,7 @@ protocols and transports. + + try: + os.stat('CHANGELOG.rst') +- LONG_DESC += "\n\n" + open('CHANGELOG.rst', 'r').read() ++ LONG_DESC += "\n\n" + codecs.open('CHANGELOG.rst', 'r', encoding='utf-8').read() + except OSError: + pass + Modified: head/www/py-spyne/files/patch-spyne-test-transport-test_msgpack.py ============================================================================== --- head/www/py-spyne/files/patch-spyne-test-transport-test_msgpack.py Sat Dec 30 18:01:32 2017 (r457606) +++ head/www/py-spyne/files/patch-spyne-test-transport-test_msgpack.py Sat Dec 30 18:16:10 2017 (r457607) @@ -1,6 +1,6 @@ ---- spyne/test/transport/test_msgpack.py.orig 2014-06-09 22:35:04 UTC +--- spyne/test/transport/test_msgpack.py.orig 2016-10-28 11:15:20 UTC +++ spyne/test/transport/test_msgpack.py -@@ -52,9 +52,9 @@ class TestMessagePackServer(unittest.Tes +@@ -54,9 +54,9 @@ class TestMessagePackServer(unittest.Tes request = msgpack.packb({'yay': [v]}) prot.dataReceived(msgpack.packb([1, request])) val = prot.transport.value() @@ -10,9 +10,9 @@ - print repr(val) + print(repr(val)) - self.assertEquals(val, {0: msgpack.packb(v)}) + self.assertEquals(val, [0, msgpack.packb(v)]) -@@ -80,9 +80,9 @@ class TestMessagePackServer(unittest.Tes +@@ -82,9 +82,9 @@ class TestMessagePackServer(unittest.Tes request = msgpack.packb({'yay': [v]}) def _ccb(_): val = prot.transport.value() @@ -22,5 +22,5 @@ - print repr(val) + print(repr(val)) - self.assertEquals(val, {0: msgpack.packb(v)}) + self.assertEquals(val, [0, msgpack.packb(v)])
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712301816.vBUIGA1r058468>