pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-falcon py-falcon: updated to 1.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f81cab55689
branches:  trunk
changeset: 375836:9f81cab55689
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Feb 22 11:14:19 2018 +0000

description:
py-falcon: updated to 1.4.0

1.4.0:
Changes to Supported Platforms

Python 3 is now supported on PyPy as of PyPy3.5 v5.10.
Support for CPython 3.3 is now deprecated and will be removed in Falcon 2.0.
As with the previous release, Python 2.6 and Jython 2.7 remain deprecated and will no longer be supported in Falcon 2.0.

New & Improved

We added a new method, API.add_static_route(), that makes it easy to serve files from a local directory. This feature provides an alternative to serving files from the web server when you don't have 
that option, when authorization is required, or for testing purposes.
Arguments can now be passed to hooks.
The default JSON media type handler will now use ujson, if available, to speed up JSON (de)serialization under CPython.
Semantic validation via the format keyword is now enabled for the falcon.media.validators.jsonschema.validate() JSON Schema decorator.
We added a new helper, falcon.Request.get_param_as_uuid(), to the Request class.
We added a new property, downloadable_as, to the Response class for setting the Content-Disposition header.
Falcon now supports WebDAV methods (RFC 3253), such as UPDATE and REPORT.
falcon.routing.create_http_method_map has been refactored into two new methods, falcon.routing.map_http_methods and falcon.routing.set_default_responders, so that custom routers can better pick and 
choose the functionality they need. The original method is still available for backwards-compatibility, but will be removed in a future release.
We added a new json param to falcon.testing.simulate_request() et al. to automatically serialize the request body from a JSON serializable object or type (for a complete list of serializable types, 
see json.JSONEncoder).
TestClient's simulate_*() methods now call TestClient.simulate_request to make it easier for subclasses to override TestClient's behavior.
TestClient can now be configured with a default set of headers to send with every request.
testing.Result.json now returns None when the response body is empty, rather than raising an error.
The FAQ has been reorganized and greatly expanded.
We restyled the docs to match https://falconframework.org

Fixed

Forwarded headers containing quoted strings with commas were not being parsed correctly. This has been fixed, and the parser generally made more robust.
falcon.media.JSONHandler was raising an error under Python 2.x when serializing strings containing Unicode code points. This issue has been fixed.
Overriding a resource class and calling its responders via super() did not work when passing URI template params as positional arguments. This has now been fixed.
Python 3.6 was generating warnings for strings containing '\s' within Falcon. These strings have been converted to raw strings to mitigate the warning.
Several syntax errors were found and fixed in the code examples used in the docs.

diffstat:

 devel/py-falcon/Makefile |   4 ++--
 devel/py-falcon/PLIST    |  14 +++++++++++++-
 devel/py-falcon/distinfo |  10 +++++-----
 3 files changed, 20 insertions(+), 8 deletions(-)

diffs (78 lines):

diff -r 8565b4dc6307 -r 9f81cab55689 devel/py-falcon/Makefile
--- a/devel/py-falcon/Makefile  Thu Feb 22 11:13:00 2018 +0000
+++ b/devel/py-falcon/Makefile  Thu Feb 22 11:14:19 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2017/12/22 05:53:05 adam Exp $
+# $NetBSD: Makefile,v 1.4 2018/02/22 11:14:19 adam Exp $
 
-DISTNAME=      falcon-1.3.0
+DISTNAME=      falcon-1.4.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=f/falcon/}
diff -r 8565b4dc6307 -r 9f81cab55689 devel/py-falcon/PLIST
--- a/devel/py-falcon/PLIST     Thu Feb 22 11:13:00 2018 +0000
+++ b/devel/py-falcon/PLIST     Thu Feb 22 11:14:19 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2017/12/22 05:53:05 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/02/22 11:14:19 adam Exp $
 bin/falcon-bench-${PYVERSSUFFIX}
 bin/falcon-print-routes-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@@ -138,6 +138,10 @@
 ${PYSITELIB}/falcon/errors.pyc
 ${PYSITELIB}/falcon/errors.pyo
 ${PYSITELIB}/falcon/errors.so
+${PYSITELIB}/falcon/forwarded.py
+${PYSITELIB}/falcon/forwarded.pyc
+${PYSITELIB}/falcon/forwarded.pyo
+${PYSITELIB}/falcon/forwarded.so
 ${PYSITELIB}/falcon/hooks.py
 ${PYSITELIB}/falcon/hooks.pyc
 ${PYSITELIB}/falcon/hooks.pyo
@@ -156,15 +160,19 @@
 ${PYSITELIB}/falcon/media/base.py
 ${PYSITELIB}/falcon/media/base.pyc
 ${PYSITELIB}/falcon/media/base.pyo
+${PYSITELIB}/falcon/media/base.so
 ${PYSITELIB}/falcon/media/handlers.py
 ${PYSITELIB}/falcon/media/handlers.pyc
 ${PYSITELIB}/falcon/media/handlers.pyo
+${PYSITELIB}/falcon/media/handlers.so
 ${PYSITELIB}/falcon/media/json.py
 ${PYSITELIB}/falcon/media/json.pyc
 ${PYSITELIB}/falcon/media/json.pyo
+${PYSITELIB}/falcon/media/json.so
 ${PYSITELIB}/falcon/media/msgpack.py
 ${PYSITELIB}/falcon/media/msgpack.pyc
 ${PYSITELIB}/falcon/media/msgpack.pyo
+${PYSITELIB}/falcon/media/msgpack.so
 ${PYSITELIB}/falcon/media/validators/__init__.py
 ${PYSITELIB}/falcon/media/validators/__init__.pyc
 ${PYSITELIB}/falcon/media/validators/__init__.pyo
@@ -206,6 +214,10 @@
 ${PYSITELIB}/falcon/routing/converters.pyc
 ${PYSITELIB}/falcon/routing/converters.pyo
 ${PYSITELIB}/falcon/routing/converters.so
+${PYSITELIB}/falcon/routing/static.py
+${PYSITELIB}/falcon/routing/static.pyc
+${PYSITELIB}/falcon/routing/static.pyo
+${PYSITELIB}/falcon/routing/static.so
 ${PYSITELIB}/falcon/routing/util.py
 ${PYSITELIB}/falcon/routing/util.pyc
 ${PYSITELIB}/falcon/routing/util.pyo
diff -r 8565b4dc6307 -r 9f81cab55689 devel/py-falcon/distinfo
--- a/devel/py-falcon/distinfo  Thu Feb 22 11:13:00 2018 +0000
+++ b/devel/py-falcon/distinfo  Thu Feb 22 11:14:19 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2017/12/22 05:53:05 adam Exp $
+$NetBSD: distinfo,v 1.4 2018/02/22 11:14:19 adam Exp $
 
-SHA1 (falcon-1.3.0.tar.gz) = d3c2b2ac1c535d77e00a5a3c95088c3897f7970c
-RMD160 (falcon-1.3.0.tar.gz) = e7f177be5026cb59e5cf43446735a9780abd9cda
-SHA512 (falcon-1.3.0.tar.gz) = a47abcb3c30690e1db4a282658b0a66d3cc188caefd2acac0ead55b5822c99c4b56643ba5fc18e2d89a12973e695e4c6bd1f1ee56ddc62c1f4c169198cc45387
-Size (falcon-1.3.0.tar.gz) = 349059 bytes
+SHA1 (falcon-1.4.1.tar.gz) = c29979a1fcb1b3149f1e54cc587d9582a61c947d
+RMD160 (falcon-1.4.1.tar.gz) = 7362c91cc2253d2b6b7a3a1bd44dd62de52ce2df
+SHA512 (falcon-1.4.1.tar.gz) = ac509dd1f6ddb48bff2364d47cea31ee83182104969a330265398c82331ae2c3b9e7602f83472f6de28cde89509b444103cdd40e89ccb868f702c6fbe6a2515c
+Size (falcon-1.4.1.tar.gz) = 354158 bytes



Home | Main Index | Thread Index | Old Index