pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-flask py-flask: updated to 1.1.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0422e409e1b6
branches:  trunk
changeset: 398212:0422e409e1b6
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Jul 13 09:28:58 2019 +0000

description:
py-flask: updated to 1.1.1

Version 1.1.1

The flask.json_available flag was added back for compatibility with some extensions. It will raise a deprecation warning when used, and will be removed in version 2.0.0.

Version 1.1.0

Bump minimum Werkzeug version to >= 0.15.
Drop support for Python 3.4.
Error handlers for InternalServerError or 500 will always be passed an instance of InternalServerError. If they are invoked due to an unhandled exception, that original exception is now available as 
e.original_exception rather than being passed directly to the handler. The same is true if the handler is for the base HTTPException. This makes error handler behavior more consistent.
Flask.finalize_request() is called for all unhandled exceptions even if there is no 500 error handler.
Flask.logger takes the same name as Flask.name (the value passed as Flask(import_name). This reverts 1.0?s behavior of always logging to "flask.app", in order to support multiple apps in the same 
process. A warning will be shown if old configuration is detected that needs to be moved.
flask.RequestContext.copy() includes the current session object in the request context copy. This prevents session pointing to an out-of-date object.
Using built-in RequestContext, unprintable Unicode characters in Host header will result in a HTTP 400 response and not HTTP 500 as previously.
send_file() supports PathLike objects as described in PEP 0519, to support pathlib in Python 3.
send_file() supports BytesIO partial content.
open_resource() accepts the ?rt? file mode. This still does the same thing as ?r?.
The MethodView.methods attribute set in a base class is used by subclasses.
Flask.jinja_options is a dict instead of an ImmutableDict to allow easier configuration. Changes must still be made before creating the environment.
Flask?s JSONMixin for the request and response wrappers was moved into Werkzeug. Use Werkzeug?s version with Flask-specific support. This bumps the Werkzeug dependency to >= 0.15.
The flask command entry point is simplified to take advantage of Werkzeug 0.15?s better reloader support. This bumps the Werkzeug dependency to >= 0.15.
Support static_url_path that ends with a forward slash.
Support empty static_folder without requiring setting an empty static_url_path as well.
jsonify() supports dataclasses.dataclass objects.
Allow customizing the Flask.url_map_class used for routing.
The development server port can be set to 0, which tells the OS to pick an available port.
The return value from cli.load_dotenv() is more consistent with the documentation. It will return False if python-dotenv is not installed, or if the given path isn?t a file.
Signaling support has a stub for the connect_via method when the Blinker library is not installed.
Add an --extra-files option to the flask run CLI command to specify extra files that will trigger the reloader on change.
Allow returning a dictionary from a view function. Similar to how returning a string will produce a text/html response, returning a dict will call jsonify to produce a application/json response.
Blueprints have a cli Click group like app.cli. CLI commands registered with a blueprint will be available as a group under the flask command..
When using the test client as a context manager (with client:), all preserved request contexts are popped when the block exits, ensuring nested contexts are cleaned up correctly.
Show a better error message when the view return type is not supported.
flask.testing.make_test_environ_builder() has been deprecated in favour of a new class flask.testing.EnvironBuilder.
The flask run command no longer fails if Python is not built with SSL support. Using the --cert option will show an appropriate error message.
URL matching now occurs after the request context is pushed, rather than when it?s created. This allows custom URL converters to access the app and request contexts, such as to query a database for 
an id.

diffstat:

 www/py-flask/Makefile |  13 +++++++------
 www/py-flask/PLIST    |   3 +--
 www/py-flask/distinfo |  10 +++++-----
 3 files changed, 13 insertions(+), 13 deletions(-)

diffs (65 lines):

diff -r c67d865aa4ce -r 0422e409e1b6 www/py-flask/Makefile
--- a/www/py-flask/Makefile     Sat Jul 13 09:22:20 2019 +0000
+++ b/www/py-flask/Makefile     Sat Jul 13 09:28:58 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2019/05/19 07:59:50 adam Exp $
+# $NetBSD: Makefile,v 1.15 2019/07/13 09:28:58 adam Exp $
 
-DISTNAME=      Flask-1.0.3
+DISTNAME=      Flask-1.1.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=F/Flask/}
@@ -12,17 +12,18 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-click>=5.1:../../devel/py-click
 DEPENDS+=      ${PYPKGPREFIX}-itsdangerous>=0.24:../../security/py-itsdangerous
-DEPENDS+=      ${PYPKGPREFIX}-jinja2>=2.10:../../textproc/py-jinja2
-DEPENDS+=      ${PYPKGPREFIX}-werkzeug>=0.14:../../www/py-werkzeug
+DEPENDS+=      ${PYPKGPREFIX}-jinja2>=2.10.1:../../textproc/py-jinja2
+DEPENDS+=      ${PYPKGPREFIX}-werkzeug>=0.15:../../www/py-werkzeug
 TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.0:../../devel/py-test
 
 USE_LANGUAGES= # none
 
 post-install:
-       cd ${DESTDIR}${PREFIX}/bin && ${MV} flask flask-${PYVERSSUFFIX} || ${TRUE}
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} flask flask-${PYVERSSUFFIX} || ${TRUE}
 
 do-test:
-       cd ${WRKSRC}/tests && py.test-${PYVERSSUFFIX}
+       cd ${WRKSRC}/tests && pytest-${PYVERSSUFFIX}
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r c67d865aa4ce -r 0422e409e1b6 www/py-flask/PLIST
--- a/www/py-flask/PLIST        Sat Jul 13 09:22:20 2019 +0000
+++ b/www/py-flask/PLIST        Sat Jul 13 09:28:58 2019 +0000
@@ -1,10 +1,9 @@
-@comment $NetBSD: PLIST,v 1.5 2018/07/20 08:40:42 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2019/07/13 09:28:58 adam Exp $
 bin/flask-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/flask/__init__.py
diff -r c67d865aa4ce -r 0422e409e1b6 www/py-flask/distinfo
--- a/www/py-flask/distinfo     Sat Jul 13 09:22:20 2019 +0000
+++ b/www/py-flask/distinfo     Sat Jul 13 09:28:58 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.8 2019/05/19 07:59:50 adam Exp $
+$NetBSD: distinfo,v 1.9 2019/07/13 09:28:58 adam Exp $
 
-SHA1 (Flask-1.0.3.tar.gz) = 7033ecbb28428b43703c231eb1de3545b5a744b6
-RMD160 (Flask-1.0.3.tar.gz) = 6b60d312c533d982ce09032b6ed8a261462a073b
-SHA512 (Flask-1.0.3.tar.gz) = 4b3fb1d7b9ec229e3ceda721791056e063a3bb0efd14e4ab9e2e49d3634e875608f05505cfd6b7f1c7fa3da3e1474283fdb72e174e52cded80acca7058f2f235
-Size (Flask-1.0.3.tar.gz) = 647311 bytes
+SHA1 (Flask-1.1.1.tar.gz) = 0be9b102a88130da4378c38be17d6a9bd154cca2
+RMD160 (Flask-1.1.1.tar.gz) = 57fba1ffb543a3693877b23a5b4c68e3209df645
+SHA512 (Flask-1.1.1.tar.gz) = d4e6304bdb2e20deda5b9800dc9ebeabf0442528d6cef2d15416129c151b25ab32c41460939f64fb72b15ead8d4e9bcea5694039323d080d279bfba2f6266178
+Size (Flask-1.1.1.tar.gz) = 625458 bytes



Home | Main Index | Thread Index | Old Index