diff options
author | adam <adam@pkgsrc.org> | 2019-01-18 08:15:07 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2019-01-18 08:15:07 +0000 |
commit | 83ceab9853c9a326c83b02ee9e6ef7d29903faac (patch) | |
tree | d1afbc22b47c2196438d7c5928ac83f3b3ff2f9b /www/py-sanic | |
parent | d28245497889b7876ce34bf58b17df115782a06d (diff) | |
download | pkgsrc-83ceab9853c9a326c83b02ee9e6ef7d29903faac.tar.gz |
py-sanic: updated to 18.12.0
Version 18.12
18.12.0
Changes:
Improved codebase test coverage from 81% to 91%.
Added stream_large_files and host examples in static_file document
Added methods to append and finish body content on Request
Integrated with .appveyor.yml for windows ci support
Added documentation for AF_INET6 and AF_UNIX socket usage
Adopt black/isort for codestyle
Cancel task when connection_lost
Simplify request ip and port retrieval logic
Handle config error in load config file.
Integrate with codecov for CI
Add missed documentation for config section.
Deprecate Handler.log
Pinned httptools requirement to version 0.0.10+
Fixes:
Fix remove_entity_headers helper function
Fix TypeError when use Blueprint.group() to group blueprint with default url_prefix, Use os.path.normpath to avoid invalid url_prefix like api//v1 f8a6af1 Rename the http module to helpers to prevent conflicts with the built-in Python http library
Fix unittests on windows
Fix Namespacing of sanic logger
Fix missing quotes in decorator example
Fix redirect with quoted param
Fix doc for latest blueprint code
Fix build of latex documentation relating to markdown lists
Fix loop exception handling in app.py
Fix content length mismatch in windows and other platform
Fix Range header handling for static files
Fix the logger and make it work
Fix type pikcle->pickle in multiprocessing test
Fix pickling blueprints Change the string passed in the "name" section of the namedtuples in Blueprint to match the name of the Blueprint module attribute name. This allows blueprints to be pickled and unpickled, without errors, which is a requirment of running Sanic in multiprocessing mode in Windows. Added a test for pickling and unpickling blueprints Added a test for pickling and unpickling sanic itself Added a test for enabling multiprocessing on an app with a blueprint (only useful to catch this bug if the tests are run on Windows).
Fix document for logging
Diffstat (limited to 'www/py-sanic')
-rw-r--r-- | www/py-sanic/Makefile | 8 | ||||
-rw-r--r-- | www/py-sanic/PLIST | 8 | ||||
-rw-r--r-- | www/py-sanic/distinfo | 12 | ||||
-rw-r--r-- | www/py-sanic/patches/patch-setup.py | 10 |
4 files changed, 19 insertions, 19 deletions
diff --git a/www/py-sanic/Makefile b/www/py-sanic/Makefile index 65a22b6592e..d320c79ded5 100644 --- a/www/py-sanic/Makefile +++ b/www/py-sanic/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.7 2018/09/14 07:36:46 adam Exp $ +# $NetBSD: Makefile,v 1.8 2019/01/18 08:15:07 adam Exp $ -DISTNAME= sanic-0.8.3 +DISTNAME= sanic-18.12.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_PYPI:=s/sanic/} @@ -11,11 +11,11 @@ COMMENT= Microframework based on uvloop, httptools, and learnings of flask LICENSE= mit AND apache-2.0 DEPENDS+= ${PYPKGPREFIX}-aiofiles>=0.3.0:../../devel/py-aiofiles -DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.9:../../www/py-httptools +DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.10:../../www/py-httptools DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict DEPENDS+= ${PYPKGPREFIX}-ujson>=1.35:../../textproc/py-ujson DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.5.3:../../devel/py-uvloop -DEPENDS+= ${PYPKGPREFIX}-websockets>=5.0:../../www/py-websockets +DEPENDS+= ${PYPKGPREFIX}-websockets>=6.0:../../www/py-websockets PYTHON_VERSIONS_INCOMPATIBLE= 27 34 diff --git a/www/py-sanic/PLIST b/www/py-sanic/PLIST index b0f9da7b1a9..4d3ad087a66 100644 --- a/www/py-sanic/PLIST +++ b/www/py-sanic/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2018/09/07 11:30:47 adam Exp $ +@comment $NetBSD: PLIST,v 1.4 2019/01/18 08:15:07 adam Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -31,9 +31,9 @@ ${PYSITELIB}/sanic/exceptions.pyo ${PYSITELIB}/sanic/handlers.py ${PYSITELIB}/sanic/handlers.pyc ${PYSITELIB}/sanic/handlers.pyo -${PYSITELIB}/sanic/http.py -${PYSITELIB}/sanic/http.pyc -${PYSITELIB}/sanic/http.pyo +${PYSITELIB}/sanic/helpers.py +${PYSITELIB}/sanic/helpers.pyc +${PYSITELIB}/sanic/helpers.pyo ${PYSITELIB}/sanic/log.py ${PYSITELIB}/sanic/log.pyc ${PYSITELIB}/sanic/log.pyo diff --git a/www/py-sanic/distinfo b/www/py-sanic/distinfo index 4af564562de..719f32f3cb9 100644 --- a/www/py-sanic/distinfo +++ b/www/py-sanic/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.5 2018/09/14 07:36:46 adam Exp $ +$NetBSD: distinfo,v 1.6 2019/01/18 08:15:07 adam Exp $ -SHA1 (sanic-0.8.3.tar.gz) = 3c3dd227851a393e6d2888855bba465d085114ca -RMD160 (sanic-0.8.3.tar.gz) = a40b2d6b1e4ec39e794745901f9617cc38a356a3 -SHA512 (sanic-0.8.3.tar.gz) = 5f3a083df9b41dfcc97479534f6a4a99fb6b4c41c1ef6d31ac8e4dfc417a01500efb82757850e0d9f5c284f2845eb881fe4cf12d1b195bfd0c3c2487d674d20f -Size (sanic-0.8.3.tar.gz) = 45547 bytes -SHA1 (patch-setup.py) = 3860024afc1f509e11fbacb2949ab8788e9c016f +SHA1 (sanic-18.12.0.tar.gz) = 3b5db68b9cadd563d290385c7639530e4bb15718 +RMD160 (sanic-18.12.0.tar.gz) = 2eb65b2e66ab3d8cc62c3325d0b1e3e2a3c6043d +SHA512 (sanic-18.12.0.tar.gz) = 3db5d5da76aa347a3ec9032cbbad7cfd6d176766842f897cb3d3ed26df316d5e422d502b16380f0586111b29e13a6ab0f23eb22b434636a6202767fdf2078462 +Size (sanic-18.12.0.tar.gz) = 48140 bytes +SHA1 (patch-setup.py) = 749acb82eb2e6f93c31bc3a10a577ca2867ee070 diff --git a/www/py-sanic/patches/patch-setup.py b/www/py-sanic/patches/patch-setup.py index 1998be807da..e4bedd58355 100644 --- a/www/py-sanic/patches/patch-setup.py +++ b/www/py-sanic/patches/patch-setup.py @@ -1,16 +1,16 @@ -$NetBSD: patch-setup.py,v 1.1 2018/09/07 11:30:47 adam Exp $ +$NetBSD: patch-setup.py,v 1.2 2019/01/18 08:15:07 adam Exp $ Allow newer versions. ---- setup.py.orig 2018-09-07 10:56:22.000000000 +0000 +--- setup.py.orig 2019-01-18 08:10:59.000000000 +0000 +++ setup.py -@@ -60,8 +60,8 @@ requirements = [ +@@ -61,8 +61,8 @@ requirements = [ uvloop, ujson, 'aiofiles>=0.3.0', -- 'websockets>=5.0,<6.0', +- 'websockets>=6.0,<7.0', - 'multidict>=4.0,<5.0', -+ 'websockets>=5.0', ++ 'websockets>=6.0', + 'multidict>=4.0', ] if strtobool(os.environ.get("SANIC_NO_UJSON", "no")): |