[arch-commits] Commit in python-tornado/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:20:50 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:20:50
  Author: foutrelis
Revision: 1058063

archrelease: copy trunk to community-staging-x86_64

Added:
  python-tornado/repos/community-staging-x86_64/
  python-tornado/repos/community-staging-x86_64/PKGBUILD
    (from rev 1058060, python-tornado/trunk/PKGBUILD)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: python-tornado/repos/community-staging-x86_64/PKGBUILD (from rev 1058060, python-tornado/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 20:20:50 UTC (rev 1058063)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+
+pkgname=python-tornado
+pkgver=6.1.0
+pkgrel=4
+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
+  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.10/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