[arch-commits] Commit in python-engineio/repos/community-any (3 files)

Levente Polyak anthraxx at archlinux.org
Mon Nov 28 14:31:22 UTC 2016


    Date: Monday, November 28, 2016 @ 14:31:21
  Author: anthraxx
Revision: 197146

archrelease: copy trunk to community-any

Added:
  python-engineio/repos/community-any/PKGBUILD
    (from rev 197145, python-engineio/trunk/PKGBUILD)
Deleted:
  python-engineio/repos/community-any/PKGBUILD
  python-engineio/repos/community-any/fix-unittest.patch

--------------------+
 PKGBUILD           |  135 ++++++++++++++++++++++++---------------------------
 fix-unittest.patch |   32 ------------
 2 files changed, 65 insertions(+), 102 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-28 14:31:11 UTC (rev 197145)
+++ PKGBUILD	2016-11-28 14:31:21 UTC (rev 197146)
@@ -1,70 +0,0 @@
-# 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/PKGBUILD (from rev 197145, python-engineio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-11-28 14:31:21 UTC (rev 197146)
@@ -0,0 +1,65 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=python-engineio
+pkgname=('python-engineio' 'python2-engineio')
+pkgver=1.1.0
+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=('38f8785c82695ffcdd81c8c58bf7ab4bcc719e19f2f295e21ea5b8fd438ea7fa94fc73de9211c119797265db722a528bf187a6db5f16523ebb82efc622229a37')
+
+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:

Deleted: fix-unittest.patch
===================================================================
--- fix-unittest.patch	2016-11-28 14:31:11 UTC (rev 197145)
+++ fix-unittest.patch	2016-11-28 14:31:21 UTC (rev 197146)
@@ -1,32 +0,0 @@
-From aab2182cea4f4fd3c64b512b443d6f0f3f35a5a9 Mon Sep 17 00:00:00 2001
-From: Miguel Grinberg <miguelgrinberg50 at 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')



More information about the arch-commits mailing list