mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
python-tornado: update to 4.3.
This commit is contained in:
parent
a3de439fc2
commit
e5529b8dbe
3 changed files with 15 additions and 43 deletions
|
@ -1,36 +1,11 @@
|
||||||
diff --git setup.py setup.py
|
--- setup.py.orig 2016-03-27 00:51:03.561989163 -0400
|
||||||
index f09169f..d42c486 100644
|
+++ setup.py 2016-03-27 00:56:28.082046356 -0400
|
||||||
--- setup.py
|
@@ -132,7 +132,7 @@
|
||||||
+++ setup.py
|
|
||||||
@@ -120,7 +120,7 @@ if (platform.python_implementation() == 'CPython' and
|
|
||||||
# Certifi is also optional on 2.7.9+, although making our dependencies
|
# Certifi is also optional on 2.7.9+, although making our dependencies
|
||||||
# conditional on micro version numbers seems like a bad idea
|
# conditional on micro version numbers seems like a bad idea
|
||||||
# until we have more declarative metadata.
|
# until we have more declarative metadata.
|
||||||
- install_requires.append('certifi')
|
- install_requires.append('certifi')
|
||||||
+ pass
|
+ pass
|
||||||
|
if sys.version_info < (3, 5):
|
||||||
|
install_requires.append('backports_abc>=0.4')
|
||||||
kwargs['install_requires'] = install_requires
|
kwargs['install_requires'] = install_requires
|
||||||
|
|
||||||
setup(
|
|
||||||
diff --git tornado/simple_httpclient.py tornado/simple_httpclient.py
|
|
||||||
index f0f73fa..ffe3e40 100644
|
|
||||||
--- tornado/simple_httpclient.py
|
|
||||||
+++ 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):
|
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
diff --git setup.py setup.py
|
--- setup.py.orig 2016-03-27 00:58:07.039283532 -0400
|
||||||
index f09169f..f795807 100644
|
+++ setup.py 2016-03-27 01:00:27.437038804 -0400
|
||||||
--- setup.py
|
@@ -125,7 +125,7 @@
|
||||||
+++ setup.py
|
if sys.version_info < (2, 7):
|
||||||
@@ -121,7 +121,7 @@ def build_extension(self, ext):
|
# Only needed indirectly, for singledispatch.
|
||||||
if setuptools is not None:
|
install_requires.append('ordereddict')
|
||||||
# If setuptools is not available, you're on your own for dependencies.
|
|
||||||
install_requires = []
|
|
||||||
- if sys.version_info < (3, 2):
|
- if sys.version_info < (3, 2):
|
||||||
+ if sys.version_info < (2, 7, 9) or (3, 0) <= 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')
|
install_requires.append('backports.ssl_match_hostname')
|
||||||
kwargs['install_requires'] = install_requires
|
if sys.version_info < (3, 4):
|
||||||
|
install_requires.append('singledispatch')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'python-tornado'
|
# Template file for 'python-tornado'
|
||||||
pkgname=python-tornado
|
pkgname=python-tornado
|
||||||
version=4.2.1
|
version=4.3
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="tornado-${version}"
|
wrksrc="tornado-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -14,7 +14,7 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="http://www.tornadoweb.org/"
|
homepage="http://www.tornadoweb.org/"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
distfiles="${PYPI_SITE}/t/tornado/tornado-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/t/tornado/tornado-${version}.tar.gz"
|
||||||
checksum=a16fcdc4f76b184cb82f4f9eaeeacef6113b524b26a2cb331222e4a7fa6f2969
|
checksum=c9c2d32593d16eedf2cec1b6a41893626a2649b40b21ca9c4cac4243bde2efbf
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# remove shebang
|
# remove shebang
|
||||||
|
|
Loading…
Add table
Reference in a new issue