author | Felix Yan
<felixonmars@archlinux.org> 2016-07-17 02:56:52 UTC |
committer | Felix Yan
<felixonmars@archlinux.org> 2016-07-17 02:56:52 UTC |
parent | da6e01e1fb04d89d0bf4eed67c03c31486ed39e2 |
0001-use_system_ca_certificates.patch | +1 | -24 |
0002-get-rid-of-backports-ssl-match-hostname.patch | +0 | -23 |
0003-support-monotonic.patch | +0 | -52 |
PKGBUILD | +3 | -9 |
diff --git a/0001-use_system_ca_certificates.patch b/0001-use_system_ca_certificates.patch index 84d0c10..1ade149 100644 --- a/0001-use_system_ca_certificates.patch +++ b/0001-use_system_ca_certificates.patch @@ -10,27 +10,4 @@ index f09169f..d42c486 100644 + pass if sys.version_info < (3, 5): install_requires.append('backports_abc>=0.4') - kwargs['install_requires'] = install_requires -diff --git a/tornado/simple_httpclient.py b/tornado/simple_httpclient.py -index f0f73fa..ffe3e40 100644 ---- a/tornado/simple_httpclient.py -+++ b/tornado/simple_httpclient.py -@@ -33,17 +33,9 @@ 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): + kwargs['install_requires'] = install_requires \ No newline at end of file diff --git a/0002-get-rid-of-backports-ssl-match-hostname.patch b/0002-get-rid-of-backports-ssl-match-hostname.patch deleted file mode 100644 index a0fbd73..0000000 --- a/0002-get-rid-of-backports-ssl-match-hostname.patch +++ /dev/null @@ -1,23 +0,0 @@ -From f8f2ffca1928aeca2fa9771093436dba49baa538 Mon Sep 17 00:00:00 2001 -From: Felix Yan <felixonmars@gmail.com> -Date: Fri, 12 Dec 2014 23:10:15 +0800 -Subject: [PATCH] Don't depend on backports.ssl-match-hostname with python - >=2.7.9, <3.0 - ---- - setup.py | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/setup.py b/setup.py -index f09169f..f795807 100644 ---- a/setup.py -+++ b/setup.py -@@ -121,7 +121,7 @@ def build_extension(self, ext): - if sys.version_info < (2, 7): - # Only needed indirectly, for singledispatch. - install_requires.append('ordereddict') -- if sys.version_info < (3, 2): -+ if sys.version_info < (2, 7, 9) or (3, 0) <= sys.version_info < (3, 2): - install_requires.append('backports.ssl_match_hostname') - if sys.version_info < (3, 4): - install_requires.append('singledispatch') \ No newline at end of file diff --git a/0003-support-monotonic.patch b/0003-support-monotonic.patch deleted file mode 100644 index 28ed4a1..0000000 --- a/0003-support-monotonic.patch +++ /dev/null @@ -1,52 +0,0 @@ -commit 7861716d2315606b03c4126505d6b158640218aa -Author: Felix Yan <felixonmars@archlinux.org> -Date: Sat Nov 7 13:53:09 2015 +0800 - - Add monotonic as an alternative to Monotime - -diff --git a/docs/index.rst b/docs/index.rst -index e4a4d80..14f9af6 100644 ---- a/docs/index.rst -+++ b/docs/index.rst -@@ -100,6 +100,8 @@ the following optional packages may be useful: - * `Monotime <https://pypi.python.org/pypi/Monotime>`_ adds support for - a monotonic clock, which improves reliability in environments - where clock adjustments are frequent. No longer needed in Python 3.3. -+* `monotonic <https://pypi.python.org/pypi/monotonic>`_ adds support for -+ a monotonic clock. Alternative to Monotime. No longer needed in Python 3.3. - - **Platforms**: Tornado should run on any Unix-like platform, although - for the best performance and scalability only Linux (with ``epoll``) -diff --git a/tornado/platform/auto.py b/tornado/platform/auto.py -index fc40c9d..449b634 100644 ---- a/tornado/platform/auto.py -+++ b/tornado/platform/auto.py -@@ -47,8 +47,13 @@ try: - except ImportError: - pass - try: -- from time import monotonic as monotonic_time -+ # monotonic can provide a monotonic function in versions of python before -+ # 3.3, too. -+ from monotonic import monotonic as monotonic_time - except ImportError: -- monotonic_time = None -+ try: -+ from time import monotonic as monotonic_time -+ except ImportError: -+ monotonic_time = None - - __all__ = ['Waker', 'set_close_exec', 'monotonic_time'] -diff --git a/tox.ini b/tox.ini -index 82b156d..6f74a74 100644 ---- a/tox.ini -+++ b/tox.ini -@@ -85,7 +85,7 @@ deps = - {py2,py27,pypy,py3,py33}-full: singledispatch - py33-asyncio: asyncio - trollius: trollius -- py2-monotonic: Monotime -+ py2-monotonic: monotonic - sphinx: sphinx - sphinx: sphinx_rtd_theme - diff --git a/PKGBUILD b/PKGBUILD index 265558f..28fb7e3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ # Contributor: Thomas Dziedzic < gostrc at gmail > pkgname=('python-tornado' 'python2-tornado') -pkgver=4.3.0 +pkgver=4.4.0 pkgrel=1 pkgdesc='open source version of the scalable, non-blocking web server and tools' arch=('i686' 'x86_64') @@ -13,19 +13,13 @@ checkdepends=('python-pycurl' 'python2-pycurl' 'python-mock' 'python2-mock' 'pyt 'python2-twisted' 'python2-futures' 'python2-singledispatch' 'python2-backports-abc' 'python2-trollius' 'python2-monotonic') source=("git+https://github.com/tornadoweb/tornado.git#tag=v$pkgver" - 0001-use_system_ca_certificates.patch - 0002-get-rid-of-backports-ssl-match-hostname.patch - 0003-support-monotonic.patch) + 0001-use_system_ca_certificates.patch) sha512sums=('SKIP' - 'cf3dbed20b0bb78cdaa16d4141adc7e12e0b5fd339d2ee9edb5d618dd1c87a643b6ecee19455235b1df712154ce83a1f4149c5579a5a1df5bdf2cd865c766b66' - '4a1a3e83214c9243ac7bd7ca141b25a41279ee25ed1400f7b25259329c52c7c625a8b5724d60b83af170643ae7258fd56f42e2d19c85929d77378f70a4d2205a' - '4dc30c12a6b454a517ee19ca84f71d1733d41b089399102827c0c9e629b26fec415df9eaf6b43ecbe495cbb5b7b938d5f157c8cb617e9daceff3c15739b7f647') + 'a6422735bdce26246088d38aec55042627a1800329847aba54ca85453dcefcdde631519b57088dd441a42a4c341e7f07c73ab6b73d8404869b67ee4107bde912') prepare() { cd tornado patch -p1 -i ../0001-use_system_ca_certificates.patch - patch -p1 -i ../0002-get-rid-of-backports-ssl-match-hostname.patch - patch -p1 -i ../0003-support-monotonic.patch cd "$srcdir" cp -a tornado{,-py2}