mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
- Allow build with Python 3
- Add NO_ARCH - Bump PORTREVISION for package change
This commit is contained in:
parent
301eb6b08c
commit
1293431007
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396131
@ -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>
|
||||
|
11
www/py-spyne/files/patch-spyne-server-twisted-http.py
Normal file
11
www/py-spyne/files/patch-spyne-server-twisted-http.py
Normal file
@ -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:
|
@ -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)})
|
||||
|
Loading…
x
Reference in New Issue
Block a user