From 4f269974698e2992290c4ce407c276d358ca96cf90684396e029dfeee68ad43d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 29 Mar 2022 17:31:02 +0000 Subject: [PATCH] Accepting request 965486 from home:stroeder:python - Update to 2.1.0 * Drop support for Python 3.6. #4335 * Update Click dependency to >= 8.0. #4008 OBS-URL: https://build.opensuse.org/request/show/965486 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask?expand=0&rev=20 --- Flask-2.0.3.tar.gz | 3 --- Flask-2.1.0.tar.gz | 3 +++ python-Flask.changes | 40 ++++++++++++++++++++++++++++++++++++++++ python-Flask.spec | 5 +++-- 4 files changed, 46 insertions(+), 5 deletions(-) delete mode 100644 Flask-2.0.3.tar.gz create mode 100644 Flask-2.1.0.tar.gz diff --git a/Flask-2.0.3.tar.gz b/Flask-2.0.3.tar.gz deleted file mode 100644 index 6c7ba78..0000000 --- a/Flask-2.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1120c228ca2f553b470df4a5fa927ab66258467526069981b3eb0a91902687d -size 629304 diff --git a/Flask-2.1.0.tar.gz b/Flask-2.1.0.tar.gz new file mode 100644 index 0000000..0cbfd7f --- /dev/null +++ b/Flask-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4dd4a3d8fcae9f892e3f61edfbb1d3cdf9ac03dc72ea1bf8d5c6c964a669674 +size 630852 diff --git a/python-Flask.changes b/python-Flask.changes index 4f2ab97..9269e33 100644 --- a/python-Flask.changes +++ b/python-Flask.changes @@ -1,3 +1,43 @@ +------------------------------------------------------------------- +Mon Mar 28 19:45:05 UTC 2022 - Michael Ströder + +- Update to 2.1.0 + * Drop support for Python 3.6. #4335 + * Update Click dependency to >= 8.0. #4008 + * Remove previously deprecated code. #4337 + - The CLI does not pass script_info to app factory functions. + - config.from_json is replaced by config.from_file(name, load=json.load). + - json functions no longer take an encoding parameter. + - safe_join is removed, use werkzeug.utils.safe_join instead. + - total_seconds is removed, use timedelta.total_seconds instead. + - The same blueprint cannot be registered with the same name. + Use name= when registering to specify a unique name. + - The test client’s as_tuple parameter is removed. Use response.request.environ instead. #4417 + * Some parameters in send_file and send_from_directory were renamed in 2.0. + The deprecation period for the old names is extended to 2.2. + Be sure to test with deprecation warnings visible. + - attachment_filename is renamed to download_name. + - cache_timeout is renamed to max_age. + - add_etags is renamed to etag. + - filename is renamed to path. + * The RequestContext.g property is deprecated. Use g directly or AppContext.g instead. #3898 + * copy_current_request_context can decorate async functions. #4303 + * The CLI uses importlib.metadata instead of setuptools to load command entry points. #4419 + * Overriding FlaskClient.open will not cause an error on redirect. #3396 + * Add an --exclude-patterns option to the flask run CLI command to + specify patterns that will be ignored by the reloader. #4188 + * When using lazy loading (the default with the debugger), the Click context from + the flask run command remains available in the loader thread. #4460 + * Deleting the session cookie uses the httponly flag. #4485 + * Relax typing for errorhandler to allow the user to use more precise + types and decorate the same function multiple times. #4095, #4295, #4297 + * Fix typing for __exit__ methods for better compatibility with ExitStack. #4474 + * From Werkzeug, for redirect responses the Location header URL will + remain relative, and exclude the scheme and domain, by default. #4496 + * Add Config.from_prefixed_env() to load config values from environment + variables that start with FLASK_ or another prefix. This parses values as + JSON by default, and allows setting keys in nested dicts. #4479 + ------------------------------------------------------------------- Mon Feb 14 20:47:03 UTC 2022 - Michael Ströder diff --git a/python-Flask.spec b/python-Flask.spec index e2cd34b..f507f60 100644 --- a/python-Flask.spec +++ b/python-Flask.spec @@ -24,9 +24,10 @@ %define oldpython python %define skip_python2 1 +%define skip_python36 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Flask -Version: 2.0.3 +Version: 2.1.0 Release: 0 Summary: A microframework based on Werkzeug, Jinja2 and good intentions License: BSD-3-Clause @@ -35,7 +36,7 @@ URL: https://flask.palletsprojects.com Source: https://files.pythonhosted.org/packages/source/F/Flask/Flask-%{version}.tar.gz BuildRequires: %{python_module Jinja2 >= 3.0} BuildRequires: %{python_module Werkzeug >= 2.0} -BuildRequires: %{python_module click >= 7.1.2} +BuildRequires: %{python_module click >= 8.0.0} BuildRequires: %{python_module contextvars} BuildRequires: %{python_module itsdangerous >= 2.0} BuildRequires: %{python_module pytest >= 6.2.4}