Update to 0.8.1

- Change MASTER_SITES from Launchpad to CHEESESHOP
- Add LICENSE
- Relax USES=python
- Reformat pkg-descr
- Update WWW

Changes:	https://github.com/txamqp/txamqp/commits/master
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-12-27 19:52:20 +00:00
parent 874d50422b
commit e535ede351
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=457399
4 changed files with 16 additions and 60 deletions

View file

@ -2,26 +2,23 @@
# $FreeBSD$
PORTNAME= txamqp
PORTVERSION= 0.3
PORTREVISION= 4
PORTVERSION= 0.8.1
CATEGORIES= net python
MASTER_SITES= http://launchpadlibrarian.net/30388120/ \
# http://launchpad.net/txamqp/trunk/${PORTVERSION}/+download/
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-${PORTNAME}_${PORTVERSION}.orig
DISTNAME= txAMQP-${PORTVERSION}
MAINTAINER= python@FreeBSD.org
COMMENT= Twisted Python library for the AMQP messaging protocol
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}thrift>=0:devel/py-thrift@${FLAVOR} \
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
xRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${FLAVOR}
NO_ARCH= yes
USES= python:2
USES= python
USE_PYTHON= autoplist distutils
WRKSRC= ${WRKDIR}/python-${PORTNAME}-${PORTVERSION}
# TODO: Install txAMQP examples.
.include <bsd.port.mk>

View file

@ -1,2 +1,3 @@
SHA256 (python-txamqp_0.3.orig.tar.gz) = c3900aa1e837711a06a881ae76f575af66f9e3d562bfe8ca22918477325050e4
SIZE (python-txamqp_0.3.orig.tar.gz) = 153402
TIMESTAMP = 1514380295
SHA256 (txAMQP-0.8.1.tar.gz) = 3328a6f5020dc017e149bc281689b3618c13622df11b1164e041d7db1851e7d1
SIZE (txAMQP-0.8.1.tar.gz) = 39544

View file

@ -1,42 +0,0 @@
--- src/txamqp/codec.py.orig 2009-08-16 11:25:45 UTC
+++ src/txamqp/codec.py
@@ -25,12 +25,12 @@ fields.
"""
from cStringIO import StringIO
-from struct import *
+from struct import pack, calcsize, unpack
class EOF(Exception):
pass
-class Codec:
+class Codec(object):
def __init__(self, stream):
self.stream = stream
@@ -153,6 +153,13 @@ class Codec:
def decode_longstr(self):
return self.dec_str("!L")
+ # timestamp
+ def encode_timestamp(self, o):
+ self.pack("!Q", o)
+
+ def decode_timestamp(self):
+ return self.unpack("!Q")
+
# table
def encode_table(self, tbl):
enc = StringIO()
@@ -180,6 +187,10 @@ class Codec:
value = self.decode_longstr()
elif type == "I":
value = self.decode_long()
+ elif type == "F":
+ value = self.decode_table()
+ elif type == "t":
+ value = (self.decode_octet() != 0)
else:
raise ValueError(repr(type))
result[key] = value

View file

@ -1,6 +1,6 @@
This project contains all the necessary code to connect, send and
receive messages to/from an AMQP-compliant peer or broker (Qpid,
OpenAMQ, RabbitMQ) using Twisted. It also includes support for using
Thrift RPC over AMQP in Twisted applications.
This project contains all the necessary code to connect, send and receive
messages to/from an AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ)
using Twisted. It also includes support for using Thrift RPC over AMQP in
Twisted applications.
WWW: https://launchpad.net/txamqp
WWW: https://pypi.python.org/pypi/txAMQP