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:           Fri Mar  3 09:01:36 UTC 2023

Modified Files:
        pkgsrc/www/py-sanic: Makefile PLIST distinfo

Log Message:
py-sanic: updated to 22.12.0

Version 22.12.0

Current version

Features

* Add JSONResponse class with some convenient methods when updating a response object
* Change uvloop requirement to >=0.15.0
* Add compatibility with websockets v11.0
* Kill server early on worker error

Raise deadlock timeout to 30s
* Scale number of running server workers
* Send SIGKILL on subsequent ctrl+c to force worker exit
* Add API to restart all workers from the multiplexer
* Default to spawn for all subprocesses unless specifically set:

from sanic import Sanic

Sanic.start_method = "fork"
* Filename normalisation of form-data/multipart file uploads
* Move to HTTP Inspector:

Remote access to inspect running Sanic instances
TLS support for encrypted calls to Inspector
Authentication to Inspector with API key
Ability to extend Inspector with custom commands
* Control order of restart operations
* Move reload interval to class variable
* Add priority to register_middleware method
* Add unquote to add_route method
* ASGI websockets to receive text or bytes

Bugfixes

* Force socket shutdown before close to allow rebinding
* Use actual StrEnum in Python 3.11+
* Ensure middleware executes only once per request timeout
* Crash ASGI application on lifespan failure
* Resolve error with low-level server creation on Windows

Deprecations and Removals

* Signal conditions and triggers saved on signal.extra
* Move to HTTP Inspector
BREAKING CHANGE: Moves the Inspector to a Sanic app from a simple TCP socket with a custom protocol
DEPRECATE: The --inspect* commands have been deprecated in favor of inspect ... commands
* Replace deprecated distutils.strtobool

Developer infrastructure

* Add CI testing for Python 3.11


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/www/py-sanic/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/www/py-sanic/PLIST
cvs rdiff -u -r1.27 -r1.28 pkgsrc/www/py-sanic/distinfo

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.31 pkgsrc/www/py-sanic/Makefile:1.32
--- pkgsrc/www/py-sanic/Makefile:1.31   Thu Nov  3 12:46:20 2022
+++ pkgsrc/www/py-sanic/Makefile        Fri Mar  3 09:01:36 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.31 2022/11/03 12:46:20 adam Exp $
+# $NetBSD: Makefile,v 1.32 2023/03/03 09:01:36 adam Exp $
 
-DISTNAME=      sanic-22.9.1
+DISTNAME=      sanic-22.12.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/sanic/}
@@ -15,9 +15,9 @@ DEPENDS+=     ${PYPKGPREFIX}-httptools>=0.0.
 DEPENDS+=      ${PYPKGPREFIX}-multidict>=5.0.0:../../databases/py-multidict
 DEPENDS+=      ${PYPKGPREFIX}-sanic-routing>=22.8.0:../../www/py-sanic-routing
 DEPENDS+=      ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson
-DEPENDS+=      ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop
+DEPENDS+=      ${PYPKGPREFIX}-uvloop>=0.15.0:../../devel/py-uvloop
 DEPENDS+=      ${PYPKGPREFIX}-websockets>=10.0:../../www/py-websockets
-#TEST_DEPENDS+=        ${PYPKGPREFIX}-bandit-[0-9]*:../../wip/py-bandit
+TEST_DEPENDS+= ${PYPKGPREFIX}-bandit-[0-9]*:../../security/py-bandit
 TEST_DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
 TEST_DEPENDS+= ${PYPKGPREFIX}-black-[0-9]*:../../textproc/py-black
 TEST_DEPENDS+= ${PYPKGPREFIX}-chardet>=3.0.0:../../converters/py-chardet
@@ -33,23 +33,23 @@ TEST_DEPENDS+=      ${PYPKGPREFIX}-pygments-[
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark-[0-9]*:../../devel/py-test-benchmark
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
-#TEST_DEPENDS+=        ${PYPKGPREFIX}-test-sanic-[0-9]*:../../www/py-test-sanic
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-sanic-[0-9]*:../../www/py-test-sanic
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-sugar-[0-9]*:../../devel/py-test-sugar
 TEST_DEPENDS+= ${PYPKGPREFIX}-types-ujson-[0-9]*:../../devel/py-types-ujson
 TEST_DEPENDS+= ${PYPKGPREFIX}-uvicorn-[0-9]*:../../www/py-uvicorn
 
 USE_LANGUAGES= # none
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-
 USE_PKG_RESOURCES=     yes
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} sanic sanic-${PYVERSSUFFIX} || ${TRUE}
 
-#do-test:
-#      cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/py-sanic/PLIST
diff -u pkgsrc/www/py-sanic/PLIST:1.15 pkgsrc/www/py-sanic/PLIST:1.16
--- pkgsrc/www/py-sanic/PLIST:1.15      Fri Oct 14 08:39:48 2022
+++ pkgsrc/www/py-sanic/PLIST   Fri Mar  3 09:01:36 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.15 2022/10/14 08:39:48 adam Exp $
+@comment $NetBSD: PLIST,v 1.16 2023/03/03 09:01:36 adam Exp $
 bin/sanic-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -66,6 +66,15 @@ ${PYSITELIB}/sanic/cli/app.pyo
 ${PYSITELIB}/sanic/cli/arguments.py
 ${PYSITELIB}/sanic/cli/arguments.pyc
 ${PYSITELIB}/sanic/cli/arguments.pyo
+${PYSITELIB}/sanic/cli/base.py
+${PYSITELIB}/sanic/cli/base.pyc
+${PYSITELIB}/sanic/cli/base.pyo
+${PYSITELIB}/sanic/cli/inspector.py
+${PYSITELIB}/sanic/cli/inspector.pyc
+${PYSITELIB}/sanic/cli/inspector.pyo
+${PYSITELIB}/sanic/cli/inspector_client.py
+${PYSITELIB}/sanic/cli/inspector_client.pyc
+${PYSITELIB}/sanic/cli/inspector_client.pyo
 ${PYSITELIB}/sanic/compat.py
 ${PYSITELIB}/sanic/compat.pyc
 ${PYSITELIB}/sanic/compat.pyo
@@ -169,9 +178,15 @@ ${PYSITELIB}/sanic/py.typed
 ${PYSITELIB}/sanic/request.py
 ${PYSITELIB}/sanic/request.pyc
 ${PYSITELIB}/sanic/request.pyo
-${PYSITELIB}/sanic/response.py
-${PYSITELIB}/sanic/response.pyc
-${PYSITELIB}/sanic/response.pyo
+${PYSITELIB}/sanic/response/__init__.py
+${PYSITELIB}/sanic/response/__init__.pyc
+${PYSITELIB}/sanic/response/__init__.pyo
+${PYSITELIB}/sanic/response/convenience.py
+${PYSITELIB}/sanic/response/convenience.pyc
+${PYSITELIB}/sanic/response/convenience.pyo
+${PYSITELIB}/sanic/response/types.py
+${PYSITELIB}/sanic/response/types.pyc
+${PYSITELIB}/sanic/response/types.pyo
 ${PYSITELIB}/sanic/router.py
 ${PYSITELIB}/sanic/router.pyc
 ${PYSITELIB}/sanic/router.pyo
@@ -265,6 +280,9 @@ ${PYSITELIB}/sanic/views.pyo
 ${PYSITELIB}/sanic/worker/__init__.py
 ${PYSITELIB}/sanic/worker/__init__.pyc
 ${PYSITELIB}/sanic/worker/__init__.pyo
+${PYSITELIB}/sanic/worker/constants.py
+${PYSITELIB}/sanic/worker/constants.pyc
+${PYSITELIB}/sanic/worker/constants.pyo
 ${PYSITELIB}/sanic/worker/inspector.py
 ${PYSITELIB}/sanic/worker/inspector.pyc
 ${PYSITELIB}/sanic/worker/inspector.pyo

Index: pkgsrc/www/py-sanic/distinfo
diff -u pkgsrc/www/py-sanic/distinfo:1.27 pkgsrc/www/py-sanic/distinfo:1.28
--- pkgsrc/www/py-sanic/distinfo:1.27   Thu Nov  3 12:46:20 2022
+++ pkgsrc/www/py-sanic/distinfo        Fri Mar  3 09:01:36 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.27 2022/11/03 12:46:20 adam Exp $
+$NetBSD: distinfo,v 1.28 2023/03/03 09:01:36 adam Exp $
 
-BLAKE2s (sanic-22.9.1.tar.gz) = a2ce093589b6169fecfeb8097bf4ebe597c041b89d12f3aaf1fab95d57cbb6d9
-SHA512 (sanic-22.9.1.tar.gz) = 267e35144a5f8f7bb9e2e54dc93dd7b69bd21923adfa138a0c442b837f7e4169caa845620e4644ff78a751ec267be47d4d9439753cb8128170e2b4b5eaaed2f1
-Size (sanic-22.9.1.tar.gz) = 272632 bytes
+BLAKE2s (sanic-22.12.0.tar.gz) = 344a939af4592a1506eb002f416eaf82c5b5701f7763d4fb4f859f9038d222f2
+SHA512 (sanic-22.12.0.tar.gz) = 5559abe7f82ecb065906330bcdd0466ef64368d2f753689153e08fb54aa4ceec679726b3278aa086d3f626c60a11087450e59107404d075d7d471a2c868c4523
+Size (sanic-22.12.0.tar.gz) = 283987 bytes



Home | Main Index | Thread Index | Old Index