[arch-commits] Commit in python-autobahn/repos/community-x86_64 (3 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Sun May 12 12:19:22 UTC 2019


    Date: Sunday, May 12, 2019 @ 12:19:22
  Author: yan12125
Revision: 466339

archrelease: copy trunk to community-x86_64

Added:
  python-autobahn/repos/community-x86_64/PKGBUILD
    (from rev 466338, python-autobahn/trunk/PKGBUILD)
Deleted:
  python-autobahn/repos/community-x86_64/PKGBUILD
  python-autobahn/repos/community-x86_64/skip-test-missing-serializers.patch

-------------------------------------+
 PKGBUILD                            |   91 ++++++++++++++++------------------
 skip-test-missing-serializers.patch |   34 ------------
 2 files changed, 44 insertions(+), 81 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-12 12:19:05 UTC (rev 466338)
+++ PKGBUILD	2019-05-12 12:19:22 UTC (rev 466339)
@@ -1,47 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-# Maintainer: Anatol Pomozov
-
-pkgname=python-autobahn
-pkgver=19.3.3
-pkgrel=1
-pkgdesc='Real-time framework for Web, Mobile & Internet of Things'
-arch=(x86_64)
-url='https://crossbar.io/autobahn/'
-license=(MIT)
-depends=(python-cffi python-twisted python-six python-txaio python-wsaccel)
-makedepends=(python-setuptools python-argon2_cffi python-msgpack python-passlib python-pynacl)
-checkdepends=(python-mock python-pytest python-pytest-asyncio)
-optdepends=(
-  'python-msgpack: MsgPack serializer support'
-  'python-argon2_cffi: WAMP-SCRAM authentication support'
-  'python-passlib: WAMP-SCRAM authentication support'
-  'python-pynacl: WAMP-cryptosign support'
-)
-
-source=(https://pypi.io/packages/source/a/autobahn/autobahn-$pkgver.tar.gz
-        skip-test-missing-serializers.patch)
-sha256sums=('e92f40ab26fb51672c25cd301ae79a549c6ff7748effe6abdea2ef31d5363a4f'
-            '2d4ec4300f98cddd13c3a4d70e6ae4934a98f17b04628cadfd18654172d04f92')
-
-prepare() {
-  cd "$srcdir/autobahn-$pkgver"
-  patch -Np1 -i ../skip-test-missing-serializers.patch
-}
-
-build() {
-  cd "$srcdir/autobahn-$pkgver"
-  AUTOBAHN_USE_NVX=1 python setup.py build
-}
-
-check() {
-  cd "$srcdir/autobahn-$pkgver"
-  USE_TWISTED=1 PYTHONPATH=.:build/lib.linux-$CARCH-3.7 pytest -v autobahn
-  USE_ASYNCIO=1 PYTHONPATH=.:build/lib.linux-$CARCH-3.7 pytest -v autobahn
-}
-
-package() {
-  cd "$srcdir/autobahn-$pkgver"
-  AUTOBAHN_USE_NVX=1 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-autobahn/repos/community-x86_64/PKGBUILD (from rev 466338, python-autobahn/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-05-12 12:19:22 UTC (rev 466339)
@@ -0,0 +1,44 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Maintainer: Anatol Pomozov
+
+pkgname=python-autobahn
+pkgver=19.5.1
+pkgrel=1
+pkgdesc='Real-time framework for Web, Mobile & Internet of Things'
+arch=(x86_64)
+url='https://crossbar.io/autobahn/'
+license=(MIT)
+depends=(python-cffi python-twisted python-six python-txaio python-wsaccel python-setuptools)
+makedepends=(python-argon2_cffi python-cbor python-flatbuffers
+             python-msgpack python-passlib python-pynacl python-ubjson)
+checkdepends=(python-mock python-pytest python-pytest-asyncio)
+optdepends=(
+  'python-cbor: CBOR serializer support'
+  'python-flatbuffers: FlatBuffers serializer support'
+  'python-msgpack: MsgPack serializer support'
+  'python-ubjson: UBJSON serializer support'
+  'python-argon2_cffi: WAMP-SCRAM authentication support'
+  'python-passlib: WAMP-SCRAM authentication support'
+  'python-pynacl: WAMP-cryptosign support'
+)
+
+source=(https://files.pythonhosted.org/packages/source/a/autobahn/autobahn-$pkgver.tar.gz)
+sha256sums=('2eee98f68ba4eb8d8ea3f15e411db9e69433d9367799c85bdca0ff2de4c101d3')
+
+build() {
+  cd "$srcdir/autobahn-$pkgver"
+  AUTOBAHN_USE_NVX=1 python setup.py build
+}
+
+check() {
+  cd "$srcdir/autobahn-$pkgver"
+  USE_TWISTED=1 PYTHONPATH=.:build/lib.linux-$CARCH-3.7 pytest -v autobahn
+  USE_ASYNCIO=1 PYTHONPATH=.:build/lib.linux-$CARCH-3.7 pytest -v autobahn
+}
+
+package() {
+  cd "$srcdir/autobahn-$pkgver"
+  AUTOBAHN_USE_NVX=1 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Deleted: skip-test-missing-serializers.patch
===================================================================
--- skip-test-missing-serializers.patch	2019-05-12 12:19:05 UTC (rev 466338)
+++ skip-test-missing-serializers.patch	2019-05-12 12:19:22 UTC (rev 466339)
@@ -1,34 +0,0 @@
-diff --git a/autobahn/wamp/test/test_serializer.py b/autobahn/wamp/test/test_serializer.py
-index 8e47805c..117df18d 100644
---- a/autobahn/wamp/test/test_serializer.py
-+++ b/autobahn/wamp/test/test_serializer.py
-@@ -129,11 +129,17 @@ def create_serializers():
-     _serializers.append(serializer.MsgPackSerializer())
-     _serializers.append(serializer.MsgPackSerializer(batched=True))
- 
--    _serializers.append(serializer.CBORSerializer())
--    _serializers.append(serializer.CBORSerializer(batched=True))
-+    try:
-+        _serializers.append(serializer.CBORSerializer())
-+        _serializers.append(serializer.CBORSerializer(batched=True))
-+    except AttributeError:
-+        pass
- 
--    _serializers.append(serializer.UBJSONSerializer())
--    _serializers.append(serializer.UBJSONSerializer(batched=True))
-+    try:
-+        _serializers.append(serializer.UBJSONSerializer())
-+        _serializers.append(serializer.UBJSONSerializer(batched=True))
-+    except AttributeError:
-+        pass
- 
-     # FIXME: implement full FlatBuffers serializer for WAMP
-     if six.PY3:
-@@ -146,6 +152,7 @@ def create_serializers():
- 
- 
- @unittest.skipIf(not six.PY3, 'WAMP-FlatBuffers currently only supports Python 3')
-+ at unittest.skipIf(not hasattr(serializer, 'FlatBuffersSerializer'), 'FlatBuffers support missing')
- class TestFlatBuffersSerializer(unittest.TestCase):
- 
-     def test_basic(self):



More information about the arch-commits mailing list