mirror of
https://github.com/openwrt/packages.git
synced 2026-04-17 20:02:12 +00:00
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 <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
2817de263b
commit
8ec35e12a8
@@ -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 <pepe.schlehofer@gmail.com>
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
|
||||
19
lang/python/python-tornado/test.sh
Executable file
19
lang/python/python-tornado/test.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user