Bump from 6.3.3 to 6.5.5. Add a basic test.sh that imports
the tornado module and verifies Application/RequestHandler
can be instantiated.
Changelog: https://www.tornadoweb.org/en/stable/releases.html
Signed-off-by: Alexandru Ardelean <redacted>
include $(TOPDIR)/rules.mk
PKG_NAME:=python-tornado
-PKG_VERSION:=6.3.3
+PKG_VERSION:=6.5.5
PKG_RELEASE:=1
PYPI_NAME:=tornado
-PKG_HASH:=e7d8db41c0181c80d76c982aacc442c0783a2c54d6400fe028954201a2e032fe
+PKG_HASH:=192b8f3ea91bd7f1f50c06955416ed76c6b72f96779b962f07f911b91e8d30e9
+
+PKG_BUILD_DEPENDS:=python-setuptools/host
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
PKG_LICENSE:=Apache-2.0
--- /dev/null
+#!/bin/sh
+
+[ "$1" = python3-tornado ] || exit 0
+
+python3 - << 'EOF'
+import tornado
+assert tornado.version, "tornado version is empty"
+
+from tornado.web import Application, RequestHandler
+from tornado.httpserver import HTTPServer
+from tornado.ioloop import IOLoop
+
+class TestHandler(RequestHandler):
+ def get(self):
+ self.write("ok")
+
+app = Application([(r"/", TestHandler)])
+assert app is not None, "failed to create tornado Application"
+EOF