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.9.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/d5ba9af2d4f2
branches: trunk
changeset: 386727:d5ba9af2d4f2
user: adam <adam%pkgsrc.org@localhost>
date: Fri Oct 14 08:39:48 2022 +0000
description:
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
diffstat:
www/py-sanic/Makefile | 21 +++++++++-------
www/py-sanic/PLIST | 47 +++++++++++++++++++++++++++++++-----
www/py-sanic/distinfo | 9 +++---
www/py-sanic/patches/patch-setup.py | 16 ------------
4 files changed, 56 insertions(+), 37 deletions(-)
diffs (185 lines):
diff -r 41c161c67845 -r d5ba9af2d4f2 www/py-sanic/Makefile
--- a/www/py-sanic/Makefile Fri Oct 14 08:29:37 2022 +0000
+++ b/www/py-sanic/Makefile Fri Oct 14 08:39:48 2022 +0000
@@ -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 @@
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 @@
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"
diff -r 41c161c67845 -r d5ba9af2d4f2 www/py-sanic/PLIST
--- a/www/py-sanic/PLIST Fri Oct 14 08:29:37 2022 +0000
+++ b/www/py-sanic/PLIST Fri Oct 14 08:39:48 2022 +0000
@@ -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/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/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.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/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/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
diff -r 41c161c67845 -r d5ba9af2d4f2 www/py-sanic/distinfo
--- a/www/py-sanic/distinfo Fri Oct 14 08:29:37 2022 +0000
+++ b/www/py-sanic/distinfo Fri Oct 14 08:39:48 2022 +0000
@@ -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
diff -r 41c161c67845 -r d5ba9af2d4f2 www/py-sanic/patches/patch-setup.py
--- a/www/py-sanic/patches/patch-setup.py Fri Oct 14 08:29:37 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$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