From: Alexandru Ardelean Date: Fri, 3 Apr 2026 14:55:29 +0000 (+0300) Subject: python-tornado: bump to 6.5.5, add test.sh X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8ec35e12a8a4f02e77bc00f9365d9a54e383dc55;p=openwrt-packages.git python-tornado: bump to 6.5.5, add test.sh 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 --- diff --git a/lang/python/python-tornado/Makefile b/lang/python/python-tornado/Makefile index c8599c182..74dd3dac7 100644 --- a/lang/python/python-tornado/Makefile +++ b/lang/python/python-tornado/Makefile @@ -8,11 +8,13 @@ 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 PKG_LICENSE:=Apache-2.0 diff --git a/lang/python/python-tornado/test.sh b/lang/python/python-tornado/test.sh new file mode 100755 index 000000000..bf902a28e --- /dev/null +++ b/lang/python/python-tornado/test.sh @@ -0,0 +1,19 @@ +#!/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