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 19.3.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/5ad76d27bf6d
branches: trunk
changeset: 394154:5ad76d27bf6d
user: adam <adam%pkgsrc.org@localhost>
date: Thu Apr 04 12:25:38 2019 +0000
description:
py-sanic: updated to 19.3.1
19.3.1
Changes:
* Add support for zero-length and RFC 5987 encoded filename for multipart/form-data requests.
* The type of expires attribute of sanic.cookies.Cookie is now enforced to be of type datetime.
* Add support for the stream parameter of sanic.Sanic.add_route() available to sanic.Blueprint.add_route().
* Accept negative values for route parameters with type int or number.
* Deprecated the use of sanic.request.Request.raw_args - it has a fundamental flaw in which is drops repeated query string parameters. Added sanic.request.Request.query_args as a replacement for the
original use-case.
* Remove an unwanted None check in Request class repr implementation. This changes the default repr of a Request from <Request> to <Request: None />
* Added 2 new parameters to sanic.app.Sanic.create_server:
return_asyncio_server - whether to return an asyncio.Server.
asyncio_server_kwargs - kwargs to pass to loop.create_server for the event loop that sanic is using.
This is a breaking change.
* Added a set of test cases that test and benchmark route resolution.
* The type of the "max-age" value in a sanic.cookies.Cookie is now enforced to be an integer. Non-integer values are replaced with 0.
* Added the endpoint attribute to an incoming request, containing the name of the handler function.
* Improved request streaming. request.stream is now a bounded-size buffer instead of an unbounded queue. Callers must now call await request.stream.read() instead of await request.stream.get() to
read each portion of the body.
This is a breaking change.
Fixes:
* Sanic was prefetching time.time() and updating it once per second to avoid excessive time.time() calls. The implementation was observed to cause memory leaks in some cases. The benefit of the
prefetch appeared to negligible, so this has been removed. Fixes
* Fix a bug in the auto-reloader when the process was launched as a module i.e. python -m init0.mod1 where the sanic server is started in init0/mod1.py with debug enabled and imports another module
in init0.
* Allow sanic test client to bind to a random port by specifying port=None when constructing a SanicTestClient
* Added the ability to specify middleware on a blueprint group, so that all routes produced from the blueprints in the group have the middleware applied.
* Allow the the use the SANIC_ACCESS_LOG environment variable to enable/disable the access log when not explicitly passed to app.run(). This allows the access log to be disabled for example when
running via gunicorn.
Developer infrastructure:
* Update project PyPI credentials
* fix linter issue causing travis build failures
* Fix python version in doc build
* Upgrade setuptools version and use native docutils in doc build
* Upgrade pytest, and fix caplog unit tests
Typos and Documentation:
* Fix typo at the exception documentation
* fix typo in Asyncio example
* Documentation typo
* Fix grammar in README.md
* Added "databases" to the extensions list
* Add sanic-zipkin to extensions list
* Removed link to deleted repo, Sanic-OAuth, from the extensions list
* 18.12 changelog
* Add example of amending request object
* Update README
* Update README
* Update README, including new logo
* fix minor type and pip install instruction mismatch
* Documentation Enhancements
diffstat:
www/py-sanic/Makefile | 4 ++--
www/py-sanic/PLIST | 5 ++++-
www/py-sanic/distinfo | 12 ++++++------
www/py-sanic/patches/patch-setup.py | 20 ++++++++++----------
4 files changed, 22 insertions(+), 19 deletions(-)
diffs (79 lines):
diff -r a5db893a0173 -r 5ad76d27bf6d www/py-sanic/Makefile
--- a/www/py-sanic/Makefile Thu Apr 04 11:55:22 2019 +0000
+++ b/www/py-sanic/Makefile Thu Apr 04 12:25:38 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2019/01/18 08:15:07 adam Exp $
+# $NetBSD: Makefile,v 1.9 2019/04/04 12:25:38 adam Exp $
-DISTNAME= sanic-18.12.0
+DISTNAME= sanic-19.3.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/sanic/}
diff -r a5db893a0173 -r 5ad76d27bf6d www/py-sanic/PLIST
--- a/www/py-sanic/PLIST Thu Apr 04 11:55:22 2019 +0000
+++ b/www/py-sanic/PLIST Thu Apr 04 12:25:38 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2019/01/18 08:15:07 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2019/04/04 12:25:38 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -13,6 +13,9 @@
${PYSITELIB}/sanic/app.py
${PYSITELIB}/sanic/app.pyc
${PYSITELIB}/sanic/app.pyo
+${PYSITELIB}/sanic/blueprint_group.py
+${PYSITELIB}/sanic/blueprint_group.pyc
+${PYSITELIB}/sanic/blueprint_group.pyo
${PYSITELIB}/sanic/blueprints.py
${PYSITELIB}/sanic/blueprints.pyc
${PYSITELIB}/sanic/blueprints.pyo
diff -r a5db893a0173 -r 5ad76d27bf6d www/py-sanic/distinfo
--- a/www/py-sanic/distinfo Thu Apr 04 11:55:22 2019 +0000
+++ b/www/py-sanic/distinfo Thu Apr 04 12:25:38 2019 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.6 2019/01/18 08:15:07 adam Exp $
+$NetBSD: distinfo,v 1.7 2019/04/04 12:25:38 adam Exp $
-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
+SHA1 (sanic-19.3.1.tar.gz) = c659db8a0139733cde46298e2daf8460b2a9d580
+RMD160 (sanic-19.3.1.tar.gz) = 243e4eb0ae0159f292167d9a842d98ca18d9cdf3
+SHA512 (sanic-19.3.1.tar.gz) = bcc41997b9ffc314bbe2703e248217410418a6bd6a27594d1100d06cafeff9157bfdf1459c207806d0320ffb916d970942a48b31bf4a25263f373cd57822ed31
+Size (sanic-19.3.1.tar.gz) = 117016 bytes
+SHA1 (patch-setup.py) = c5f769c23ca81c08212cfd87e093995fc615725b
diff -r a5db893a0173 -r 5ad76d27bf6d www/py-sanic/patches/patch-setup.py
--- a/www/py-sanic/patches/patch-setup.py Thu Apr 04 11:55:22 2019 +0000
+++ b/www/py-sanic/patches/patch-setup.py Thu Apr 04 12:25:38 2019 +0000
@@ -1,17 +1,17 @@
-$NetBSD: patch-setup.py,v 1.2 2019/01/18 08:15:07 adam Exp $
+$NetBSD: patch-setup.py,v 1.3 2019/04/04 12:25:38 adam Exp $
Allow newer versions.
---- setup.py.orig 2019-01-18 08:10:59.000000000 +0000
+--- setup.py.orig 2019-03-23 02:52:58.000000000 +0000
+++ setup.py
-@@ -61,8 +61,8 @@ requirements = [
+@@ -81,8 +81,8 @@ requirements = [
uvloop,
ujson,
- 'aiofiles>=0.3.0',
-- 'websockets>=6.0,<7.0',
-- 'multidict>=4.0,<5.0',
-+ 'websockets>=6.0',
-+ 'multidict>=4.0',
+ "aiofiles>=0.3.0",
+- "websockets>=6.0,<7.0",
+- "multidict>=4.0,<5.0",
++ "websockets>=6.0",
++ "multidict>=4.0",
]
- if strtobool(os.environ.get("SANIC_NO_UJSON", "no")):
- print("Installing without uJSON")
+
+ tests_require = [
Home |
Main Index |
Thread Index |
Old Index