[arch-commits] Commit in python-tornado/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Nov 4 09:14:57 UTC 2020
Date: Wednesday, November 4, 2020 @ 09:14:57
Author: felixonmars
Revision: 741810
archrelease: copy trunk to community-testing-x86_64
Added:
python-tornado/repos/community-testing-x86_64/
python-tornado/repos/community-testing-x86_64/PKGBUILD
(from rev 741809, python-tornado/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: python-tornado/repos/community-testing-x86_64/PKGBUILD (from rev 741809, python-tornado/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-11-04 09:14:57 UTC (rev 741810)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+
+pkgname=python-tornado
+pkgver=6.1.0
+pkgrel=1
+pkgdesc='open source version of the scalable, non-blocking web server and tools'
+arch=('x86_64')
+url='https://www.tornadoweb.org/'
+license=('Apache')
+depends=('python')
+optdepends=('python-pycurl: for tornado.curl_httpclient'
+ 'python-twisted: for tornado.platform.twisted')
+ # 'python-pycares: an alternative non-blocking DNS resolver'
+makedepends=('python-setuptools')
+checkdepends=('python-pycurl' 'python-mock' 'python-twisted')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tornadoweb/tornado/archive/v$pkgver.tar.gz")
+sha512sums=('bd161a1c30f40f983d608297bca113735cb4baad255de71302a5b4d35be8c02afbc9820728efa912e62e1cbbfad8f92360261a69e0c8759f9e6cb477fbca31c7')
+
+export TORNADO_EXTENSION=1
+
+build() {
+ cd tornado-$pkgver
+ export PYTHONHASHSEED=0
+ python setup.py build
+}
+
+check() {
+ # As of 4.5.3, ignoring test failures about resolving "localhost"
+ (
+ cd tornado-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ export PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH"
+ cd tmp_install
+ python -m tornado.test.runtests
+ python -m tornado.test.runtests --ioloop=tornado.platform.select.SelectIOLoop
+ python -m tornado.test.runtests --httpclient=tornado.curl_httpclient.CurlAsyncHTTPClient
+ python -m tornado.test.runtests --ioloop_time_monotonic
+ python -m tornado.test.runtests --ioloop=tornado.platform.twisted.TwistedIOLoop
+ python -m tornado.test.runtests --ioloop=tornado.platform.asyncio.AsyncIOLoop
+ python -m tornado.test.runtests --resolver=tornado.netutil.ThreadedResolver
+ ) || echo "Tests failed"
+}
+
+package() {
+ cd tornado-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list