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 Aug 23 09:35:23 UTC 2022

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

Log Message:
py-sanic: updated to 22.6.2

Version 22.6.0

Features

Introduce HTTP/3 and autogeneration of TLS certificates in DEBUG mode
👶 EARLY RELEASE FEATURE: Serving Sanic over HTTP/3 is an early release feature. It does not yet fully cover the HTTP/3 spec, but instead aims for feature parity with Sanic’s existing HTTP/1.1 server. 
Websockets, WebTransport, push responses are examples of some features not yet implemented.
📦 EXTRA REQUIREMENT: Not all HTTP clients are capable of interfacing with HTTP/3 servers. You may need to install a HTTP/3 capable client.
📦 EXTRA REQUIREMENT: In order to use TLS autogeneration, you must install either mkcert or trustme.
Add message to task.cancel
Add exception aliases for more consistent naming with standard HTTP response types (BadRequest, MethodNotAllowed, RangeNotSatisfiable)
Expose ASGI scope as a property on the Request object
Easier access to websocket class for annotation: from sanic import Websocket
New API for reading form values with options: Request.get_form
Add custom loads function
Improved API to support setting cache control headers
Move verbosity filtering to logger
Expose getter for current request using Request.get_current()

Bugfixes

Fix to allow running with pythonw.exe or places where there is no sys.stdout
Trigger http.lifecycle.request signal in ASGI mode
Resolve typing of stacked route definitions
Properly catch websocket CancelledError in websocket handler in Python 3.7

Deprecations and Removals

v22.6 deprecations and changes
Optional application registry
Execution of custom handlers after some part of response was sent
Configuring fallback handlers on the ErrorHandler
Custom LOGO setting
sanic.response.stream
AsyncioServer.init


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/www/py-sanic/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/www/py-sanic/PLIST
cvs rdiff -u -r1.24 -r1.25 pkgsrc/www/py-sanic/distinfo
cvs rdiff -u -r0 -r1.13 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.28 pkgsrc/www/py-sanic/Makefile:1.29
--- pkgsrc/www/py-sanic/Makefile:1.28   Wed May 18 13:19:16 2022
+++ pkgsrc/www/py-sanic/Makefile        Tue Aug 23 09:35:22 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2022/05/18 13:19:16 adam Exp $
+# $NetBSD: Makefile,v 1.29 2022/08/23 09:35:22 adam Exp $
 
-DISTNAME=      sanic-22.3.2
+DISTNAME=      sanic-22.6.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/sanic/}

Index: pkgsrc/www/py-sanic/PLIST
diff -u pkgsrc/www/py-sanic/PLIST:1.13 pkgsrc/www/py-sanic/PLIST:1.14
--- pkgsrc/www/py-sanic/PLIST:1.13      Tue Apr 26 12:36:31 2022
+++ pkgsrc/www/py-sanic/PLIST   Tue Aug 23 09:35:22 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2022/04/26 12:36:31 adam Exp $
+@comment $NetBSD: PLIST,v 1.14 2022/08/23 09:35:22 adam Exp $
 bin/sanic-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -21,6 +21,9 @@ ${PYSITELIB}/sanic/app.pyo
 ${PYSITELIB}/sanic/application/__init__.py
 ${PYSITELIB}/sanic/application/__init__.pyc
 ${PYSITELIB}/sanic/application/__init__.pyo
+${PYSITELIB}/sanic/application/constants.py
+${PYSITELIB}/sanic/application/constants.pyc
+${PYSITELIB}/sanic/application/constants.pyo
 ${PYSITELIB}/sanic/application/ext.py
 ${PYSITELIB}/sanic/application/ext.pyc
 ${PYSITELIB}/sanic/application/ext.pyo
@@ -30,6 +33,9 @@ ${PYSITELIB}/sanic/application/logo.pyo
 ${PYSITELIB}/sanic/application/motd.py
 ${PYSITELIB}/sanic/application/motd.pyc
 ${PYSITELIB}/sanic/application/motd.pyo
+${PYSITELIB}/sanic/application/spinner.py
+${PYSITELIB}/sanic/application/spinner.pyc
+${PYSITELIB}/sanic/application/spinner.pyo
 ${PYSITELIB}/sanic/application/state.py
 ${PYSITELIB}/sanic/application/state.pyc
 ${PYSITELIB}/sanic/application/state.pyo
@@ -87,9 +93,30 @@ ${PYSITELIB}/sanic/headers.pyo
 ${PYSITELIB}/sanic/helpers.py
 ${PYSITELIB}/sanic/helpers.pyc
 ${PYSITELIB}/sanic/helpers.pyo
-${PYSITELIB}/sanic/http.py
-${PYSITELIB}/sanic/http.pyc
-${PYSITELIB}/sanic/http.pyo
+${PYSITELIB}/sanic/http/__init__.py
+${PYSITELIB}/sanic/http/__init__.pyc
+${PYSITELIB}/sanic/http/__init__.pyo
+${PYSITELIB}/sanic/http/constants.py
+${PYSITELIB}/sanic/http/constants.pyc
+${PYSITELIB}/sanic/http/constants.pyo
+${PYSITELIB}/sanic/http/http1.py
+${PYSITELIB}/sanic/http/http1.pyc
+${PYSITELIB}/sanic/http/http1.pyo
+${PYSITELIB}/sanic/http/http3.py
+${PYSITELIB}/sanic/http/http3.pyc
+${PYSITELIB}/sanic/http/http3.pyo
+${PYSITELIB}/sanic/http/stream.py
+${PYSITELIB}/sanic/http/stream.pyc
+${PYSITELIB}/sanic/http/stream.pyo
+${PYSITELIB}/sanic/http/tls/__init__.py
+${PYSITELIB}/sanic/http/tls/__init__.pyc
+${PYSITELIB}/sanic/http/tls/__init__.pyo
+${PYSITELIB}/sanic/http/tls/context.py
+${PYSITELIB}/sanic/http/tls/context.pyc
+${PYSITELIB}/sanic/http/tls/context.pyo
+${PYSITELIB}/sanic/http/tls/creators.py
+${PYSITELIB}/sanic/http/tls/creators.pyc
+${PYSITELIB}/sanic/http/tls/creators.pyo
 ${PYSITELIB}/sanic/log.py
 ${PYSITELIB}/sanic/log.pyc
 ${PYSITELIB}/sanic/log.pyo
@@ -196,9 +223,6 @@ ${PYSITELIB}/sanic/signals.pyo
 ${PYSITELIB}/sanic/simple.py
 ${PYSITELIB}/sanic/simple.pyc
 ${PYSITELIB}/sanic/simple.pyo
-${PYSITELIB}/sanic/tls.py
-${PYSITELIB}/sanic/tls.pyc
-${PYSITELIB}/sanic/tls.pyo
 ${PYSITELIB}/sanic/touchup/__init__.py
 ${PYSITELIB}/sanic/touchup/__init__.pyc
 ${PYSITELIB}/sanic/touchup/__init__.pyo
@@ -208,6 +232,9 @@ ${PYSITELIB}/sanic/touchup/meta.pyo
 ${PYSITELIB}/sanic/touchup/schemes/__init__.py
 ${PYSITELIB}/sanic/touchup/schemes/__init__.pyc
 ${PYSITELIB}/sanic/touchup/schemes/__init__.pyo
+${PYSITELIB}/sanic/touchup/schemes/altsvc.py
+${PYSITELIB}/sanic/touchup/schemes/altsvc.pyc
+${PYSITELIB}/sanic/touchup/schemes/altsvc.pyo
 ${PYSITELIB}/sanic/touchup/schemes/base.py
 ${PYSITELIB}/sanic/touchup/schemes/base.pyc
 ${PYSITELIB}/sanic/touchup/schemes/base.pyo

Index: pkgsrc/www/py-sanic/distinfo
diff -u pkgsrc/www/py-sanic/distinfo:1.24 pkgsrc/www/py-sanic/distinfo:1.25
--- pkgsrc/www/py-sanic/distinfo:1.24   Wed May 18 13:19:16 2022
+++ pkgsrc/www/py-sanic/distinfo        Tue Aug 23 09:35:22 2022
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.24 2022/05/18 13:19:16 adam Exp $
+$NetBSD: distinfo,v 1.25 2022/08/23 09:35:22 adam Exp $
 
-BLAKE2s (sanic-22.3.2.tar.gz) = 748fcf317f9e0c0fe8d73255ba9497f6602fcb391102d5617d1d98269b087f22
-SHA512 (sanic-22.3.2.tar.gz) = 640e16d8d1b7f58ea9335a6dccc1a1bb9671c1e87065c9fa69291533fba4a2464b753f55abed02a1e484eb05fbe02065db18b5b3c5ed38399c8b0af2037fddba
-Size (sanic-22.3.2.tar.gz) = 231479 bytes
+BLAKE2s (sanic-22.6.2.tar.gz) = d705d004d4e9ee97d19f3e97e705ae024c9e757123fccde9fc458ec841657653
+SHA512 (sanic-22.6.2.tar.gz) = 7e10fe2c3a9d1b6bcb6caad97db330a341c9bffbdbc5dbacdf8231653bdd818abb2eb5481f9b0d98d65dcabf9af252565445dde68200232808fb1805dab56c06
+Size (sanic-22.6.2.tar.gz) = 247186 bytes
+SHA1 (patch-setup.py) = 08eb9dae154977a800ae29f82bdac42240a649c6

Added files:

Index: pkgsrc/www/py-sanic/patches/patch-setup.py
diff -u /dev/null pkgsrc/www/py-sanic/patches/patch-setup.py:1.13
--- /dev/null   Tue Aug 23 09:35:23 2022
+++ pkgsrc/www/py-sanic/patches/patch-setup.py  Tue Aug 23 09:35:23 2022
@@ -0,0 +1,16 @@
+$NetBSD: patch-setup.py,v 1.13 2022/08/23 09:35:23 adam Exp $
+
+Do not install tests.
+https://github.com/sanic-org/sanic/pull/2530/
+
+--- setup.py.orig      2022-08-23 09:13:37.000000000 +0000
++++ setup.py
+@@ -61,7 +61,7 @@ setup_kwargs = {
+         "Build fast. Run fast."
+     ),
+     "long_description": long_description,
+-    "packages": find_packages(),
++    "packages": find_packages(exclude=["tests", "tests.*"]),
+     "package_data": {"sanic": ["py.typed"]},
+     "platforms": "any",
+     "python_requires": ">=3.7",



Home | Main Index | Thread Index | Old Index