pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-falcon Changelog for Falcon 1.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2ddffd96d7c3
branches:  trunk
changeset: 362655:2ddffd96d7c3
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun May 21 06:54:13 2017 +0000

description:
Changelog for Falcon 1.2.0
New & Improved
- A new `default` kwarg was added to :meth:`~falcon.Request.get_header`.
- A :meth:`~falcon.Response.delete_header` method was added to
  :class:`falcon.Response`.
- Several new HTTP status codes and error classes were added, such as
  :class:`falcon.HTTPFailedDependency`.
- If `ujson` is installed it will be used in lieu of `json` to speed up
  error serialization and query string parsing under CPython. PyPy users
  should continue to use `json`.
- The `independent_middleware` kwarg was added to :class:`falcon.API` to
  enable the execution of `process_response()` middleware methods, even
  when `process_request()` raises an error.
- Single-character field names are now allowed in URL templates when
  specifying a route.
- A detailed error message is now returned when an attempt is made to
  add a route that conflicts with one that has already been added.
- The HTTP protocol version can now be specified when simulating
  requests with the testing framework.
- The :class:`falcon.ResponseOptions` class was added, along with a
  `secure_cookies_by_default` option to control the default value of
  the "secure" attribute when setting cookies. This can make testing
  easier by providing a way to toggle whether or not HTTPS is required.
- `port`, `netloc` and `scheme` properties were added to the
  :class:`falcon.Request` class. The `protocol` property is now
  deprecated and will be removed in a future release.
- The `strip_url_path_trailing_slash` was added
  to :class:`falcon.RequestOptions` to control whether or not to retain
  the trailing slash in the URL path, if one is present. When this
  option is enabled (the default), the URL path is normalized by
  stripping the trailing slash character. This lets the application
  define a single route to a resource for a path that may or may not end
  in a forward slash. However, this behavior can be problematic in
  certain cases, such as when working with authentication schemes that
  employ URL-based signatures. Therefore, the
  `strip_url_path_trailing_slash` option was introduced to make this
  behavior configurable.
- Improved the documentation for :class:`falcon.HTTPError`, particularly
  around customizing error serialization.
- Misc. improvements to the look and feel of Falcon's documentation.
- The tutorial in the docs was revamped, and now includes guidance on
  testing Falcon applications.

diffstat:

 devel/py-falcon/Makefile |   9 +++++----
 devel/py-falcon/distinfo |  10 +++++-----
 2 files changed, 10 insertions(+), 9 deletions(-)

diffs (45 lines):

diff -r ca57efc08c64 -r 2ddffd96d7c3 devel/py-falcon/Makefile
--- a/devel/py-falcon/Makefile  Sun May 21 06:49:09 2017 +0000
+++ b/devel/py-falcon/Makefile  Sun May 21 06:54:13 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2017/04/25 20:55:35 fhajny Exp $
+# $NetBSD: Makefile,v 1.2 2017/05/21 06:54:13 adam Exp $
 
-DISTNAME=      falcon-1.1.0
+DISTNAME=      falcon-1.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_PYPI:=f/falcon/}
@@ -18,14 +18,15 @@
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-ddt-[0-9]*:../../devel/py-ddt
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-testtools-[0-9]*:../../devel/py-testtools
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
 
 post-install:
        ${MV} ${DESTDIR}${PREFIX}/bin/falcon-bench \
-               ${DESTDIR}${PREFIX}/bin/falcon-bench-${PYVERSSUFFIX}
+               ${DESTDIR}${PREFIX}/bin/falcon-bench-${PYVERSSUFFIX} || ${TRUE}
        ${MV} ${DESTDIR}${PREFIX}/bin/falcon-print-routes \
-               ${DESTDIR}${PREFIX}/bin/falcon-print-routes-${PYVERSSUFFIX}
+               ${DESTDIR}${PREFIX}/bin/falcon-print-routes-${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ca57efc08c64 -r 2ddffd96d7c3 devel/py-falcon/distinfo
--- a/devel/py-falcon/distinfo  Sun May 21 06:49:09 2017 +0000
+++ b/devel/py-falcon/distinfo  Sun May 21 06:54:13 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2017/04/25 20:55:35 fhajny Exp $
+$NetBSD: distinfo,v 1.2 2017/05/21 06:54:13 adam Exp $
 
-SHA1 (falcon-1.1.0.tar.gz) = 7dfab9e6fb4215bdc00d7c98fab1cecdab9232d4
-RMD160 (falcon-1.1.0.tar.gz) = d708c9c7027f83647aa7bb3f2274933fba3c278e
-SHA512 (falcon-1.1.0.tar.gz) = 0d3d52c6170949c575e6a292dedc068c59fb4f2248d2c6cfff8493d3216b9fb39429dd8ee038f90b28bb0c4d4de9acbdc61ab5489c23b714d65d787ebf5437db
-Size (falcon-1.1.0.tar.gz) = 141196 bytes
+SHA1 (falcon-1.2.0.tar.gz) = 153afb5c9d0291899dca8a84dec15fd799bb8b0c
+RMD160 (falcon-1.2.0.tar.gz) = 932e5597f39d9022e390dcd59c55ab1a1fbac2ce
+SHA512 (falcon-1.2.0.tar.gz) = 7a73bc01e4babddce67d4eb076dd9cc79a9a900b7c2a15655389eebe269fcbf19502ac6be528c1046d2f0ed793ee593508d61132b3c40106075e0aa1839a347e
+Size (falcon-1.2.0.tar.gz) = 316490 bytes



Home | Main Index | Thread Index | Old Index