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 Oct 14 08:39:49 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.9.0

Version 22.9.0

Features

* Add custom loads function
* Make WebsocketImplProtocol async iterable
* Sanic Server WorkerManager refactor
* Use pathlib for path resolution (for static file serving)
* Use path.parts instead of match (for static file serving)
* Better request cancel handling
* Add request properties for HTTP method info:
request.is_safe
request.is_idempotent
request.is_cacheable
See MDN docs for more information about when these apply
* Always show server location in ASGI
* Cache control support for static files for returning 304 when appropriate
* Refactor _static_request_handler
* Add signals before and after handler execution
http.handler.before
http.handler.after
* Add [redacted] to CLI :)
* Add deprecation warning filter
* Middleware priority and performance enhancements

Bugfixes

* Prevent directory traversion with static files
* Do not apply double slash to paths in certain static dirs in Blueprints

Deprecations and Removals

* Warn on duplicate route names, will be prevented outright in v23.3
* Raise warning and deprecation notice on duplicate exceptions, will be prevented outright in v23.3

Developer infrastructure

* Cleanup test suite
* Replace Unsupported Python Version Number from the Contributing Doc
* Do not include tests folder in installed package resolver

Improved Documentation

* Fix a few typos
* Add some type hints


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/www/py-sanic/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/www/py-sanic/PLIST
cvs rdiff -u -r1.25 -r1.26 pkgsrc/www/py-sanic/distinfo
cvs rdiff -u -r1.13 -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.29 pkgsrc/www/py-sanic/Makefile:1.30
--- pkgsrc/www/py-sanic/Makefile:1.29   Tue Aug 23 09:35:22 2022
+++ pkgsrc/www/py-sanic/Makefile        Fri Oct 14 08:39:48 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.29 2022/08/23 09:35:22 adam Exp $
+# $NetBSD: Makefile,v 1.30 2022/10/14 08:39:48 adam Exp $
 
-DISTNAME=      sanic-22.6.2
+DISTNAME=      sanic-22.9.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/sanic/}
@@ -13,27 +13,27 @@ 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>=22.3.0:../../www/py-sanic-routing
+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}-websockets>=10.0:../../www/py-websockets
-
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-bandit-[0-9]*:../../wip/py-bandit
 TEST_DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
 TEST_DEPENDS+= ${PYPKGPREFIX}-black-[0-9]*:../../textproc/py-black
-TEST_DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet
+TEST_DEPENDS+= ${PYPKGPREFIX}-chardet>=3.0.0:../../converters/py-chardet
 TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
 TEST_DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
 TEST_DEPENDS+= ${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
 TEST_DEPENDS+= ${PYPKGPREFIX}-gunicorn-[0-9]*:../../www/py-gunicorn
-TEST_DEPENDS+= ${PYPKGPREFIX}-isort-[0-9]*:../../devel/py-isort
-TEST_DEPENDS+= ${PYPKGPREFIX}-mypy-[0-9]*:../../lang/py-mypy
+TEST_DEPENDS+= ${PYPKGPREFIX}-isort>=5.0.0:../../devel/py-isort
+TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>=0.901:../../lang/py-mypy
 TEST_DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
-# sanic-testing
+#TEST_DEPENDS+=        ${PYPKGPREFIX}-sanic-testing>=22.9.0b2:../../www/py-sanic-testing
+#TEST_DEPENDS+=        ${PYPKGPREFIX}-slotscheck>=0.8.0:../../??/py-slotscheck
 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
-# pytest-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
@@ -48,5 +48,8 @@ post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} sanic sanic-${PYVERSSUFFIX} || ${TRUE}
 
+#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.14 pkgsrc/www/py-sanic/PLIST:1.15
--- pkgsrc/www/py-sanic/PLIST:1.14      Tue Aug 23 09:35:22 2022
+++ pkgsrc/www/py-sanic/PLIST   Fri Oct 14 08:39:48 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2022/08/23 09:35:22 adam Exp $
+@comment $NetBSD: PLIST,v 1.15 2022/10/14 08:39:48 adam Exp $
 bin/sanic-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -120,6 +120,9 @@ ${PYSITELIB}/sanic/http/tls/creators.pyo
 ${PYSITELIB}/sanic/log.py
 ${PYSITELIB}/sanic/log.pyc
 ${PYSITELIB}/sanic/log.pyo
+${PYSITELIB}/sanic/middleware.py
+${PYSITELIB}/sanic/middleware.pyc
+${PYSITELIB}/sanic/middleware.pyo
 ${PYSITELIB}/sanic/mixins/__init__.py
 ${PYSITELIB}/sanic/mixins/__init__.pyc
 ${PYSITELIB}/sanic/mixins/__init__.pyo
@@ -135,12 +138,12 @@ ${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
+${PYSITELIB}/sanic/mixins/startup.py
+${PYSITELIB}/sanic/mixins/startup.pyc
+${PYSITELIB}/sanic/mixins/startup.pyo
 ${PYSITELIB}/sanic/models/__init__.py
 ${PYSITELIB}/sanic/models/__init__.pyc
 ${PYSITELIB}/sanic/models/__init__.pyo
@@ -163,9 +166,6 @@ ${PYSITELIB}/sanic/models/server_types.p
 ${PYSITELIB}/sanic/models/server_types.pyc
 ${PYSITELIB}/sanic/models/server_types.pyo
 ${PYSITELIB}/sanic/py.typed
-${PYSITELIB}/sanic/reloader_helpers.py
-${PYSITELIB}/sanic/reloader_helpers.pyc
-${PYSITELIB}/sanic/reloader_helpers.pyo
 ${PYSITELIB}/sanic/request.py
 ${PYSITELIB}/sanic/request.pyc
 ${PYSITELIB}/sanic/request.pyo
@@ -184,6 +184,9 @@ ${PYSITELIB}/sanic/server/async_server.p
 ${PYSITELIB}/sanic/server/events.py
 ${PYSITELIB}/sanic/server/events.pyc
 ${PYSITELIB}/sanic/server/events.pyo
+${PYSITELIB}/sanic/server/legacy.py
+${PYSITELIB}/sanic/server/legacy.pyc
+${PYSITELIB}/sanic/server/legacy.pyo
 ${PYSITELIB}/sanic/server/loop.py
 ${PYSITELIB}/sanic/server/loop.pyc
 ${PYSITELIB}/sanic/server/loop.pyo
@@ -250,9 +253,39 @@ ${PYSITELIB}/sanic/types/__init__.pyo
 ${PYSITELIB}/sanic/types/hashable_dict.py
 ${PYSITELIB}/sanic/types/hashable_dict.pyc
 ${PYSITELIB}/sanic/types/hashable_dict.pyo
+${PYSITELIB}/sanic/types/shared_ctx.py
+${PYSITELIB}/sanic/types/shared_ctx.pyc
+${PYSITELIB}/sanic/types/shared_ctx.pyo
 ${PYSITELIB}/sanic/utils.py
 ${PYSITELIB}/sanic/utils.pyc
 ${PYSITELIB}/sanic/utils.pyo
 ${PYSITELIB}/sanic/views.py
 ${PYSITELIB}/sanic/views.pyc
 ${PYSITELIB}/sanic/views.pyo
+${PYSITELIB}/sanic/worker/__init__.py
+${PYSITELIB}/sanic/worker/__init__.pyc
+${PYSITELIB}/sanic/worker/__init__.pyo
+${PYSITELIB}/sanic/worker/inspector.py
+${PYSITELIB}/sanic/worker/inspector.pyc
+${PYSITELIB}/sanic/worker/inspector.pyo
+${PYSITELIB}/sanic/worker/loader.py
+${PYSITELIB}/sanic/worker/loader.pyc
+${PYSITELIB}/sanic/worker/loader.pyo
+${PYSITELIB}/sanic/worker/manager.py
+${PYSITELIB}/sanic/worker/manager.pyc
+${PYSITELIB}/sanic/worker/manager.pyo
+${PYSITELIB}/sanic/worker/multiplexer.py
+${PYSITELIB}/sanic/worker/multiplexer.pyc
+${PYSITELIB}/sanic/worker/multiplexer.pyo
+${PYSITELIB}/sanic/worker/process.py
+${PYSITELIB}/sanic/worker/process.pyc
+${PYSITELIB}/sanic/worker/process.pyo
+${PYSITELIB}/sanic/worker/reloader.py
+${PYSITELIB}/sanic/worker/reloader.pyc
+${PYSITELIB}/sanic/worker/reloader.pyo
+${PYSITELIB}/sanic/worker/serve.py
+${PYSITELIB}/sanic/worker/serve.pyc
+${PYSITELIB}/sanic/worker/serve.pyo
+${PYSITELIB}/sanic/worker/state.py
+${PYSITELIB}/sanic/worker/state.pyc
+${PYSITELIB}/sanic/worker/state.pyo

Index: pkgsrc/www/py-sanic/distinfo
diff -u pkgsrc/www/py-sanic/distinfo:1.25 pkgsrc/www/py-sanic/distinfo:1.26
--- pkgsrc/www/py-sanic/distinfo:1.25   Tue Aug 23 09:35:22 2022
+++ pkgsrc/www/py-sanic/distinfo        Fri Oct 14 08:39:48 2022
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.25 2022/08/23 09:35:22 adam Exp $
+$NetBSD: distinfo,v 1.26 2022/10/14 08:39:48 adam Exp $
 
-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
+BLAKE2s (sanic-22.9.0.tar.gz) = 0b4235945c980116344b9172ab7400ab4c6eb2480b6715d430c9e89760fa1dd5
+SHA512 (sanic-22.9.0.tar.gz) = 466ef6e21713a964021dd9edc443f095fe9c250d83b04c49312d49c7c08ff16b2df2ab8543c2048c2960ba68ecd0ec3dd07cfcfeea9d9a89cb1ed7fd1c12b536
+Size (sanic-22.9.0.tar.gz) = 272220 bytes



Home | Main Index | Thread Index | Old Index