Tue Apr 26 12:36:32 2022 UTC ()
py-sanic: updated to 22.3.1

Version 22.3.1

Add fall back for Windows even loop fetching

Version 22.3.0

Features

* API for multi-application server
�泅ィ BREAKING CHANGE: The old sanic.worker.GunicornWorker has been removed. To run Sanic with gunicorn, you should use it thru uvicorn as described in their docs.
�洫� SIDE EFFECT: Named background tasks are now supported, even in Python 3.7
* Parse Authorization header as Request.credentials
* Add config option to skip Touchup step in application startup
* Updates to CLI help messaging
* Downgrade warnings to backwater debug messages
* Allow for multidict v0.6
* Upgrade CLI catching for alternative application run types
* Conditionally inject CLI arguments into factory
* Add new start and stop event listeners to reloader process
* Remove loop as required listener arg
* Better exception for bad URL parsing
sanic-routing#47 Add a new extention parameter type: <file:ext>, <file:ext=jpg>, <file:ext=jpg|png|gif|svg>, <file=int:ext>, <file=int:ext=jpg|png|gif|svg>, <file=float:ext=tar.gz>
�汨カ BETA FEATURE: This feature will not work with path type matching, and is being released as a beta feature only.
sanic-routing#57 Change register_pattern to accept a str or Pattern
sanic-routing#58 Default matching on non-empty strings only, and new strorempty pattern type
�泅ィ BREAKING CHANGE: Previously a route with a dynamic string parameter (/<foo> or /<foo:str>) would match on any string, including empty strings. It will now only match a non-empty string. To retain the old behavior, you should use the new parameter type: /<foo:strorempty>.

Bugfixes

* Remove error_logger on websockets
* Fix newly assigned None in task registry
sanic-routing#52 Add type casting to regex route matching
sanic-routing#60 Add requirements check on regex routes (this resolves, for example, multiple static directories with differing host values)

Deprecations and Removals

* 22.3 Deprecations and changes

debug=True and --debug do NOT automatically run auto_reload
Default error render is with plain text (browsers still get HTML by default because auto looks at headers)
config is required for ErrorHandler.finalize
ErrorHandler.lookup requires two positional args
Unused websocket protocol args removed
* Deprecate loading of lowercase environment variables

Developer infrastructure

* Revert code coverage back to Codecov
* Upgrade tests for sanic-routing changes
sanic-testing#35 Allow for httpx v0.22

Improved Documentation

* Fix link in README for ASGI
* Document middleware on_request and on_response
* Add missing documentation for Request.respond

Miscellaneous

* Fix typing for ListenerMixin.listener
* Clear deprecation warning in asyncio.wait
* Cleanup __slots__ implementations
* Clear deprecation warning in asyncio.get_event_loop


(adam)
diff -r1.26 -r1.27 pkgsrc/www/py-sanic/Makefile
diff -r1.12 -r1.13 pkgsrc/www/py-sanic/PLIST
diff -r1.22 -r1.23 pkgsrc/www/py-sanic/distinfo
diff -r1.11 -r0 pkgsrc/www/py-sanic/patches/patch-setup.py

cvs diff -r1.26 -r1.27 pkgsrc/www/py-sanic/Makefile (expand / switch to context diff)
--- pkgsrc/www/py-sanic/Makefile 2022/01/27 09:57:08 1.26
+++ pkgsrc/www/py-sanic/Makefile 2022/04/26 12:36:31 1.27
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.26 2022/01/27 09:57:08 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2022/04/26 12:36:31 adam Exp $
 
-DISTNAME=	sanic-21.12.1
+DISTNAME=	sanic-22.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	${MASTER_SITE_PYPI:=s/sanic/}
 
@@ -14,7 +13,7 @@
 DEPENDS+=	${PYPKGPREFIX}-aiofiles>=0.6.0:../../devel/py-aiofiles
 DEPENDS+=	${PYPKGPREFIX}-httptools>=0.0.10:../../www/py-httptools
 DEPENDS+=	${PYPKGPREFIX}-multidict>=5.0.0:../../databases/py-multidict
-DEPENDS+=	${PYPKGPREFIX}-sanic-routing>=0.7.0:../../www/py-sanic-routing
+DEPENDS+=	${PYPKGPREFIX}-sanic-routing>=22.3.0:../../www/py-sanic-routing
 DEPENDS+=	${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson
 DEPENDS+=	${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop
 DEPENDS+=	${PYPKGPREFIX}-websockets>=10.0:../../www/py-websockets

cvs diff -r1.12 -r1.13 pkgsrc/www/py-sanic/PLIST (expand / switch to context diff)
--- pkgsrc/www/py-sanic/PLIST 2022/01/13 18:23:57 1.12
+++ pkgsrc/www/py-sanic/PLIST 2022/04/26 12:36:31 1.13
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2022/01/13 18:23:57 adam Exp $
+@comment $NetBSD: PLIST,v 1.13 2022/04/26 12:36:31 adam Exp $
 bin/sanic-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -108,6 +108,9 @@
 ${PYSITELIB}/sanic/mixins/routes.py
 ${PYSITELIB}/sanic/mixins/routes.pyc
 ${PYSITELIB}/sanic/mixins/routes.pyo
+${PYSITELIB}/sanic/mixins/runner.py
+${PYSITELIB}/sanic/mixins/runner.pyc
+${PYSITELIB}/sanic/mixins/runner.pyo
 ${PYSITELIB}/sanic/mixins/signals.py
 ${PYSITELIB}/sanic/mixins/signals.pyc
 ${PYSITELIB}/sanic/mixins/signals.pyo
@@ -123,6 +126,9 @@
 ${PYSITELIB}/sanic/models/handler_types.py
 ${PYSITELIB}/sanic/models/handler_types.pyc
 ${PYSITELIB}/sanic/models/handler_types.pyo
+${PYSITELIB}/sanic/models/http_types.py
+${PYSITELIB}/sanic/models/http_types.pyc
+${PYSITELIB}/sanic/models/http_types.pyo
 ${PYSITELIB}/sanic/models/protocol_types.py
 ${PYSITELIB}/sanic/models/protocol_types.pyc
 ${PYSITELIB}/sanic/models/protocol_types.pyo
@@ -223,6 +229,3 @@
 ${PYSITELIB}/sanic/views.py
 ${PYSITELIB}/sanic/views.pyc
 ${PYSITELIB}/sanic/views.pyo
-${PYSITELIB}/sanic/worker.py
-${PYSITELIB}/sanic/worker.pyc
-${PYSITELIB}/sanic/worker.pyo

cvs diff -r1.22 -r1.23 pkgsrc/www/py-sanic/distinfo (expand / switch to context diff)
--- pkgsrc/www/py-sanic/distinfo 2022/01/27 09:57:08 1.22
+++ pkgsrc/www/py-sanic/distinfo 2022/04/26 12:36:31 1.23
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.22 2022/01/27 09:57:08 wiz Exp $
+$NetBSD: distinfo,v 1.23 2022/04/26 12:36:31 adam Exp $
 
-BLAKE2s (sanic-21.12.1.tar.gz) = 32986c1fc1452c29f1c491f15b789b6bc25fd378f9a7a182e125b24c164f6591
+BLAKE2s (sanic-22.3.1.tar.gz) = 42423375eb0dc2d899190d0faeba27748c913be67520bc85e38dcccff95f70bf
-SHA512 (sanic-21.12.1.tar.gz) = 922446fce87be6b043bf9b88dd0e1c4776b8bec1f2d12bec2f3bc7d659d602f555892d66689c511bfa2884a437bd83b661d6f2aead5a41e9c612fe9ed6c212b2
+SHA512 (sanic-22.3.1.tar.gz) = 039d45aebcb6bbe5598449d6602275df8b53230b05f7744faec86a49eab5ad5ef9c57699edd10c984bd314370c7938feee0da5ed8e07ca906cfa9798d7d22eca
-Size (sanic-21.12.1.tar.gz) = 225688 bytes
+Size (sanic-22.3.1.tar.gz) = 231454 bytes
-SHA1 (patch-setup.py) = d67e265a1b6c7b11eac5eca07b780223722250e6

File Deleted: pkgsrc/www/py-sanic/patches/Attic/patch-setup.py