Mon Jun 29 14:29:20 2020 UTC ()
py-sanic: updated to 20.6.3

Version 20.6.3

Bugfixes
* Revert change to multiprocessing mode

Version 20.6.2

Features
* Socket binding implemented properly for IPv6 and UNIX sockets

Version 20.6.1

Features
* Add version parameter to websocket routes
* Add sanic as an entry point command
* Add handler names for websockets for url_for usage

Bugfixes
* Bug fix for host parameter issue with lists
* Fix static _handler pickling error
* Fix reloader on OSX py38 and Windows
* Reverse named_response_middlware execution order, to match normal response middleware execution order
* Fix pickle error when attempting to pickle an application which contains websocket routes

Deprecations and Removals
* Deprecate body_bytes to merge into body

Developer infrastructure
* Fix naming of CI test env on Python nightlies
* Adjust websockets version to setup.py
* Wrap run()'s "protocol" type annotation in Optional[]

Improved Documentation
* Update docs to clarify response middleware execution order
* Fixing rst format issue that was hiding documentation


(adam)
diff -r1.13 -r1.14 pkgsrc/www/py-sanic/Makefile
diff -r1.7 -r1.8 pkgsrc/www/py-sanic/PLIST
diff -r1.10 -r1.11 pkgsrc/www/py-sanic/distinfo
diff -r1.5 -r1.6 pkgsrc/www/py-sanic/patches/patch-setup.py

cvs diff -r1.13 -r1.14 pkgsrc/www/py-sanic/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-sanic/Makefile 2020/05/15 08:32:34 1.13
+++ pkgsrc/www/py-sanic/Makefile 2020/06/29 14:29:20 1.14
@@ -1,27 +1,31 @@ @@ -1,27 +1,31 @@
1# $NetBSD: Makefile,v 1.13 2020/05/15 08:32:34 adam Exp $ 1# $NetBSD: Makefile,v 1.14 2020/06/29 14:29:20 adam Exp $
2 2
3DISTNAME= sanic-20.3.0 3DISTNAME= sanic-20.6.3
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= www python 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=s/sanic/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=s/sanic/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/channelcat/sanic 9HOMEPAGE= https://github.com/channelcat/sanic
10COMMENT= Microframework based on uvloop, httptools, and learnings of flask 10COMMENT= Microframework based on uvloop, httptools, and learnings of flask
11LICENSE= mit AND apache-2.0 11LICENSE= mit AND apache-2.0
12 12
13DEPENDS+= ${PYPKGPREFIX}-aiofiles>=0.3.0:../../devel/py-aiofiles 13DEPENDS+= ${PYPKGPREFIX}-aiofiles>=0.3.0:../../devel/py-aiofiles
14DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.10:../../www/py-httptools 14DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.10:../../www/py-httptools
15DEPENDS+= ${PYPKGPREFIX}-httpx>=0.9.3:../../www/py-httpx 15DEPENDS+= ${PYPKGPREFIX}-httpx>=0.9.3:../../www/py-httpx
16DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict 16DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict
17DEPENDS+= ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson 17DEPENDS+= ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson
18DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop 18DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop
19DEPENDS+= ${PYPKGPREFIX}-websockets>=7.0:../../www/py-websockets 19DEPENDS+= ${PYPKGPREFIX}-websockets>=7.0:../../www/py-websockets
20TEST_DEPENDS+= ${PYPKGPREFIX}-uvicorn-[0-9]*:../../www/py-uvicorn 20TEST_DEPENDS+= ${PYPKGPREFIX}-uvicorn-[0-9]*:../../www/py-uvicorn
21 21
22USE_LANGUAGES= # none 22USE_LANGUAGES= # none
23 23
24PYTHON_VERSIONS_INCOMPATIBLE= 27 24PYTHON_VERSIONS_INCOMPATIBLE= 27
25 25
 26post-install:
 27 cd ${DESTDIR}${PREFIX}/bin && \
 28 ${MV} sanic sanic-${PYVERSSUFFIX} || ${TRUE}
 29
26.include "../../lang/python/egg.mk" 30.include "../../lang/python/egg.mk"
27.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/www/py-sanic/PLIST (expand / switch to unified diff)

--- pkgsrc/www/py-sanic/PLIST 2020/05/15 08:32:34 1.7
+++ pkgsrc/www/py-sanic/PLIST 2020/06/29 14:29:20 1.8
@@ -1,17 +1,19 @@ @@ -1,17 +1,19 @@
1@comment $NetBSD: PLIST,v 1.7 2020/05/15 08:32:34 adam Exp $ 1@comment $NetBSD: PLIST,v 1.8 2020/06/29 14:29:20 adam Exp $
 2bin/sanic-${PYVERSSUFFIX}
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 3${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 4${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 5${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 6${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
5${PYSITELIB}/${EGG_INFODIR}/requires.txt 7${PYSITELIB}/${EGG_INFODIR}/requires.txt
6${PYSITELIB}/${EGG_INFODIR}/top_level.txt 8${PYSITELIB}/${EGG_INFODIR}/top_level.txt
7${PYSITELIB}/sanic/__init__.py 9${PYSITELIB}/sanic/__init__.py
8${PYSITELIB}/sanic/__init__.pyc 10${PYSITELIB}/sanic/__init__.pyc
9${PYSITELIB}/sanic/__init__.pyo 11${PYSITELIB}/sanic/__init__.pyo
10${PYSITELIB}/sanic/__main__.py 12${PYSITELIB}/sanic/__main__.py
11${PYSITELIB}/sanic/__main__.pyc 13${PYSITELIB}/sanic/__main__.pyc
12${PYSITELIB}/sanic/__main__.pyo 14${PYSITELIB}/sanic/__main__.pyo
13${PYSITELIB}/sanic/__version__.py 15${PYSITELIB}/sanic/__version__.py
14${PYSITELIB}/sanic/__version__.pyc 16${PYSITELIB}/sanic/__version__.pyc
15${PYSITELIB}/sanic/__version__.pyo 17${PYSITELIB}/sanic/__version__.pyo
16${PYSITELIB}/sanic/app.py 18${PYSITELIB}/sanic/app.py
17${PYSITELIB}/sanic/app.pyc 19${PYSITELIB}/sanic/app.pyc

cvs diff -r1.10 -r1.11 pkgsrc/www/py-sanic/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-sanic/distinfo 2020/05/15 08:32:34 1.10
+++ pkgsrc/www/py-sanic/distinfo 2020/06/29 14:29:20 1.11
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.10 2020/05/15 08:32:34 adam Exp $ 1$NetBSD: distinfo,v 1.11 2020/06/29 14:29:20 adam Exp $
2 2
3SHA1 (sanic-20.3.0.tar.gz) = bc0b20452b57738576c872d563a52e6a6c6be657 3SHA1 (sanic-20.6.3.tar.gz) = 5705b7f51f10c63ccec2978bd1413da140243fb9
4RMD160 (sanic-20.3.0.tar.gz) = c6d2814bb1268c99f19b33c0526e6034b2eacdcb 4RMD160 (sanic-20.6.3.tar.gz) = 9931fb982e96cdfa81c084d994543bb1ce685450
5SHA512 (sanic-20.3.0.tar.gz) = 3a9dcdaa1fb77437b2c9fcb98e355eac942992ffb081e0c084227f6b7a221b33468c34e9eb7cad78e76801ea674429332274cb3ccc5f0d88db28fbab3ee5d032 5SHA512 (sanic-20.6.3.tar.gz) = e04bcc223a9095c7c6f7d3dab0d29b8899dbe15d7c5f3f7d50a27670166a58ba680bca6ecabc5134e645d89d898650d1d8798e8ca8e47e43f3ef788bd6f442b8
6Size (sanic-20.3.0.tar.gz) = 137407 bytes 6Size (sanic-20.6.3.tar.gz) = 142170 bytes
7SHA1 (patch-setup.py) = 8696f831fe811829e3908a8b4dd4f6337475f893 7SHA1 (patch-setup.py) = c5582ae42d6cc459e37bafe9a21a301c0d65ed21

cvs diff -r1.5 -r1.6 pkgsrc/www/py-sanic/patches/Attic/patch-setup.py (expand / switch to unified diff)

--- pkgsrc/www/py-sanic/patches/Attic/patch-setup.py 2020/05/15 08:32:34 1.5
+++ pkgsrc/www/py-sanic/patches/Attic/patch-setup.py 2020/06/29 14:29:20 1.6
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1$NetBSD: patch-setup.py,v 1.5 2020/05/15 08:32:34 adam Exp $ 1$NetBSD: patch-setup.py,v 1.6 2020/06/29 14:29:20 adam Exp $
2 2
3Allow newer versions. 3Allow newer versions.
4 4
5--- setup.py.orig 2020-05-14 19:06:33.000000000 +0000 5--- setup.py.orig 2020-06-28 10:14:53.000000000 +0000
6+++ setup.py 6+++ setup.py
7@@ -85,7 +85,7 @@ requirements = [ 7@@ -81,7 +81,7 @@ requirements = [
8 "aiofiles>=0.3.0", 8 "aiofiles>=0.3.0",
9 "websockets>=7.0,<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.11.1",
12+ "httpx>=0.11.1", 12+ "httpx>=0.11.1",
13 ] 13 ]
14  14
15 tests_require = [ 15 tests_require = [