Subject: CVS commit: pkgsrc/www/py-sanic
From: Adam Ciarcinski
Date: 2022-01-13 19:23:57
Message id: 20220113182357.68D92FB24@cvs.NetBSD.org

Log Message:
py-sanic: updated to 21.12.1

Version 21.12.1
* Only display MOTD on startup
* Add config.update support for all config values
* Ignore name argument in Python 3.7

Version 21.12.0
Features

* Allow early Blueprint registrations to still apply later added objects
* Noisy exceptions - force logging of all exceptions
* Optional uvloop by configuration
* Vhost support using multiple TLS certificates
* Change signal routing for increased consistency
BREAKING CHANGE: If you were manually routing signals there is a breaking \ 
change. The signal router's get is no longer 100% determinative. There is now an \ 
additional step to loop thru the returned signals for proper matching on the \ 
requirements. If signals are being dispatched using app.dispatch or bp.dispatch, \ 
there is no change.
* Add contextual exceptions
* Increase join concat performance
* Restructure of CLI and application state with new displays and more command \ 
parity with app.run
* Add route context at definition time
* Named tasks and new API for managing background tasks
* On app auto-reload, provide insight of changed files
* Auto extend application with Sanic Extensions if it is installed, and provide \ 
first class support for accessing the extensions
* Builtin signals changed to Enum
* Support additional config implementation use case
* Refactor environment variable hydration logic
* Prevent sending multiple or mixed responses on a single request
* Custom type casting on environment variables
* Make all deprecation notices consistent
* Allow underscore to start instance names

Bugfixes

* Replace assignation by typing for websocket_handshake
* Fix IPv6 display in startup logs
* Dispatch http.lifecyle.response from exception handler

Deprecations and Removals

* Removal of deprecated items
Sanic and Blueprint may no longer have arbitrary properties attached to them
Sanic and Blueprint forced to have compliant names
alphanumeric + _ + -
must start with letter or _
load_env keyword argument of Sanic
sanic.exceptions.abort
sanic.views.CompositionView
sanic.response.StreamingHTTPResponse
NOTE: the stream() response method (where you pass a callable streaming \ 
function) has been deprecated and will be removed in v22.6. You should upgrade \ 
all streaming responses to the new style: \ 
https://sanicframework.org/en/guide/advanced/streaming.html#response-streaming
* Remove app instance from Config for error handler setting

Developer infrastructure

* Change dev install command
* Change codeclimate complexity threshold from 5 to 10
* Update host test function names so they are not overwritten
* Fail CI on error
* Do not run tests for draft PRs
* Remove paths from coverage checks
* Cleanup ports on tests

Improved Documentation

* Cleanup typos and fix language

Miscellaneous

* Add Python 3.10 support
* Add/correct missing type annotations
* Fix examples to use modern implementations

Version 21.9.2
* Make HTTP connections start in IDLE stage, avoiding delays and error messages
* More consistent config setting with post-FALLBACK_ERROR_FORMAT apply

Version 21.9.1
* Allow non-conforming ErrorHandlers

Version 21.9.0

Features

* Complete overhaul of I/O to websockets
* Add new 17 signals into server and request lifecycles
* Smarter auto fallback formatting upon exception
* Introduce implementation for copying a Blueprint
* Accept header parsing
* Log remote address if available
* Add convenience methods to BP groups
* Add default messages to SanicExceptions
* Type annotation convenience for annotated handlers with path parameters
* Allow Falsey (but not-None) responses from route handlers
* Add exception decorator to Blueprint Groups
* Explicit static directive for serving file or dir (ex: static(..., \ 
resource_type="file"))
* Close HTTP loop when connection task cancelled

Bugfixes

* Fix the handling of the end of a chunked request
* Resolve unexpected error handling on static requests
* Make blueprint-based exceptions attach and trigger in a more intuitive manner
* Fixed for handling exceptions of asgi app call
* Fix bug where ws exceptions not being logged
* Cleaner closing of tasks by using abort() in strategic places to avoid \ 
dangling sockets
* Fix logging of auto-reload status in debug mode
* Account for BP with exception handler but no routes

Developer infrastructure

* HTTP unit tests with raw client
* Switch to codeclimate
* Try Reopening Windows Tests
* Refactor HttpProtocol into a base class
* Refactor server.py into multi-file module

Miscellaneous

* Remove Duplicated Dependencies and PEP 517 Support
* Type annotation changes

Files:
RevisionActionfile
1.25modifypkgsrc/www/py-sanic/Makefile
1.12modifypkgsrc/www/py-sanic/PLIST
1.21modifypkgsrc/www/py-sanic/distinfo