[arch-commits] Commit in python-engineio/trunk (PKGBUILD fix-unittest.patch)

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


    Date: Monday, November 28, 2016 @ 14:31:11
  Author: anthraxx
Revision: 197145

upgpkg: python-engineio 1.1.0-1

Modified:
  python-engineio/trunk/PKGBUILD
Deleted:
  python-engineio/trunk/fix-unittest.patch

--------------------+
 PKGBUILD           |   11 +++--------
 fix-unittest.patch |   32 --------------------------------
 2 files changed, 3 insertions(+), 40 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-28 14:22:33 UTC (rev 197144)
+++ PKGBUILD	2016-11-28 14:31:11 UTC (rev 197145)
@@ -2,7 +2,7 @@
 
 pkgbase=python-engineio
 pkgname=('python-engineio' 'python2-engineio')
-pkgver=1.0.3
+pkgver=1.1.0
 pkgrel=1
 pkgdesc='Python implementation of the Engine.IO realtime server'
 url='https://github.com/miguelgrinberg/python-engineio'
@@ -13,15 +13,10 @@
 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')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/python-engineio/archive/v${pkgver}.tar.gz)
+sha512sums=('38f8785c82695ffcdd81c8c58bf7ab4bcc719e19f2f295e21ea5b8fd438ea7fa94fc73de9211c119797265db722a528bf187a6db5f16523ebb82efc622229a37')
 
 prepare() {
-  (cd ${pkgbase}-${pkgver}
-    patch -p1 < "${srcdir}/fix-unittest.patch"
-  )
   cp -ra ${pkgbase}-${pkgver}{,-py2}
 }
 

Deleted: fix-unittest.patch
===================================================================
--- fix-unittest.patch	2016-11-28 14:22:33 UTC (rev 197144)
+++ fix-unittest.patch	2016-11-28 14:31:11 UTC (rev 197145)
@@ -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