[arch-commits] Commit in python-jsonrpc-server/repos (3 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 20:13:28 UTC 2020


    Date: Monday, November 9, 2020 @ 20:13:27
  Author: felixonmars
Revision: 748160

archrelease: copy trunk to community-staging-any

Added:
  python-jsonrpc-server/repos/community-staging-any/
  python-jsonrpc-server/repos/community-staging-any/PKGBUILD
    (from rev 748157, python-jsonrpc-server/trunk/PKGBUILD)
  python-jsonrpc-server/repos/community-staging-any/fix-test.patch
    (from rev 748157, python-jsonrpc-server/trunk/fix-test.patch)

----------------+
 PKGBUILD       |   41 +++++++++++++++++++++++++++++++++++++++++
 fix-test.patch |   19 +++++++++++++++++++
 2 files changed, 60 insertions(+)

Copied: python-jsonrpc-server/repos/community-staging-any/PKGBUILD (from rev 748157, python-jsonrpc-server/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 20:13:27 UTC (rev 748160)
@@ -0,0 +1,41 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: fenuks
+
+pkgname=python-jsonrpc-server
+pkgver=0.4.0
+pkgrel=2
+pkgdesc="Python library implementing asynchronous JSON RPC server"
+arch=("any")
+url="https://github.com/palantir/python-jsonrpc-server"
+license=("MIT")
+depends=("python" "python-future" "python-ujson")
+makedepends=("python" "python-setuptools")
+checkdepends=("python-pytest" "python-pytest-runner" "python-pytest-cov"  "python-pyflakes" "python-mock")
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+        "fix-test.patch")
+sha256sums=('62c543e541f101ec5b57dc654efc212d2c2e3ea47ff6f54b2e7dcb36ecf20595'
+            'ad8dfe322b5d1f29db6da44f1346f2a900d046d2163241c1e312bfd7c54b5155')
+
+prepare(){
+    cd "${pkgname}-${pkgver}"
+    patch -p1 -i ../fix-test.patch
+}
+
+build() {
+    cd "${pkgname}-${pkgver}"
+    python setup.py build
+}
+
+check() {
+    cd "${pkgname}-${pkgver}"
+    py.test
+}
+
+package() {
+    cd "${pkgname}-${pkgver}"
+    python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=4 sw=4 et:

Copied: python-jsonrpc-server/repos/community-staging-any/fix-test.patch (from rev 748157, python-jsonrpc-server/trunk/fix-test.patch)
===================================================================
--- community-staging-any/fix-test.patch	                        (rev 0)
+++ community-staging-any/fix-test.patch	2020-11-09 20:13:27 UTC (rev 748160)
@@ -0,0 +1,19 @@
+diff --git a/test/test_streams.py b/test/test_streams.py
+index 6985aec..8b292f9 100644
+--- a/test/test_streams.py
++++ b/test/test_streams.py
+@@ -121,10 +121,10 @@ def test_writer_bad_message(wfile, writer):
+         second=1,
+     ))
+ 
+-    assert wfile.getvalue() in [
+-        b'',
++    assert wfile.getvalue() == (
++        b''
+         b'Content-Length: 10\r\n'
+         b'Content-Type: application/vscode-jsonrpc; charset=utf8\r\n'
+         b'\r\n'
+-        b'1546304461'
+-    ]
++        b'1546300861'
++        )



More information about the arch-commits mailing list