[Python-modules-commits] [python-tornado] 08/10: merge patched into master
Ondřej Nový
onovy at moszumanska.debian.org
Fri Aug 5 13:23:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
onovy pushed a commit to branch master
in repository python-tornado.
commit 4a63338a4896fc7ff58f0d61a505e5ee7d801076
Merge: a0963f6 e04af85
Author: Ondřej Nový <onovy at debian.org>
Date: Fri Aug 5 15:13:58 2016 +0200
merge patched into master
debian/.git-dpm | 4 +--
...local-objects.inv-for-intersphinx-mapping.patch | 2 +-
debian/patches/disable-domain-tests.patch | 30 ++++++++++++++++++++
debian/patches/domain-test.patch | 33 ----------------------
debian/patches/fix-ftbfs-on-hurd.patch | 2 +-
debian/patches/ignoreuserwarning.patch | 2 +-
debian/patches/series | 2 +-
debian/patches/skip-timing-tests.patch | 2 +-
debian/patches/sockopt.patch | 2 +-
debian/patches/without-certifi.patch | 2 +-
tornado/test/netutil_test.py | 6 ++--
11 files changed, 43 insertions(+), 44 deletions(-)
diff --cc debian/.git-dpm
index 3d516a7,0000000..90d9e32
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
+# see git-dpm(1) from git-dpm package
- a7a36e0c20aadbf8ad4dd91843660919913d39b1
- a7a36e0c20aadbf8ad4dd91843660919913d39b1
++e04af85a7f5919ad748884b2ce8fc146816cbe57
++e04af85a7f5919ad748884b2ce8fc146816cbe57
+78b250c7a19799d2e1ccf68f36725ea2f61bff7b
+78b250c7a19799d2e1ccf68f36725ea2f61bff7b
+python-tornado_4.4.1.orig.tar.gz
+74e6c017e073952febf4341d9d57b4876d2058c1
+481547
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --cc debian/patches/0007-Use-local-objects.inv-for-intersphinx-mapping.patch
index 04dc8b9,0000000..6048b49
mode 100644,000000..100644
--- a/debian/patches/0007-Use-local-objects.inv-for-intersphinx-mapping.patch
+++ b/debian/patches/0007-Use-local-objects.inv-for-intersphinx-mapping.patch
@@@ -1,22 -1,0 +1,22 @@@
- From a7a36e0c20aadbf8ad4dd91843660919913d39b1 Mon Sep 17 00:00:00 2001
++From e04af85a7f5919ad748884b2ce8fc146816cbe57 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ond=C5=99ej=20Nov=C3=BD?= <onovy at debian.org>
+Date: Wed, 3 Aug 2016 19:02:48 +0200
+Subject: Use local objects.inv for intersphinx mapping
+
+---
+ docs/conf.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index a12e7a4..54b55c2 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -93,7 +93,7 @@ extlinks = {
+ }
+
+ intersphinx_mapping = {
+- 'python': ('https://docs.python.org/3.5/', None),
++ 'python': ('/usr/share/doc/python3-doc/html', None),
+ }
+
+ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
diff --cc debian/patches/disable-domain-tests.patch
index 0000000,0000000..e916c78
new file mode 100644
--- /dev/null
+++ b/debian/patches/disable-domain-tests.patch
@@@ -1,0 -1,0 +1,30 @@@
++From 7d809af03ea8b128b7b4e1f63bd758cbb450109f Mon Sep 17 00:00:00 2001
++From: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
++Date: Thu, 8 Oct 2015 13:13:30 -0700
++Subject: Disable domain tests to prevent internet access during build
++
++Patch-Name: disable-domain-tests.patch
++---
++ tornado/test/netutil_test.py | 2 ++
++ 1 file changed, 2 insertions(+)
++
++diff --git a/tornado/test/netutil_test.py b/tornado/test/netutil_test.py
++index 549c4fe..a519bbd 100644
++--- a/tornado/test/netutil_test.py
+++++ b/tornado/test/netutil_test.py
++@@ -51,6 +51,7 @@ class _ResolverTestMixin(object):
++ # It is impossible to quickly and consistently generate an error in name
++ # resolution, so test this case separately, using mocks as needed.
++ class _ResolverErrorTestMixin(object):
+++ @unittest.skip("Prevent internet access during build")
++ def test_bad_host(self):
++ def handler(exc_typ, exc_val, exc_tb):
++ self.stop(exc_val)
++@@ -63,6 +64,7 @@ class _ResolverErrorTestMixin(object):
++ self.assertIsInstance(result, Exception)
++
++ @gen_test
+++ @unittest.skip("Prevent internet access during build")
++ def test_future_interface_bad_host(self):
++ with self.assertRaises(IOError):
++ yield self.resolver.resolve('an invalid domain', 80,
diff --cc debian/patches/fix-ftbfs-on-hurd.patch
index 6475b3c,0000000..e40051c
mode 100644,000000..100644
--- a/debian/patches/fix-ftbfs-on-hurd.patch
+++ b/debian/patches/fix-ftbfs-on-hurd.patch
@@@ -1,28 -1,0 +1,28 @@@
- From dbc66934c194879655b92a64d7578a938faeb37d Mon Sep 17 00:00:00 2001
++From 232b986153b22a05488eb5accc8b7cf9e1860ffd Mon Sep 17 00:00:00 2001
+From: Mattia Rizzolo <mattia at debian.org>
+Date: Sat, 21 May 2016 21:55:27 +0000
+Subject: skip UnixSocketTest on hurd, as unix sockets with SO_REUSEADDR are
+ not supported there
+
+ A little discussion about unix sockets with SO_REUSEADDR can be found on
+ https://lists.gnu.org/archive/html/bug-hurd/2016-01/msg00039.html
+
+Forwarded: no
+Patch-Name: fix-ftbfs-on-hurd.patch
+---
+ tornado/test/httpserver_test.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tornado/test/httpserver_test.py b/tornado/test/httpserver_test.py
+index 27052e6..1e1a561 100644
+--- a/tornado/test/httpserver_test.py
++++ b/tornado/test/httpserver_test.py
+@@ -555,6 +555,8 @@ class ManualProtocolTest(HandlerBaseTestCase):
+
+ @unittest.skipIf(not hasattr(socket, 'AF_UNIX') or sys.platform == 'cygwin',
+ "unix sockets not supported on this platform")
++ at unittest.skipIf(sys.platform == 'gnu0',
++ "unix sockets with SO_REUSEADDR not supported on this platform")
+ class UnixSocketTest(AsyncTestCase):
+ """HTTPServers can listen on Unix sockets too.
+
diff --cc debian/patches/ignoreuserwarning.patch
index fb25bde,0000000..6f638b7
mode 100644,000000..100644
--- a/debian/patches/ignoreuserwarning.patch
+++ b/debian/patches/ignoreuserwarning.patch
@@@ -1,24 -1,0 +1,24 @@@
- From a0ce13e85369c0509d17fb81a3dc21781f81091f Mon Sep 17 00:00:00 2001
++From 05c5cd9c91ca122be960b7730e9412c2d2652659 Mon Sep 17 00:00:00 2001
+From: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
+Date: Thu, 8 Oct 2015 13:13:31 -0700
+Subject: ignore userwarning in tests
+
+ Required to run tests from source with the package already installed.
+ Else one gets check_version_conflict warning from pkg_resources.
+Patch-Name: ignoreuserwarning.patch
+---
+ tornado/test/runtests.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py
+index f4dd46d..a0c8684 100644
+--- a/tornado/test/runtests.py
++++ b/tornado/test/runtests.py
+@@ -101,6 +101,7 @@ def main():
+ # setuptools sometimes gives ImportWarnings about things that are on
+ # sys.path even if they're not being used.
+ warnings.filterwarnings("ignore", category=ImportWarning)
++ warnings.filterwarnings("ignore", category=UserWarning)
+ # Tornado generally shouldn't use anything deprecated, but some of
+ # our dependencies do (last match wins).
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
diff --cc debian/patches/series
index e98898d,0000000..977aefa
mode 100644,000000..100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@@ -1,7 -1,0 +1,7 @@@
- domain-test.patch
++disable-domain-tests.patch
+ignoreuserwarning.patch
+skip-timing-tests.patch
+sockopt.patch
+without-certifi.patch
+fix-ftbfs-on-hurd.patch
+0007-Use-local-objects.inv-for-intersphinx-mapping.patch
diff --cc debian/patches/skip-timing-tests.patch
index 4c92d6b,0000000..1046663
mode 100644,000000..100644
--- a/debian/patches/skip-timing-tests.patch
+++ b/debian/patches/skip-timing-tests.patch
@@@ -1,23 -1,0 +1,23 @@@
- From c651bffda5242c15a9f180cf63139fd71a2c7051 Mon Sep 17 00:00:00 2001
++From f039a5a79a69cb8a597d7369153f11680e9b2142 Mon Sep 17 00:00:00 2001
+From: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
+Date: Thu, 8 Oct 2015 13:13:32 -0700
+Subject: like travis buildd are often slow so skip the same tests
+
+Patch-Name: skip-timing-tests.patch
+---
+ tornado/test/util.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tornado/test/util.py b/tornado/test/util.py
+index 2e3d779..33b9cf0 100644
+--- a/tornado/test/util.py
++++ b/tornado/test/util.py
+@@ -23,7 +23,7 @@ skipIfNonUnix = unittest.skipIf(os.name != 'posix' or sys.platform == 'cygwin',
+
+ # travis-ci.org runs our tests in an overworked virtual machine, which makes
+ # timing-related tests unreliable.
+-skipOnTravis = unittest.skipIf('TRAVIS' in os.environ,
++skipOnTravis = unittest.skipIf(True,
+ 'timing tests unreliable on travis')
+
+ skipOnAppEngine = unittest.skipIf('APPENGINE_RUNTIME' in os.environ,
diff --cc debian/patches/sockopt.patch
index be3585a,0000000..2b0d9e8
mode 100644,000000..100644
--- a/debian/patches/sockopt.patch
+++ b/debian/patches/sockopt.patch
@@@ -1,55 -1,0 +1,55 @@@
- From 380c352c2603c6fc72726f50de08a20f3b6a8820 Mon Sep 17 00:00:00 2001
++From 5f443d85c79709f2835d5d56e514575a7f3460ce Mon Sep 17 00:00:00 2001
+From: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
+Date: Thu, 8 Oct 2015 13:13:33 -0700
+Subject: Ignore ENOPROTOOPT errors from SO_REUSEADDR or SO_ERROR on AF_UNIX
+ sockets, for
+
+systems which do not implement them there.
+Patch-Name: sockopt.patch
+---
+ tornado/iostream.py | 7 ++++++-
+ tornado/netutil.py | 12 ++++++++++--
+ 2 files changed, 16 insertions(+), 3 deletions(-)
+
+diff --git a/tornado/iostream.py b/tornado/iostream.py
+index bcf4441..b5f49fa 100644
+--- a/tornado/iostream.py
++++ b/tornado/iostream.py
+@@ -1174,7 +1174,12 @@ class IOStream(BaseIOStream):
+ return future
+
+ def _handle_connect(self):
+- err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
++ try:
++ err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
++ except socket.error as e:
++ err = e.args[0]
++ if err == errno.ENOPROTOOPT:
++ err = 0
+ if err != 0:
+ self.error = socket.error(err, os.strerror(err))
+ # IOLoop implementations may vary: some of them return
+diff --git a/tornado/netutil.py b/tornado/netutil.py
+index 5cbcdb9..b7113d6 100644
+--- a/tornado/netutil.py
++++ b/tornado/netutil.py
+@@ -169,9 +169,17 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC,
+ raise
+ set_close_exec(sock.fileno())
+ if os.name != 'nt':
+- sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
++ try:
++ sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
++ except socket.error as e:
++ if e.args[0] != errno.ENOPROTOOPT:
++ raise
+ if reuse_port:
+- sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
++ try:
++ sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
++ except socket.error as e:
++ if e.args[0] != errno.ENOPROTOOPT:
++ raise
+ if af == socket.AF_INET6:
+ # On linux, ipv6 sockets accept ipv4 too by default,
+ # but this makes it impossible to bind to both
diff --cc debian/patches/without-certifi.patch
index b1f8dae,0000000..fe09ebd
mode 100644,000000..100644
--- a/debian/patches/without-certifi.patch
+++ b/debian/patches/without-certifi.patch
@@@ -1,91 -1,0 +1,91 @@@
- From 8f700489b5c86a13daca2a42d791783436dd4233 Mon Sep 17 00:00:00 2001
++From 3647bac45c11b815cb1a44fe0682d3c9de61661e Mon Sep 17 00:00:00 2001
+From: Julien Puydt <julien.puydt at laposte.net>
+Date: Thu, 8 Oct 2015 13:13:34 -0700
+Subject: remove dependance on certifi
+
+ Since Debian is a distribution, we know where the certificates are
+ and don't need certifi to find them.
+Forwarded: no
+
+Patch-Name: without-certifi.patch
+---
+ setup.py | 2 +-
+ tornado/netutil.py | 13 ++-----------
+ tornado/simple_httpclient.py | 12 +-----------
+ 3 files changed, 4 insertions(+), 23 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 9eddaef..61ea7f6 100644
+--- a/setup.py
++++ b/setup.py
+@@ -136,7 +136,7 @@ if setuptools is not None:
+ # Certifi is also optional on 2.7.9+, although making our dependencies
+ # conditional on micro version numbers seems like a bad idea
+ # until we have more declarative metadata.
+- install_requires.append('certifi')
++ # install_requires.append('certifi')
+ if sys.version_info < (3, 5):
+ install_requires.append('backports_abc>=0.4')
+ kwargs['install_requires'] = install_requires
+diff --git a/tornado/netutil.py b/tornado/netutil.py
+index b7113d6..d5479ec 100644
+--- a/tornado/netutil.py
++++ b/tornado/netutil.py
+@@ -35,15 +35,6 @@ except ImportError:
+ # ssl is not available on Google App Engine
+ ssl = None
+
+-try:
+- import certifi
+-except ImportError:
+- # certifi is optional as long as we have ssl.create_default_context.
+- if ssl is None or hasattr(ssl, 'create_default_context'):
+- certifi = None
+- else:
+- raise
+-
+ if PY3:
+ xrange = range
+
+@@ -70,7 +61,7 @@ if hasattr(ssl, 'SSLContext'):
+ # Python 3.2-3.3
+ _client_ssl_defaults = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
+ _client_ssl_defaults.verify_mode = ssl.CERT_REQUIRED
+- _client_ssl_defaults.load_verify_locations(certifi.where())
++ _client_ssl_defaults.load_verify_locations('/etc/ssl/certs/ca-certificates.crt')
+ _server_ssl_defaults = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
+ if hasattr(ssl, 'OP_NO_COMPRESSION'):
+ # Disable TLS compression to avoid CRIME and related attacks.
+@@ -81,7 +72,7 @@ if hasattr(ssl, 'SSLContext'):
+ elif ssl:
+ # Python 2.6-2.7.8
+ _client_ssl_defaults = dict(cert_reqs=ssl.CERT_REQUIRED,
+- ca_certs=certifi.where())
++ ca_certs='/etc/ssl/certs/ca-certificates.crt')
+ _server_ssl_defaults = {}
+ else:
+ # Google App Engine
+diff --git a/tornado/simple_httpclient.py b/tornado/simple_httpclient.py
+index 82f8686..ad49675 100644
+--- a/tornado/simple_httpclient.py
++++ b/tornado/simple_httpclient.py
+@@ -34,18 +34,8 @@ except ImportError:
+ # ssl is not available on Google App Engine.
+ ssl = None
+
+-try:
+- import certifi
+-except ImportError:
+- certifi = None
+-
+-
+ def _default_ca_certs():
+- if certifi is None:
+- raise Exception("The 'certifi' package is required to use https "
+- "in simple_httpclient")
+- return certifi.where()
+-
++ return '/etc/ssl/certs/ca-certificates.crt'
+
+ class SimpleAsyncHTTPClient(AsyncHTTPClient):
+ """Non-blocking HTTP client with no external dependencies.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tornado.git
More information about the Python-modules-commits
mailing list