git » python-tornado.git » commit 5911930

upgpkg: 4.2.0-1

author Felix Yan
2015-05-27 08:22:05 UTC
committer Felix Yan
2015-05-27 08:22:05 UTC
parent 07c601288690725fe603783fc523019d8beba412

upgpkg: 4.2.0-1

0001-use_system_ca_certificates.patch +7 -28
PKGBUILD +3 -3

diff --git a/0001-use_system_ca_certificates.patch b/0001-use_system_ca_certificates.patch
index 23a0f13..823826b 100644
--- a/0001-use_system_ca_certificates.patch
+++ b/0001-use_system_ca_certificates.patch
@@ -3,14 +3,14 @@ index f09169f..d42c486 100644
 --- a/setup.py
 +++ b/setup.py
 @@ -120,7 +120,7 @@ if (platform.python_implementation() == 'CPython' and
- 
- if setuptools is not None:
-     # If setuptools is not available, you're on your own for dependencies.
--    install_requires = ['certifi']
-+    install_requires = []
-     if sys.version_info < (3, 2):
-         install_requires.append('backports.ssl_match_hostname')
+         # 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')
++        pass
      kwargs['install_requires'] = install_requires
+ 
+ setup(
 diff --git a/tornado/simple_httpclient.py b/tornado/simple_httpclient.py
 index f0f73fa..ffe3e40 100644
 --- a/tornado/simple_httpclient.py
@@ -34,24 +34,3 @@ index f0f73fa..ffe3e40 100644
  
  
  class SimpleAsyncHTTPClient(AsyncHTTPClient):
-diff --git a/tornado/test/iostream_test.py b/tornado/test/iostream_test.py
-index 01b0d95..47a64e7 100644
---- a/tornado/test/iostream_test.py
-+++ b/tornado/test/iostream_test.py
-@@ -10,7 +10,6 @@ from tornado.stack_context import NullContext
- from tornado.testing import AsyncHTTPTestCase, AsyncHTTPSTestCase, AsyncTestCase, bind_unused_port, ExpectLog, gen_test
- from tornado.test.util import unittest, skipIfNonUnix
- from tornado.web import RequestHandler, Application
--import certifi
- import errno
- import logging
- import os
-@@ -855,7 +854,7 @@ class TestIOStreamStartTLS(AsyncTestCase):
-     def test_handshake_fail(self):
-         self.server_start_tls(_server_ssl_options())
-         client_future = self.client_start_tls(
--            dict(cert_reqs=ssl.CERT_REQUIRED, ca_certs=certifi.where()))
-+            dict(cert_reqs=ssl.CERT_REQUIRED, ca_certs="/etc/ssl/certs/ca-certificates.crt"))
-         with ExpectLog(gen_log, "SSL Error"):
-             with self.assertRaises(ssl.SSLError):
-                 yield client_future
diff --git a/PKGBUILD b/PKGBUILD
index 8fbe6d7..61a7771 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
 # Contributor: Thomas Dziedzic < gostrc at gmail >
 
 pkgname=('python-tornado' 'python2-tornado')
-pkgver=4.1.0
-pkgrel=2
+pkgver=4.2.0
+pkgrel=1
 pkgdesc='open source version of the scalable, non-blocking web server and tools'
 arch=('i686' 'x86_64')
 url='http://www.tornadoweb.org/'
@@ -14,7 +14,7 @@ source=("git+https://github.com/facebook/tornado.git#tag=v$pkgver"
         0001-use_system_ca_certificates.patch
         0002-get-rid-of-backports-ssl-match-hostname.patch)
 sha512sums=('SKIP'
-            '6e50e9ecf361d54d9f67e1f12185cf58863ad0eae72fbe7cc24e8eaf94874255009a030249bb51adf06e98c7ed0b17d8c6d9ee65190ebc341d6857c0efbc7840'
+            '7d484e811c7de62d2f2d38595abc5edf8f6cbdfc8a983229d4ad6b67cadf00f101acaee88bfa4337b14b5a234ebaacc72036ccafca3596eac5f64298a1e30d54'
             '798f1c5f659138aa4d775edde7c962ec6410671f528b7ec44ca12ac342ddf9ec51d998c676b9025292a58c2140ba8492fcc76759b63adaf08320f96b11bcbfea')
 
 prepare() {