Date: Wednesday, September 28, 2016 @ 19:36:37 Author: anthraxx Revision: 190741
archrelease: copy trunk to community-any Added: python-engineio/repos/community-any/PKGBUILD (from rev 190740, python-engineio/trunk/PKGBUILD) python-engineio/repos/community-any/fix-unittest.patch (from rev 190740, python-engineio/trunk/fix-unittest.patch) Deleted: python-engineio/repos/community-any/PKGBUILD --------------------+ PKGBUILD | 135 ++++++++++++++++++++++++++------------------------- fix-unittest.patch | 32 ++++++++++++ 2 files changed, 102 insertions(+), 65 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-09-28 19:36:24 UTC (rev 190740) +++ PKGBUILD 2016-09-28 19:36:37 UTC (rev 190741) @@ -1,65 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> - -pkgbase=python-engineio -pkgname=('python-engineio' 'python2-engineio') -pkgver=0.9.2 -pkgrel=1 -pkgdesc='Python implementation of the Engine.IO realtime server' -url='https://github.com/miguelgrinberg/python-engineio' -arch=('any') -license=('MIT') -makedepends=('python-setuptools' 'python-sphinx' 'python-six' - 'python2-setuptools' 'python2-sphinx' 'python2-six') -checkdepends=('python-mock' 'python-eventlet' 'python-pytest' - 'python2-mock' 'python2-eventlet' 'python2-pytest') -options=('!makeflags') -source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/python-engineio/archive/v${pkgver}.tar.gz) -sha512sums=('b60571af0a443b9fe0429857f814180d7ce3aebef9be58fadebab1ff0913dd36d605a8395f6e1d2f90f9c11e3238f7b6b06ec7197aa769160cf9e66f0850e361') - -prepare() { - cp -ra ${pkgbase}-${pkgver}{,-py2} -} - -build() { - (cd ${pkgbase}-${pkgver} - python setup.py build - make -C docs man text SPHINXBUILD=sphinx-build - ) - (cd ${pkgbase}-${pkgver}-py2 - python2 setup.py build - make -C docs man text SPHINXBUILD=sphinx-build2 - ) -} - -check() { - (cd ${pkgbase}-${pkgver} - py.test - ) - (cd ${pkgbase}-${pkgver}-py2 - py.test2 - ) -} - -package_python-engineio() { - depends=('python-six') - - cd ${pkgbase}-${pkgver} - python setup.py install -O1 --root="${pkgdir}" --skip-build - install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README" - install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION" - install -Dm 644 docs/_build/man/engineio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1" -} - -package_python2-engineio() { - depends=('python2-six') - - cd ${pkgbase}-${pkgver}-py2 - python2 setup.py install -O1 --root="${pkgdir}" --skip-build - install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README" - install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION" - install -Dm 644 docs/_build/man/engineio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1" -} - -# vim: ts=2 sw=2 et: Copied: python-engineio/repos/community-any/PKGBUILD (from rev 190740, python-engineio/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-09-28 19:36:37 UTC (rev 190741) @@ -0,0 +1,70 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +pkgbase=python-engineio +pkgname=('python-engineio' 'python2-engineio') +pkgver=1.0.3 +pkgrel=1 +pkgdesc='Python implementation of the Engine.IO realtime server' +url='https://github.com/miguelgrinberg/python-engineio' +arch=('any') +license=('MIT') +makedepends=('python-setuptools' 'python-sphinx' 'python-six' + 'python2-setuptools' 'python2-sphinx' 'python2-six') +checkdepends=('python-mock' 'python-eventlet' 'python-pytest' + 'python2-mock' 'python2-eventlet' 'python2-pytest') +options=('!makeflags') +source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/python-engineio/archive/v${pkgver}.tar.gz + fix-unittest.patch) +sha512sums=('0b1820fae7431c82ee723fc626555bb0696b2d50db9f86b83c20487345b5fdfecc871420e2f39b5171af0369fd4b0f2e84f155764c5b2c35904028b551b5a18a' + '1c96638b93a88c325fad9228f3e24ee96625e7624ca15336bff3816f03168e42e102c4f668aaad1f0d82f65d9c948afbaf81803a99b98360df745f78fb456242') + +prepare() { + (cd ${pkgbase}-${pkgver} + patch -p1 < "${srcdir}/fix-unittest.patch" + ) + cp -ra ${pkgbase}-${pkgver}{,-py2} +} + +build() { + (cd ${pkgbase}-${pkgver} + python setup.py build + make -C docs man text SPHINXBUILD=sphinx-build + ) + (cd ${pkgbase}-${pkgver}-py2 + python2 setup.py build + make -C docs man text SPHINXBUILD=sphinx-build2 + ) +} + +check() { + (cd ${pkgbase}-${pkgver} + py.test + ) + (cd ${pkgbase}-${pkgver}-py2 + py.test2 + ) +} + +package_python-engineio() { + depends=('python-six') + + cd ${pkgbase}-${pkgver} + python setup.py install -O1 --root="${pkgdir}" --skip-build + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README" + install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION" + install -Dm 644 docs/_build/man/engineio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1" +} + +package_python2-engineio() { + depends=('python2-six') + + cd ${pkgbase}-${pkgver}-py2 + python2 setup.py install -O1 --root="${pkgdir}" --skip-build + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README" + install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION" + install -Dm 644 docs/_build/man/engineio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1" +} + +# vim: ts=2 sw=2 et: Copied: python-engineio/repos/community-any/fix-unittest.patch (from rev 190740, python-engineio/trunk/fix-unittest.patch) =================================================================== --- fix-unittest.patch (rev 0) +++ fix-unittest.patch 2016-09-28 19:36:37 UTC (rev 190741) @@ -0,0 +1,32 @@ +From aab2182cea4f4fd3c64b512b443d6f0f3f35a5a9 Mon Sep 17 00:00:00 2001 +From: Miguel Grinberg <miguelgrinber...@gmail.com> +Date: Sun, 4 Sep 2016 23:27:40 -0700 +Subject: [PATCH] fix unit test to work on python 2.7 + +--- + tests/test_payload.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tests/test_payload.py b/tests/test_payload.py +index 5c34c9f..642feb6 100644 +--- a/tests/test_payload.py ++++ b/tests/test_payload.py +@@ -53,15 +53,15 @@ def test_decode_invalid_payload(self): + def test_decode_double_encoded_utf8_payload(self): + p = payload.Payload(encoded_payload=b'3:4\xc3\x83\xc2\xa9') + self.assertEqual(len(p.packets), 1) +- self.assertEqual(p.packets[0].data, 'é') ++ self.assertEqual(p.packets[0].data.encode('utf-8'), b'\xc3\xa9') + + def test_decode_double_encoded_utf8_multi_payload(self): + p = payload.Payload(encoded_payload=b'3:4\xc3\x83\xc2\xa94:4abc') + self.assertEqual(len(p.packets), 2) +- self.assertEqual(p.packets[0].data, 'é') ++ self.assertEqual(p.packets[0].data.encode('utf-8'), b'\xc3\xa9') + self.assertEqual(p.packets[1].data, 'abc') + + def test_decode_single_encoded_utf8_payload(self): + p = payload.Payload(encoded_payload=b'3:4\xc3\xa9') + self.assertEqual(len(p.packets), 1) +- self.assertEqual(p.packets[0].data, 'é') ++ self.assertEqual(p.packets[0].data.encode('utf-8'), b'\xc3\xa9')