--- - branch: MAIN date: Wed Jul 28 12:14:16 UTC 2021 files: - new: '1.20' old: '1.19' path: pkgsrc/www/py-sanic/Makefile pathrev: pkgsrc/www/py-sanic/Makefile@1.20 type: modified - new: '1.11' old: '1.10' path: pkgsrc/www/py-sanic/PLIST pathrev: pkgsrc/www/py-sanic/PLIST@1.11 type: modified - new: '1.17' old: '1.16' path: pkgsrc/www/py-sanic/distinfo pathrev: pkgsrc/www/py-sanic/distinfo@1.17 type: modified - new: '0' old: '1.9' path: pkgsrc/www/py-sanic/patches/patch-setup.py pathrev: pkgsrc/www/py-sanic/patches/patch-setup.py@0 type: deleted id: 20210728T121416Z.aec7587a3eb2fd1db9fdf1b4e45c59438f93296a log: | py-sanic: updated to 21.6.1 Version 21.6.1 Bugfixes Update sanic-routing to allow for better splitting of complex URI templates Proper handling of chunked request bodies to resolve phantom 503 in logs Resolve regression in exception logging Cleanup request info in pipelined requests Version 21.6.0 Features Add response.eof() method for closing a stream in a handler Allow case-insensitive HTTP Upgrade header Explicit usage of CIMultiDict getters Consistent use of error loggers New client_ip access of connection info instance Alternatate classes on instantiation for Config and Sanic.ctx Implement new version of AST router Proper differentiation between alpha and string param types Adds a slug param type, example: Deprecates in favor of Deprecates in favor of Adds a route.uri accessor CLI improvements with new optional params Add version_prefix to URL builders Event autoregistration with EVENT_AUTOREGISTER Require stricter names on Sanic() and Blueprint() Infinitely reusable and nestable Blueprint and BlueprintGroup Upgrade websockets dependency to min version Allow for maximum header sizes to be increased: REQUEST_MAX_HEADER_SIZE Allow app factory pattern in CLI Change HTTP methods to enums Allow auto-reloading on additional directories Add simple HTTP server to CLI Additional methods for attaching HTTPMethodView Bugfixes Fix UserWarning in ASGI mode for missing __slots__ Fix static request handler logging exception on 404 Fix request.args.pop removes parameters inconsistently Fix type hinting for load_env Make sure ASGI ws subprotocols is a list Fix issue where Blueprint exception handlers do not consistently route to proper handler Deprecations and Removals Remove config value REQUEST_BUFFER_QUEUE_SIZE CompositionView deprecated and marked for removal in 21.12 Deprecate StreamingHTTPResponse Developer infrastructure Remove Travis CI in favor of GitHub Actions Improved Documentation Fix typo in documentation Remove documentation for non-existent arguments Version 21.3.2 Bugfixes Disable response timeout on websocket connections Make sure that blueprints with no slash is maintained when applied Version 21.3.1 Bugfixes Static files inside subfolders are not accessible (404) Version 21.3.0 Release Notes Features Unified streaming server New Request.id property Allow Pathlib Path objects to be passed to app.static() helper New startup-optimized router Listeners for main server process Add raw header info to request object Introduce Signals API Add __str__ and __repr__ to Sanic and Blueprint Enable versioning and strict slash on BlueprintGroup Make get_app name argument optional JSON encoder change via app App and connection level context objects Bugfixes and issues resolved Resolve 1420 url_for where strict_slashes are on for a path ending in / Resolve 1525 Routing is incorrect with some special characters Resolve 1653 ASGI headers in body Resolve 1722 Using curl in chunk mode Resolve 1730 Extra content in ASGI streaming response Resolve 1749 Restore broken middleware edge cases Resolve 1785 1804 Synchronous error handlers Resolve 1790 Protocol errors did not support async error handlers Resolve 1824 Timeout on specific methods Resolve 1875 Response timeout error from all routes after returning several timeouts from a specific route Resolve 1988 Handling of safe methods with body Raise ValueError when cookie max-age is not an integer Deprecations and Removals Config using from_envvar Config using from_pyfile Config using from_object Remove Sanic test client to its own package Drop Python 3.6 support Request.endpoint deprecated in favor of Request.name handler type name prefixes removed (static, websocket, etc) Developer infrastructure Create FUNDING.yml Add codeql to CI pipeline Codecov configuration updates Updated setup.py to use find_packages Improved Documentation Documentation for sanic.log.* is missing Add documentation on calver and LTS Support mounting application elsewhere than at root path Upgraded type annotations and improved docstrings and API documentation Fix some examples and docs Miscellaneous Request.route property Better websocket subprotocols support Resolve bug with middleware in Blueprint Group when passed callable Moves common logic between Blueprint and Sanic into mixins Route naming changed to be more consistent request endpoint is the route name route names are fully namespaced Some new convenience decorators: @app.main_process_start @app.main_process_stop @app.before_server_start @app.after_server_start @app.before_server_stop @app.after_server_stop @app.on_request @app.on_response Fixes Allow header that did not include HEAD Using "name" keyword in url_for for a "static" route where name does not exist Cannot have multiple app.static() without using the named param Using "filename" keyword in url_for on a file route unquote in route def (not automatic) routes_all is tuples Handler arguments are kwarg only request.match_info is now a cached (and not computed) property Unknown static file mimetype is sent as application/octet-stream _host keyword in url_for Add charset default to utf-8 for text and js content types if not specified Version for a route can be str, float, or int Route has ctx property App has routes_static, routes_dynamic, routes_regex Code cleanup and refactoring Remove BaseSanic metaclass Performance adjustments in handle_request_ module: pkgsrc subject: 'CVS commit: pkgsrc/www/py-sanic' unixtime: '1627474456' user: adam