add Pysher-1.0.4, bump autobahn-18.7.1 from main repo, add txaio-18.7.1 and txaio-18.8.1

This commit is contained in:
2019-11-22 21:52:21 +01:00
parent 4dd4dbca2c
commit 641ded938e
12 changed files with 332 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
DIST Pysher-1.0.4.tar.gz 9795 BLAKE2B 5908525c8a1ee7a02deca5a4f0afdf0cd88228c283b0dbb5db9264c839a2b365225d345f05068bd99d7986e73f055a423eb71d6fe123ac2b201b7c89b7ea9a46 SHA512 e85d3d5aa227197602fcdcc730908f4e4265cd78f9772d72d7072a47af39cefc2df08c18d400de124c3b6d16de12d354f4ec07aa9cb9580e4e5bd03c46e942e1
EBUILD Pysher-1.0.4.ebuild 913 BLAKE2B a8595df2aad2b2af5f565d9cc897607b890abab86e20120a1889745a3fa86d14ee307cb5a5545366b84a6d060d80f14f39cc257905c800bb853bb20a10caaff8 SHA512 48c7c39f546418b81a983fe64ac568aa206a58115b29691d4a7f69d90aee263813af407f117b7592abfcafdc914a373882c9c08ab71e54289f5b36758ffb5807
MISC metadata.xml 468 BLAKE2B 21c66d360f8cbf05d5569f32a270608df11f367b16e831267e7e8e8356ee33fb18660d0b611e277c9f73a78ae4679633d1da345be3e00faf9f2f8cefcdc20502 SHA512 1f2de814d97a211f95ec96e39d7c771b1fad727c51529bda1513054e8fbe9aae4ed31c7ed431648eba68c30d83d04e2e4fb7fb939e7bebeee41e57aa6b3df5cf
+33
View File
@@ -0,0 +1,33 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Pusher websocket client for python, based on Erik Kulyk's PythonPusherClient"
HOMEPAGE="https://github.com/nlsdfnbch/Pysher https://pypi.org/project/Pysher/"
SRC_URI="https://github.com/nlsdfnbch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND="~dev-python/autobahn-18.7.1[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
~dev-python/txaio-18.7.1[${PYTHON_USEDEP}]
>=dev-python/websocket-client-0.51.0[${PYTHON_USEDEP}]"
DEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}
+16
View File
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<herd>python</herd>
<upstream>
<remote-id type="pypi">Pysher</remote-id>
<maintainer status="unknown">
<email>nlsdfnbch.foss@kolabnow.com</email>
<name>Nils Diefenbach</name>
</maintainer>
</upstream>
</pkgmetadata>
+4
View File
@@ -0,0 +1,4 @@
AUX autobahn-18.3.1-Fix-cs-test-955.patch 3736 BLAKE2B eece2b356181b4dac4849dacf555b5c64499f8484ca959c402cd124badccb8d5e8aea20d2310c8f5920d3dbde8854dcdf2c2abd93dd9e0effa8808eed3c78ea0 SHA512 380e3641d5b203a0f9dbdeca21dd7dc0802bf8675271a847824a5059c3867cd92a5f51db90414e74c0749337db191df9693a9d36562b16ed090bb9a508c7b66b
DIST autobahn-18.7.1.tar.gz 222236 BLAKE2B e3436bccc33a157e092e601f7f23f48d4c6679085c3444956a17222905a76ff2e682340735dd71c195b666d69975586cdfe567950c6ca6bc1fa631109ce6d637 SHA512 334716e9c85b8934170bfc1fc589f9f7f2765231d7a7ac25e308dbb457f63119061af5cba58367ed0a82401c8a706dd875ce4826e717367e3d5ca6da72ea5975
EBUILD autobahn-18.7.1.ebuild 2197 BLAKE2B 116f48915057f97a43a7f3839a0b6a15c7e7d1c82cea436da1cd66b7cf523625426db772972cd85aa3133f2bdfe5507fb9127574987a7a837246130a53032d5c SHA512 3b43cb3b985092ae2cb0a990648905f855c5c951af30420937baf63d3b33824d5a22f93bae90dd9001b554f802813af25e83fc66a1168ee45d05c8138c7baf4b
MISC metadata.xml 321 BLAKE2B 2a222ee5e7e6a2a90a44b834a4b7d430938813786c7179fe3fe273456b501feba4c20da2fe3b9671092085a991fd35c736a5b64c179a08f54fddd029ac5bd731 SHA512 fd00829f66750d3d54b7bfb472179639fbe453840e7c3056b406af546acb952d3fb8d4552973a68ff0966f25bead8dfd4501888cbd68721e54207b5a7628ac36
@@ -0,0 +1,76 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{5,6} )
inherit distutils-r1 versionator
MY_P="${PN}-$(replace_version_separator 3 -)"
DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio"
HOMEPAGE="https://pypi.org/project/autobahn/
https://crossbar.io/autobahn/
https://github.com/crossbario/autobahn-python"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="crypt test"
RDEPEND="
$(python_gen_cond_dep '>=dev-python/trollius-2.0[${PYTHON_USEDEP}]' 'python2_7')
$(python_gen_cond_dep '>=dev-python/futures-3.0.4[${PYTHON_USEDEP}]' 'python2_7')
>=dev-python/cbor-1.0.0[${PYTHON_USEDEP}]
>=dev-python/lz4-0.7.0[${PYTHON_USEDEP}]
>=dev-python/py-ubjson-0.8.4[${PYTHON_USEDEP}]
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
>=dev-python/snappy-0.5[${PYTHON_USEDEP}]
>=dev-python/twisted-16.6.0-r2[${PYTHON_USEDEP}]
>=dev-python/txaio-2.7.0[${PYTHON_USEDEP}]
>=dev-python/u-msgpack-2.1[${PYTHON_USEDEP}]
>=dev-python/wsaccel-0.6.2[${PYTHON_USEDEP}]
>=dev-python/zope-interface-3.6[${PYTHON_USEDEP}]
crypt? (
>=dev-python/pyopenssl-16.2.0[${PYTHON_USEDEP}]
>=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}]
>=dev-python/pytrie-0.2[${PYTHON_USEDEP}]
>=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}]
>=dev-python/service_identity-16.0.0
)
"
DEPEND="${RDEPEND}
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
>=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}]
>=dev-python/pytrie-0.2[${PYTHON_USEDEP}]
>=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}]
)"
PATCHES=(
"${FILESDIR}/${P}-Fix-cs-test-955.patch"
)
S="${WORKDIR}"/${MY_P}
python_test() {
echo "Testing all, cryptosign using twisted"
export USE_TWISTED=true
cd "${BUILD_DIR}"/lib || die
py.test -v || die
echo "RE-testing cryptosign using asyncio"
export USE_TWISTED=false
export USE_ASYNCIO=true
py.test -v autobahn/wamp/test/test_cryptosign.py || die
}
pkg_postinst() {
python_foreach_impl twisted-regen-cache || die
}
pkg_postrm() {
python_foreach_impl twisted-regen-cache || die
}
@@ -0,0 +1,95 @@
From 604bc53a3beec173020c944ce9cb38afca2a9126 Mon Sep 17 00:00:00 2001
From: Tobias Oberstein <tobias.oberstein@crossbario.com>
Date: Fri, 9 Mar 2018 10:37:31 +0100
Subject: [PATCH] Fix cs test (#955)
* encode test string
* already an instance
* add extra deps (encryption)
* add extra deps
* deactivate py 3.3, tx < 15.4
* systematic version coverage
* fix coverage (hopefully)
* another try
* actually need to yield, as a future is returned
---
.travis.yml | 58 ++++++++++++++++++++++++++++++++---
Makefile | 3 ++
autobahn/asyncio/rawsocket.py | 2 +-
autobahn/wamp/test/test_cryptosign.py | 18 +++++++++--
tox.ini | 32 ++++++++++---------
5 files changed, 89 insertions(+), 24 deletions(-)
diff --git a/autobahn/asyncio/rawsocket.py b/autobahn/asyncio/rawsocket.py
index 130a8e41..bbb83337 100644
--- a/autobahn/asyncio/rawsocket.py
+++ b/autobahn/asyncio/rawsocket.py
@@ -408,7 +408,7 @@ class WampRawSocketClientProtocol(WampRawSocketMixinGeneral, WampRawSocketMixinA
@property
def serializer_id(self):
if not hasattr(self, '_serializer'):
- self._serializer = self.factory._serializer()
+ self._serializer = self.factory._serializer
return self._serializer.RAWSOCKET_SERIALIZER_ID
def get_channel_id(self, channel_id_type=u'tls-unique'):
diff --git a/autobahn/wamp/test/test_cryptosign.py b/autobahn/wamp/test/test_cryptosign.py
index 700ca3cc..78f8d556 100644
--- a/autobahn/wamp/test/test_cryptosign.py
+++ b/autobahn/wamp/test/test_cryptosign.py
@@ -25,9 +25,21 @@
###############################################################################
from __future__ import absolute_import
+
import hashlib
+import os
+
from mock import Mock
+import txaio
+
+if os.environ.get('USE_TWISTED', False):
+ txaio.use_twisted()
+elif os.environ.get('USE_ASYNCIO', False):
+ txaio.use_asyncio()
+else:
+ raise Exception('no networking framework selected')
+
from autobahn.wamp.cryptosign import _makepad, HAS_CRYPTOSIGN
from autobahn.wamp import types
from autobahn.wamp.auth import create_authenticator
@@ -59,14 +71,14 @@ def setUp(self):
self.key = SigningKey.from_ssh_data(keybody)
self.privkey_hex = self.key._key.encode(encoder=HexEncoder)
m = hashlib.sha256()
- m.update("some TLS message")
+ m.update("some TLS message".encode())
self.channel_id = m.digest()
def test_valid(self):
session = Mock()
session._transport.get_channel_id = Mock(return_value=self.channel_id)
challenge = types.Challenge(u"ticket", dict(challenge="ff" * 32))
- signed = self.key.sign_challenge(session, challenge)
+ signed = yield self.key.sign_challenge(session, challenge)
self.assertEqual(
u'9b6f41540c9b95b4b7b281c3042fa9c54cef43c842d62ea3fd6030fcb66e70b3e80d49d44c29d1635da9348d02ec93f3ed1ef227dfb59a07b580095c2b82f80f9d16ca518aa0c2b707f2b2a609edeca73bca8dd59817a633f35574ac6fd80d00',
signed.result,
@@ -81,7 +93,7 @@ def test_authenticator(self):
session = Mock()
session._transport.get_channel_id = Mock(return_value=self.channel_id)
challenge = types.Challenge(u"cryptosign", dict(challenge="ff" * 32))
- reply = authenticator.on_challenge(session, challenge)
+ reply = yield authenticator.on_challenge(session, challenge)
self.assertEqual(
reply.result,
u'9b6f41540c9b95b4b7b281c3042fa9c54cef43c842d62ea3fd6030fcb66e70b3e80d49d44c29d1635da9348d02ec93f3ed1ef227dfb59a07b580095c2b82f80f9d16ca518aa0c2b707f2b2a609edeca73bca8dd59817a633f35574ac6fd80d00',
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<upstream>
<remote-id type="pypi">autobahn</remote-id>
</upstream>
</pkgmetadata>
+5
View File
@@ -0,0 +1,5 @@
DIST txaio-18.7.1.tar.gz 45587 BLAKE2B c8185eb99752b8cde256cb0177513927e52e599777cf84e05f92dd539d1bf29fcc1b638efb3931f6542fc8cec5cc9af1b7da92799ce009e398b9c43c0eb8899c SHA512 d88cc8862340d269470e91a3e2d60c5c3ca6e169e838069f690e35bbf07d3db516b59e0e76cb83cfd1217ca73c0705fdae451df3d9c69adc421579eb2f1b68d9
DIST txaio-18.8.1.tar.gz 51092 BLAKE2B e22ae7c031e01437856ea9ed7d18c85600b769b1d76d52fb6ba2bf651944556cf8f473984e4befa7c1eeb192e6a6b221c6d3ae43b3914776ef7cdbd1a0d8ab02 SHA512 5aa0024b32211534b0c673da13b092ba08e15195b3b016bc21104618605d5c0b49096fa2795e13d9d5c4247defa1d72f903cbcc8d00a21359825224faab64b64
EBUILD txaio-18.7.1.ebuild 924 BLAKE2B 33cfd8cdb5a016f623087e3e91d266b347d5a0fa461cccdeabf51fc4a5569a3635b620af56d889c8f4c28c7ad16a993616f071d01a4fe36c04d2da14ca2f55f8 SHA512 af15b8c9d4c3c2f3d2bf3c9ae7ec6f94eb755182ea631085df074cc968b3b545722492c91a4280a756dc38e75ac905f9e68fe0c44e3cc3758ce7ac92ad6d03f5
EBUILD txaio-18.8.1.ebuild 924 BLAKE2B 33cfd8cdb5a016f623087e3e91d266b347d5a0fa461cccdeabf51fc4a5569a3635b620af56d889c8f4c28c7ad16a993616f071d01a4fe36c04d2da14ca2f55f8 SHA512 af15b8c9d4c3c2f3d2bf3c9ae7ec6f94eb755182ea631085df074cc968b3b545722492c91a4280a756dc38e75ac905f9e68fe0c44e3cc3758ce7ac92ad6d03f5
MISC metadata.xml 481 BLAKE2B 9806c25f221a04781d9f1c6794e39c6e677a38235f380524d446671b1762dbe05a2aa36dcb050d0e9e982357a70767968d9e360f0190f2a448d2075ee099f17d SHA512 f78e4b43c5f11b9448277e70ac87680b66adf3442d4a6815c0a91b271ed17b37aa059e5d9a7a1c5f2b9963926c93be9b8450f9f923e540fd0bf6b7c19fd322fa
+16
View File
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<herd>python</herd>
<upstream>
<remote-id type="pypi">txaio</remote-id>
<maintainer status="unknown">
<email>autobahnws@googlegroups.com</email>
<name>Crossbar.io Technologies GmbH</name>
</maintainer>
</upstream>
</pkgmetadata>
+36
View File
@@ -0,0 +1,36 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Compatibility API between asyncio/Twisted/Trollius"
HOMEPAGE="https://github.com/crossbario/txaio https://pypi.org/project/txaio/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test doc"
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
DEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
doc? (
>=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}]
>=dev-python/sphinxcontrib-spelling-2.1.2[${PYTHON_USEDEP}]
>=dev-python/sphinx_rtd_theme-0.1.9[${PYTHON_USEDEP}]
)
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}
+36
View File
@@ -0,0 +1,36 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Compatibility API between asyncio/Twisted/Trollius"
HOMEPAGE="https://github.com/crossbario/txaio https://pypi.org/project/txaio/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test doc"
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
DEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
doc? (
>=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}]
>=dev-python/sphinxcontrib-spelling-2.1.2[${PYTHON_USEDEP}]
>=dev-python/sphinx_rtd_theme-0.1.9[${PYTHON_USEDEP}]
)
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}