py-sanic: updated to 20.9.0 Version 20.9.0 Features * Pass subprotocols in websockets (both sanic server and ASGI) * Automatically set test_mode flag on app instance * Add new unified method for updating app values * Adds WEBSOCKET_PING_TIMEOUT and WEBSOCKET_PING_INTERVAL configuration values * httpx version dependency updated, it is slated for removal as a dependency in v20.12 * Added auto, text, and json fallback error handlers (in v21.3, the default will change form html to auto) Bugfixes * Resolves exception from unread bytes in stream Deprecations and Removals * config.from_envar, config.from_pyfile, and config.from_object are deprecated and set to be removed in v21.3 Developer infrastructure * Update isort calls to be compatible with new API * Remove version section from setup.cfg * Adding --strict-markers for pytest Improved Documentation * Add explicit ASGI compliance to the READMEdiff -r1.14 -r1.15 pkgsrc/www/py-sanic/Makefile
(adam)
@@ -1,31 +1,31 @@ | @@ -1,31 +1,31 @@ | |||
1 | # $NetBSD: Makefile,v 1.14 2020/06/29 14:29:20 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.15 2020/10/01 06:53:12 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= sanic-20.6.3 | 3 | DISTNAME= sanic-20.9.0 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= www python | 5 | CATEGORIES= www python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=s/sanic/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=s/sanic/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/channelcat/sanic | 9 | HOMEPAGE= https://github.com/channelcat/sanic | |
10 | COMMENT= Microframework based on uvloop, httptools, and learnings of flask | 10 | COMMENT= Microframework based on uvloop, httptools, and learnings of flask | |
11 | LICENSE= mit AND apache-2.0 | 11 | LICENSE= mit AND apache-2.0 | |
12 | 12 | |||
13 | DEPENDS+= ${PYPKGPREFIX}-aiofiles>=0.3.0:../../devel/py-aiofiles | 13 | DEPENDS+= ${PYPKGPREFIX}-aiofiles>=0.3.0:../../devel/py-aiofiles | |
14 | DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.10:../../www/py-httptools | 14 | DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.10:../../www/py-httptools | |
15 | DEPENDS+= ${PYPKGPREFIX}-httpx>=0.9.3:../../www/py-httpx | 15 | DEPENDS+= ${PYPKGPREFIX}-httpx>=0.15.4:../../www/py-httpx | |
16 | DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict | 16 | DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict | |
17 | DEPENDS+= ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson | 17 | DEPENDS+= ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson | |
18 | DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop | 18 | DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop | |
19 | DEPENDS+= ${PYPKGPREFIX}-websockets>=7.0:../../www/py-websockets | 19 | DEPENDS+= ${PYPKGPREFIX}-websockets>=8.1:../../www/py-websockets | |
20 | TEST_DEPENDS+= ${PYPKGPREFIX}-uvicorn-[0-9]*:../../www/py-uvicorn | 20 | TEST_DEPENDS+= ${PYPKGPREFIX}-uvicorn-[0-9]*:../../www/py-uvicorn | |
21 | 21 | |||
22 | USE_LANGUAGES= # none | 22 | USE_LANGUAGES= # none | |
23 | 23 | |||
24 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | 24 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
25 | 25 | |||
26 | post-install: | 26 | post-install: | |
27 | cd ${DESTDIR}${PREFIX}/bin && \ | 27 | cd ${DESTDIR}${PREFIX}/bin && \ | |
28 | ${MV} sanic sanic-${PYVERSSUFFIX} || ${TRUE} | 28 | ${MV} sanic sanic-${PYVERSSUFFIX} || ${TRUE} | |
29 | 29 | |||
30 | .include "../../lang/python/egg.mk" | 30 | .include "../../lang/python/egg.mk" | |
31 | .include "../../mk/bsd.pkg.mk" | 31 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.8 2020/06/29 14:29:20 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.9 2020/10/01 06:53:12 adam Exp $ | |
2 | bin/sanic-${PYVERSSUFFIX} | 2 | bin/sanic-${PYVERSSUFFIX} | |
3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
6 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | 6 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | |
7 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | 7 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | |
8 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 8 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
9 | ${PYSITELIB}/sanic/__init__.py | 9 | ${PYSITELIB}/sanic/__init__.py | |
10 | ${PYSITELIB}/sanic/__init__.pyc | 10 | ${PYSITELIB}/sanic/__init__.pyc | |
11 | ${PYSITELIB}/sanic/__init__.pyo | 11 | ${PYSITELIB}/sanic/__init__.pyo | |
12 | ${PYSITELIB}/sanic/__main__.py | 12 | ${PYSITELIB}/sanic/__main__.py | |
13 | ${PYSITELIB}/sanic/__main__.pyc | 13 | ${PYSITELIB}/sanic/__main__.pyc | |
14 | ${PYSITELIB}/sanic/__main__.pyo | 14 | ${PYSITELIB}/sanic/__main__.pyo | |
@@ -29,26 +29,29 @@ ${PYSITELIB}/sanic/blueprints.pyc | @@ -29,26 +29,29 @@ ${PYSITELIB}/sanic/blueprints.pyc | |||
29 | ${PYSITELIB}/sanic/blueprints.pyo | 29 | ${PYSITELIB}/sanic/blueprints.pyo | |
30 | ${PYSITELIB}/sanic/compat.py | 30 | ${PYSITELIB}/sanic/compat.py | |
31 | ${PYSITELIB}/sanic/compat.pyc | 31 | ${PYSITELIB}/sanic/compat.pyc | |
32 | ${PYSITELIB}/sanic/compat.pyo | 32 | ${PYSITELIB}/sanic/compat.pyo | |
33 | ${PYSITELIB}/sanic/config.py | 33 | ${PYSITELIB}/sanic/config.py | |
34 | ${PYSITELIB}/sanic/config.pyc | 34 | ${PYSITELIB}/sanic/config.pyc | |
35 | ${PYSITELIB}/sanic/config.pyo | 35 | ${PYSITELIB}/sanic/config.pyo | |
36 | ${PYSITELIB}/sanic/constants.py | 36 | ${PYSITELIB}/sanic/constants.py | |
37 | ${PYSITELIB}/sanic/constants.pyc | 37 | ${PYSITELIB}/sanic/constants.pyc | |
38 | ${PYSITELIB}/sanic/constants.pyo | 38 | ${PYSITELIB}/sanic/constants.pyo | |
39 | ${PYSITELIB}/sanic/cookies.py | 39 | ${PYSITELIB}/sanic/cookies.py | |
40 | ${PYSITELIB}/sanic/cookies.pyc | 40 | ${PYSITELIB}/sanic/cookies.pyc | |
41 | ${PYSITELIB}/sanic/cookies.pyo | 41 | ${PYSITELIB}/sanic/cookies.pyo | |
42 | ${PYSITELIB}/sanic/deprecated.py | |||
43 | ${PYSITELIB}/sanic/deprecated.pyc | |||
44 | ${PYSITELIB}/sanic/deprecated.pyo | |||
42 | ${PYSITELIB}/sanic/errorpages.py | 45 | ${PYSITELIB}/sanic/errorpages.py | |
43 | ${PYSITELIB}/sanic/errorpages.pyc | 46 | ${PYSITELIB}/sanic/errorpages.pyc | |
44 | ${PYSITELIB}/sanic/errorpages.pyo | 47 | ${PYSITELIB}/sanic/errorpages.pyo | |
45 | ${PYSITELIB}/sanic/exceptions.py | 48 | ${PYSITELIB}/sanic/exceptions.py | |
46 | ${PYSITELIB}/sanic/exceptions.pyc | 49 | ${PYSITELIB}/sanic/exceptions.pyc | |
47 | ${PYSITELIB}/sanic/exceptions.pyo | 50 | ${PYSITELIB}/sanic/exceptions.pyo | |
48 | ${PYSITELIB}/sanic/handlers.py | 51 | ${PYSITELIB}/sanic/handlers.py | |
49 | ${PYSITELIB}/sanic/handlers.pyc | 52 | ${PYSITELIB}/sanic/handlers.pyc | |
50 | ${PYSITELIB}/sanic/handlers.pyo | 53 | ${PYSITELIB}/sanic/handlers.pyo | |
51 | ${PYSITELIB}/sanic/headers.py | 54 | ${PYSITELIB}/sanic/headers.py | |
52 | ${PYSITELIB}/sanic/headers.pyc | 55 | ${PYSITELIB}/sanic/headers.pyc | |
53 | ${PYSITELIB}/sanic/headers.pyo | 56 | ${PYSITELIB}/sanic/headers.pyo | |
54 | ${PYSITELIB}/sanic/helpers.py | 57 | ${PYSITELIB}/sanic/helpers.py | |
@@ -68,22 +71,25 @@ ${PYSITELIB}/sanic/response.pyc | @@ -68,22 +71,25 @@ ${PYSITELIB}/sanic/response.pyc | |||
68 | ${PYSITELIB}/sanic/response.pyo | 71 | ${PYSITELIB}/sanic/response.pyo | |
69 | ${PYSITELIB}/sanic/router.py | 72 | ${PYSITELIB}/sanic/router.py | |
70 | ${PYSITELIB}/sanic/router.pyc | 73 | ${PYSITELIB}/sanic/router.pyc | |
71 | ${PYSITELIB}/sanic/router.pyo | 74 | ${PYSITELIB}/sanic/router.pyo | |
72 | ${PYSITELIB}/sanic/server.py | 75 | ${PYSITELIB}/sanic/server.py | |
73 | ${PYSITELIB}/sanic/server.pyc | 76 | ${PYSITELIB}/sanic/server.pyc | |
74 | ${PYSITELIB}/sanic/server.pyo | 77 | ${PYSITELIB}/sanic/server.pyo | |
75 | ${PYSITELIB}/sanic/static.py | 78 | ${PYSITELIB}/sanic/static.py | |
76 | ${PYSITELIB}/sanic/static.pyc | 79 | ${PYSITELIB}/sanic/static.pyc | |
77 | ${PYSITELIB}/sanic/static.pyo | 80 | ${PYSITELIB}/sanic/static.pyo | |
78 | ${PYSITELIB}/sanic/testing.py | 81 | ${PYSITELIB}/sanic/testing.py | |
79 | ${PYSITELIB}/sanic/testing.pyc | 82 | ${PYSITELIB}/sanic/testing.pyc | |
80 | ${PYSITELIB}/sanic/testing.pyo | 83 | ${PYSITELIB}/sanic/testing.pyo | |
84 | ${PYSITELIB}/sanic/utils.py | |||
85 | ${PYSITELIB}/sanic/utils.pyc | |||
86 | ${PYSITELIB}/sanic/utils.pyo | |||
81 | ${PYSITELIB}/sanic/views.py | 87 | ${PYSITELIB}/sanic/views.py | |
82 | ${PYSITELIB}/sanic/views.pyc | 88 | ${PYSITELIB}/sanic/views.pyc | |
83 | ${PYSITELIB}/sanic/views.pyo | 89 | ${PYSITELIB}/sanic/views.pyo | |
84 | ${PYSITELIB}/sanic/websocket.py | 90 | ${PYSITELIB}/sanic/websocket.py | |
85 | ${PYSITELIB}/sanic/websocket.pyc | 91 | ${PYSITELIB}/sanic/websocket.pyc | |
86 | ${PYSITELIB}/sanic/websocket.pyo | 92 | ${PYSITELIB}/sanic/websocket.pyo | |
87 | ${PYSITELIB}/sanic/worker.py | 93 | ${PYSITELIB}/sanic/worker.py | |
88 | ${PYSITELIB}/sanic/worker.pyc | 94 | ${PYSITELIB}/sanic/worker.pyc | |
89 | ${PYSITELIB}/sanic/worker.pyo | 95 | ${PYSITELIB}/sanic/worker.pyo |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.11 2020/06/29 14:29:20 adam Exp $ | 1 | $NetBSD: distinfo,v 1.12 2020/10/01 06:53:12 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (sanic-20.6.3.tar.gz) = 5705b7f51f10c63ccec2978bd1413da140243fb9 | 3 | SHA1 (sanic-20.9.0.tar.gz) = 34065045f83e4a451b2606cf82a3e23ad4306d8f | |
4 | RMD160 (sanic-20.6.3.tar.gz) = 9931fb982e96cdfa81c084d994543bb1ce685450 | 4 | RMD160 (sanic-20.9.0.tar.gz) = 63ffe38b0b2006bdfba6e46ecf42eecd06822ffb | |
5 | SHA512 (sanic-20.6.3.tar.gz) = e04bcc223a9095c7c6f7d3dab0d29b8899dbe15d7c5f3f7d50a27670166a58ba680bca6ecabc5134e645d89d898650d1d8798e8ca8e47e43f3ef788bd6f442b8 | 5 | SHA512 (sanic-20.9.0.tar.gz) = 4f5ea058f65fa6c5f4ffa00af9f48108801dcfa19d750a0fafd688517eaeca9264d0aa82d6ceb7668abcaf9ba2b1dbeb7ce7339837619597ede322b1d600a588 | |
6 | Size (sanic-20.6.3.tar.gz) = 142170 bytes | 6 | Size (sanic-20.9.0.tar.gz) = 146608 bytes | |
7 | SHA1 (patch-setup.py) = c5582ae42d6cc459e37bafe9a21a301c0d65ed21 | 7 | SHA1 (patch-setup.py) = 8c749c3f50c63a37fd588ea1107b55eeaef34851 |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: patch-setup.py,v 1.6 2020/06/29 14:29:20 adam Exp $ | 1 | $NetBSD: patch-setup.py,v 1.7 2020/10/01 06:53:12 adam Exp $ | |
2 | 2 | |||
3 | Allow newer versions. | 3 | Allow newer versions. | |
4 | 4 | |||
5 | --- setup.py.orig 2020-06-28 10:14:53.000000000 +0000 | 5 | --- setup.py.orig 2020-09-30 14:40:18.000000000 +0000 | |
6 | +++ setup.py | 6 | +++ setup.py | |
7 | @@ -81,7 +81,7 @@ requirements = [ | 7 | @@ -81,7 +81,7 @@ requirements = [ | |
8 | "aiofiles>=0.3.0", | 8 | "aiofiles>=0.3.0", | |
9 | "websockets>=8.1,<9.0", | 9 | "websockets>=8.1,<9.0", | |
10 | "multidict>=4.0,<5.0", | 10 | "multidict>=4.0,<5.0", | |
11 | - "httpx==0.11.1", | 11 | - "httpx==0.15.4", | |
12 | + "httpx>=0.11.1", | 12 | + "httpx>=0.15.4", | |
13 | ] | 13 | ] | |
14 | 14 | |||
15 | tests_require = [ | 15 | tests_require = [ |