pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-sanic



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Apr 26 12:36:32 UTC 2022

Modified Files:
        pkgsrc/www/py-sanic: Makefile PLIST distinfo
Removed Files:
        pkgsrc/www/py-sanic/patches: patch-setup.py

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/www/py-sanic/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/www/py-sanic/PLIST
cvs rdiff -u -r1.22 -r1.23 pkgsrc/www/py-sanic/distinfo
cvs rdiff -u -r1.11 -r0 pkgsrc/www/py-sanic/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-sanic/Makefile
diff -u pkgsrc/www/py-sanic/Makefile:1.26 pkgsrc/www/py-sanic/Makefile:1.27
--- pkgsrc/www/py-sanic/Makefile:1.26   Thu Jan 27 09:57:08 2022
+++ pkgsrc/www/py-sanic/Makefile        Tue Apr 26 12:36:31 2022
@@ -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 @@ LICENSE=      mit AND apache-2.0
 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

Index: pkgsrc/www/py-sanic/PLIST
diff -u pkgsrc/www/py-sanic/PLIST:1.12 pkgsrc/www/py-sanic/PLIST:1.13
--- pkgsrc/www/py-sanic/PLIST:1.12      Thu Jan 13 18:23:57 2022
+++ pkgsrc/www/py-sanic/PLIST   Tue Apr 26 12:36:31 2022
@@ -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/middleware.pyo
 ${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/futures.pyo
 ${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/utils.pyo
 ${PYSITELIB}/sanic/views.py
 ${PYSITELIB}/sanic/views.pyc
 ${PYSITELIB}/sanic/views.pyo
-${PYSITELIB}/sanic/worker.py
-${PYSITELIB}/sanic/worker.pyc
-${PYSITELIB}/sanic/worker.pyo

Index: pkgsrc/www/py-sanic/distinfo
diff -u pkgsrc/www/py-sanic/distinfo:1.22 pkgsrc/www/py-sanic/distinfo:1.23
--- pkgsrc/www/py-sanic/distinfo:1.22   Thu Jan 27 09:57:08 2022
+++ pkgsrc/www/py-sanic/distinfo        Tue Apr 26 12:36:31 2022
@@ -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
-SHA512 (sanic-21.12.1.tar.gz) = 922446fce87be6b043bf9b88dd0e1c4776b8bec1f2d12bec2f3bc7d659d602f555892d66689c511bfa2884a437bd83b661d6f2aead5a41e9c612fe9ed6c212b2
-Size (sanic-21.12.1.tar.gz) = 225688 bytes
-SHA1 (patch-setup.py) = d67e265a1b6c7b11eac5eca07b780223722250e6
+BLAKE2s (sanic-22.3.1.tar.gz) = 42423375eb0dc2d899190d0faeba27748c913be67520bc85e38dcccff95f70bf
+SHA512 (sanic-22.3.1.tar.gz) = 039d45aebcb6bbe5598449d6602275df8b53230b05f7744faec86a49eab5ad5ef9c57699edd10c984bd314370c7938feee0da5ed8e07ca906cfa9798d7d22eca
+Size (sanic-22.3.1.tar.gz) = 231454 bytes



Home | Main Index | Thread Index | Old Index