pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-sanic py-sanic: updated to 22.3.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/35307e67ab9d
branches: trunk
changeset: 378009:35307e67ab9d
user: adam <adam%pkgsrc.org@localhost>
date: Tue Apr 26 12:36:31 2022 +0000
description:
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
diffstat:
www/py-sanic/Makefile | 7 ++---
www/py-sanic/PLIST | 11 ++++++---
www/py-sanic/distinfo | 9 +++----
www/py-sanic/patches/patch-setup.py | 42 -------------------------------------
4 files changed, 14 insertions(+), 55 deletions(-)
diffs (119 lines):
diff -r f2e4d17c401e -r 35307e67ab9d www/py-sanic/Makefile
--- a/www/py-sanic/Makefile Tue Apr 26 12:35:13 2022 +0000
+++ b/www/py-sanic/Makefile Tue Apr 26 12:36:31 2022 +0000
@@ -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
diff -r f2e4d17c401e -r 35307e67ab9d www/py-sanic/PLIST
--- a/www/py-sanic/PLIST Tue Apr 26 12:35:13 2022 +0000
+++ b/www/py-sanic/PLIST Tue Apr 26 12:36:31 2022 +0000
@@ -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
diff -r f2e4d17c401e -r 35307e67ab9d www/py-sanic/distinfo
--- a/www/py-sanic/distinfo Tue Apr 26 12:35:13 2022 +0000
+++ b/www/py-sanic/distinfo Tue Apr 26 12:36:31 2022 +0000
@@ -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
diff -r f2e4d17c401e -r 35307e67ab9d www/py-sanic/patches/patch-setup.py
--- a/www/py-sanic/patches/patch-setup.py Tue Apr 26 12:35:13 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-$NetBSD: patch-setup.py,v 1.11 2022/01/27 09:57:08 wiz Exp $
-
-Remove upper bound, pkgsrc version is 6.x
-
---- setup.py.orig 2022-01-06 10:26:24.000000000 +0000
-+++ setup.py
-@@ -90,28 +90,28 @@ requirements = [
- ujson,
- "aiofiles>=0.6.0",
- "websockets>=10.0",
-- "multidict>=5.0,<6.0",
-+ "multidict>=5.0",
- ]
-
- tests_require = [
- "sanic-testing>=0.7.0",
-- "pytest==6.2.5",
-- "coverage==5.3",
-- "gunicorn==20.0.4",
-+ "pytest",
-+ "coverage",
-+ "gunicorn",
- "pytest-cov",
- "beautifulsoup4",
- "pytest-sanic",
- "pytest-sugar",
- "pytest-benchmark",
-- "chardet==3.*",
-+ "chardet",
- "flake8",
- "black",
- "isort>=5.0.0",
- "bandit",
-- "mypy>=0.901,<0.910",
-+ "mypy>=0.901",
- "docutils",
- "pygments",
-- "uvicorn<0.15.0",
-+ "uvicorn",
- types_ujson,
- ]
-
Home |
Main Index |
Thread Index |
Old Index