[arch-commits] Commit in python-treq/trunk (PKGBUILD py3.7.diff)

Jan Steffens heftig at archlinux.org
Sun Jul 29 16:39:18 UTC 2018


    Date: Sunday, July 29, 2018 @ 16:39:18
  Author: heftig
Revision: 364856

18.6.0-2: python 3.7

Added:
  python-treq/trunk/py3.7.diff
Modified:
  python-treq/trunk/PKGBUILD

------------+
 PKGBUILD   |    9 ++++++---
 py3.7.diff |   17 +++++++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-29 16:37:00 UTC (rev 364855)
+++ PKGBUILD	2018-07-29 16:39:18 UTC (rev 364856)
@@ -4,7 +4,7 @@
 pkgbase=python-treq
 pkgname=('python-treq' 'python2-treq')
 pkgver=18.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A requests-like API built on top of twisted.web's Agent"
 arch=('any')
 license=('MIT')
@@ -15,10 +15,13 @@
              'python-attrs' 'python2-attrs' 'python-twisted' 'python2-twisted' 'httpbin'
              'python2-httpbin')
 checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/treq/archive/release-$pkgver.tar.gz")
-sha512sums=('1d0d793725647c6b451853f166436040e49095fca43f6c74053f3ba18ec8f8ae0095ed78c7d141cc95dfba9674339ac44262943225bec7be0f0cb05253758688')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/treq/archive/release-$pkgver.tar.gz"
+        py3.7.diff)
+sha512sums=('1d0d793725647c6b451853f166436040e49095fca43f6c74053f3ba18ec8f8ae0095ed78c7d141cc95dfba9674339ac44262943225bec7be0f0cb05253758688'
+            '6806e8186c8742ac3c40e71d4e14b25b96d198995f03a8730755b3594b4a9e854fd799ceec4d6799571e14e02bca2d3797658b2f2eba38b76a8660156e44c84e')
 
 prepare() {
+  patch -d treq-release-$pkgver -p1 < py3.7.diff
   cp -a treq-release-$pkgver{,-py2}
 }
 

Added: py3.7.diff
===================================================================
--- py3.7.diff	                        (rev 0)
+++ py3.7.diff	2018-07-29 16:39:18 UTC (rev 364856)
@@ -0,0 +1,17 @@
+diff -u -r treq-release-18.6.0/src/treq/test/test_multipart.py treq-release-18.6.0-py3.7/src/treq/test/test_multipart.py
+--- treq-release-18.6.0/src/treq/test/test_multipart.py	2018-06-29 07:26:36.000000000 +0200
++++ treq-release-18.6.0-py3.7/src/treq/test/test_multipart.py	2018-07-29 18:37:15.842395815 +0200
+@@ -594,8 +594,11 @@
+             )
+         )
+ 
+-        form = cgi.parse_multipart(BytesIO(output), {"boundary": b"heyDavid"})
+-        self.assertEqual(set([b'just a string\r\n', b'another string']),
++        form = cgi.parse_multipart(BytesIO(output), {
++            "boundary": b"heyDavid",
++            "CONTENT-LENGTH": str(len(output)),
++        })
++        self.assertEqual(set(['just a string\r\n', 'another string']),
+                          set(form['cfield']))
+ 
+         self.assertEqual(set([b'my lovely bytes2']), set(form['efield']))



More information about the arch-commits mailing list