[Python-modules-team] Bug#933684: python-httptools: Please adjust for http-parser 2.9

Christoph Biedl debian.axhn at manchmal.in-ulm.de
Sat Aug 10 09:21:16 BST 2019


Control: tags 933684 + patch
Control: tags 933684 + pending

Dear maintainer,

I've prepared an NMU for python-httptools (versioned as 0.0.11-1.1) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.

Regards.

    Christoph
-------------- next part --------------
diff -Nru python-httptools-0.0.11/debian/changelog python-httptools-0.0.11/debian/changelog
--- python-httptools-0.0.11/debian/changelog	2018-10-20 20:49:40.000000000 +0200
+++ python-httptools-0.0.11/debian/changelog	2019-08-01 21:46:59.000000000 +0200
@@ -1,3 +1,11 @@
+python-httptools (0.0.11-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Cherry-pick "Fix a unittest" to fix build error with
+    http-parser 2.9 (Closes: #933684)
+
+ -- Christoph Biedl <debian.axhn at manchmal.in-ulm.de>  Thu, 01 Aug 2019 21:46:59 +0200
+
 python-httptools (0.0.11-1) unstable; urgency=low
 
   * Initial release (Closes: #911498).
diff -Nru python-httptools-0.0.11/debian/control python-httptools-0.0.11/debian/control
--- python-httptools-0.0.11/debian/control	2018-10-20 20:49:40.000000000 +0200
+++ python-httptools-0.0.11/debian/control	2019-08-01 21:46:59.000000000 +0200
@@ -8,7 +8,7 @@
  cython3,
  debhelper (>= 11),
  dh-python,
- libhttp-parser-dev,
+ libhttp-parser-dev (>= 2.9.2),
  python3-all-dev,
  python3-pytest,
  python3-setuptools,
diff -Nru python-httptools-0.0.11/debian/patches/cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest.patch python-httptools-0.0.11/debian/patches/cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest.patch
--- python-httptools-0.0.11/debian/patches/cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-httptools-0.0.11/debian/patches/cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest.patch	2019-08-01 21:46:59.000000000 +0200
@@ -0,0 +1,21 @@
+Subject: Fix a unittest
+Origin: v0.0.11-6-gebcc0fd <https://github.com/MagicStack/httptools/commit/ebcc0fd>
+Upstream-Author: Yury Selivanov <yury at magic.io>
+Date: Mon Feb 25 14:55:35 2019 -0500
+Bug-Debian: https://bugs.debian.org/933684
+Comment: Picked only the relevant hunk of that commit
+
+--- a/tests/test_parser.py
++++ b/tests/test_parser.py
+@@ -582,9 +582,8 @@
+             (None, None, None, b'/a/b/c', b'b=1&', None, None))
+ 
+     def test_parser_url_2(self):
+-        self.assertEqual(
+-            self.parse(b''),
+-            (None, None, None, None, None, None, None))
++        with self.assertRaises(httptools.HttpParserInvalidURLError):
++            self.parse(b'')
+ 
+     def test_parser_url_3(self):
+         with self.assertRaises(httptools.HttpParserInvalidURLError):
diff -Nru python-httptools-0.0.11/debian/patches/series python-httptools-0.0.11/debian/patches/series
--- python-httptools-0.0.11/debian/patches/series	2018-10-20 20:49:40.000000000 +0200
+++ python-httptools-0.0.11/debian/patches/series	2019-08-01 21:46:59.000000000 +0200
@@ -2,3 +2,4 @@
 0002-Use-http_parser.h-from-distribution-installation.patch
 0003-Fix-unit-tests-on-invalid-data-after-connection-clos.patch
 0004-Do-not-install-package-data.patch
+cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20190810/db8c4713/attachment.sig>


More information about the Python-modules-team mailing list