Subject: CVS commit: pkgsrc/www/py-sanic
From: Adam Ciarcinski
Date: 2022-08-23 11:35:23
Message id: 20220823093523.33FABFB1A@cvs.NetBSD.org

Log Message:
py-sanic: updated to 22.6.2

Version 22.6.0

Features

Introduce HTTP/3 and autogeneration of TLS certificates in DEBUG mode
👶 EARLY RELEASE FEATURE: Serving Sanic over HTTP/3 is an early release \ 
feature. It does not yet fully cover the HTTP/3 spec, but instead aims for \ 
feature parity with Sanic’s existing HTTP/1.1 server. Websockets, \ 
WebTransport, push responses are examples of some features not yet implemented.
📦 EXTRA REQUIREMENT: Not all HTTP clients are capable of interfacing with \ 
HTTP/3 servers. You may need to install a HTTP/3 capable client.
📦 EXTRA REQUIREMENT: In order to use TLS autogeneration, you must install \ 
either mkcert or trustme.
Add message to task.cancel
Add exception aliases for more consistent naming with standard HTTP response \ 
types (BadRequest, MethodNotAllowed, RangeNotSatisfiable)
Expose ASGI scope as a property on the Request object
Easier access to websocket class for annotation: from sanic import Websocket
New API for reading form values with options: Request.get_form
Add custom loads function
Improved API to support setting cache control headers
Move verbosity filtering to logger
Expose getter for current request using Request.get_current()

Bugfixes

Fix to allow running with pythonw.exe or places where there is no sys.stdout
Trigger http.lifecycle.request signal in ASGI mode
Resolve typing of stacked route definitions
Properly catch websocket CancelledError in websocket handler in Python 3.7

Deprecations and Removals

v22.6 deprecations and changes
Optional application registry
Execution of custom handlers after some part of response was sent
Configuring fallback handlers on the ErrorHandler
Custom LOGO setting
sanic.response.stream
AsyncioServer.init

Files:
RevisionActionfile
1.29modifypkgsrc/www/py-sanic/Makefile
1.14modifypkgsrc/www/py-sanic/PLIST
1.25modifypkgsrc/www/py-sanic/distinfo
1.13addpkgsrc/www/py-sanic/patches/patch-setup.py