Date: Friday, November 13, 2020 @ 17:24:35 Author: foutrelis Revision: 753939
archrelease: copy trunk to community-staging-any Added: python-jsonrpc-server/repos/community-staging-any/PKGBUILD (from rev 753938, python-jsonrpc-server/trunk/PKGBUILD) python-jsonrpc-server/repos/community-staging-any/fix-test.patch (from rev 753938, python-jsonrpc-server/trunk/fix-test.patch) Deleted: python-jsonrpc-server/repos/community-staging-any/PKGBUILD python-jsonrpc-server/repos/community-staging-any/fix-test.patch ----------------+ PKGBUILD | 82 +++++++++++++++++++++++++++---------------------------- fix-test.patch | 31 ++++++++------------ 2 files changed, 53 insertions(+), 60 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-11-13 17:24:30 UTC (rev 753938) +++ PKGBUILD 2020-11-13 17:24:35 UTC (rev 753939) @@ -1,41 +0,0 @@ -# Maintainer: Maxim Baz <$pkgname at maximbaz dot com> -# Maintainer: Morten Linderud <foxbo...@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/PKGBUILD (from rev 753938, python-jsonrpc-server/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-11-13 17:24:35 UTC (rev 753939) @@ -0,0 +1,41 @@ +# Maintainer: Maxim Baz <$pkgname at maximbaz dot com> +# Maintainer: Morten Linderud <foxbo...@archlinux.org> +# Contributor: fenuks + +pkgname=python-jsonrpc-server +pkgver=0.4.0 +pkgrel=3 +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' + '7f6dcef7052f666bafccaa2d43c037a511aaad8ee289fb65130eae809cf88072') + +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: Deleted: fix-test.patch =================================================================== --- fix-test.patch 2020-11-13 17:24:30 UTC (rev 753938) +++ fix-test.patch 2020-11-13 17:24:35 UTC (rev 753939) @@ -1,19 +0,0 @@ -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' -+ ) Copied: python-jsonrpc-server/repos/community-staging-any/fix-test.patch (from rev 753938, python-jsonrpc-server/trunk/fix-test.patch) =================================================================== --- fix-test.patch (rev 0) +++ fix-test.patch 2020-11-13 17:24:35 UTC (rev 753939) @@ -0,0 +1,12 @@ +diff --git a/test/test_streams.py b/test/test_streams.py +index 6985aec..9e64489 100644 +--- a/test/test_streams.py ++++ b/test/test_streams.py +@@ -119,6 +119,7 @@ def test_writer_bad_message(wfile, writer): + hour=1, + minute=1, + second=1, ++ tzinfo=datetime.timezone.utc + )) + + assert wfile.getvalue() in [