From be589e07da1d8991541e26a80a88de86be4f6d520551dd3e88440ae43ceee9b5 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 27 Sep 2016 11:44:34 +0000 Subject: [PATCH] Accepting request 429835 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/429835 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask?expand=0&rev=14 --- Flask-0.10.1.tar.gz | 3 -- Flask-0.11.1.tar.gz | 3 ++ python-Flask.changes | 108 +++++++++++++++++++++++++++++++++++++++++++ python-Flask.spec | 44 +++++++++++++----- 4 files changed, 144 insertions(+), 14 deletions(-) delete mode 100644 Flask-0.10.1.tar.gz create mode 100644 Flask-0.11.1.tar.gz diff --git a/Flask-0.10.1.tar.gz b/Flask-0.10.1.tar.gz deleted file mode 100644 index 308a0cd..0000000 --- a/Flask-0.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c83829ff83d408b5e1d4995472265411d2c414112298f2eb4b359d9e4563373 -size 544247 diff --git a/Flask-0.11.1.tar.gz b/Flask-0.11.1.tar.gz new file mode 100644 index 0000000..1427628 --- /dev/null +++ b/Flask-0.11.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4713f2bfb9ebc2966b8a49903ae0d3984781d5c878591cf2f7b484d28756b0e +size 564993 diff --git a/python-Flask.changes b/python-Flask.changes index 82d265e..cf94eaa 100644 --- a/python-Flask.changes +++ b/python-Flask.changes @@ -1,3 +1,111 @@ +------------------------------------------------------------------- +Fri Sep 23 14:19:03 UTC 2016 - toddrme2178@gmail.com + +- Change preun back to postun for now. + +------------------------------------------------------------------- +Fri Sep 16 14:25:04 UTC 2016 - toddrme2178@gmail.com + +- Fix download url. + +------------------------------------------------------------------- +Thu Sep 15 18:08:53 UTC 2016 - toddrme2178@gmail.com + +- Update to Version 0.11.1 + - Fixed a bug that prevented ``FLASK_APP=foobar/__init__.py`` from working. See + pull request ``#1872``. +- Update to Version 0.11 + - Added support to serializing top-level arrays to :func:`flask.jsonify`. This + introduces a security risk in ancient browsers. See + :ref:`json-security` for details. + - Added before_render_template signal. + - Added `**kwargs` to :meth:`flask.Test.test_client` to support passing + additional keyword arguments to the constructor of + :attr:`flask.Flask.test_client_class`. + - Added ``SESSION_REFRESH_EACH_REQUEST`` config key that controls the + set-cookie behavior. If set to ``True`` a permanent session will be + refreshed each request and get their lifetime extended, if set to + ``False`` it will only be modified if the session actually modifies. + Non permanent sessions are not affected by this and will always + expire if the browser window closes. + - Made Flask support custom JSON mimetypes for incoming data. + - Added support for returning tuples in the form ``(response, headers)`` + from a view function. + - Added :meth:`flask.Config.from_json`. + - Added :attr:`flask.Flask.config_class`. + - Added :meth:`flask.config.Config.get_namespace`. + - Templates are no longer automatically reloaded outside of debug mode. This + can be configured with the new ``TEMPLATES_AUTO_RELOAD`` config key. + - Added a workaround for a limitation in Python 3.3's namespace loader. + - Added support for explicit root paths when using Python 3.3's namespace + packages. + - Added :command:`flask` and the ``flask.cli`` module to start the local + debug server through the click CLI system. This is recommended over the old + ``flask.run()`` method as it works faster and more reliable due to a + different design and also replaces ``Flask-Script``. + - Error handlers that match specific classes are now checked first, + thereby allowing catching exceptions that are subclasses of HTTP + exceptions (in ``werkzeug.exceptions``). This makes it possible + for an extension author to create exceptions that will by default + result in the HTTP error of their choosing, but may be caught with + a custom error handler if desired. + - Added :meth:`flask.Config.from_mapping`. + - Flask will now log by default even if debug is disabled. The log format is + now hardcoded but the default log handling can be disabled through the + ``LOGGER_HANDLER_POLICY`` configuration key. + - Removed deprecated module functionality. + - Added the ``EXPLAIN_TEMPLATE_LOADING`` config flag which when enabled will + instruct Flask to explain how it locates templates. This should help + users debug when the wrong templates are loaded. + - Enforce blueprint handling in the order they were registered for template + loading. + - Ported test suite to py.test. + - Deprecated ``request.json`` in favour of ``request.get_json()``. + - Add "pretty" and "compressed" separators definitions in jsonify() method. + Reduces JSON response size when JSONIFY_PRETTYPRINT_REGULAR=False by removing + unnecessary white space included by default after separators. + - JSON responses are now terminated with a newline character, because it is a + convention that UNIX text files end with a newline and some clients don't + deal well when this newline is missing. See + https://github.com/pallets/flask/pull/1262 -- this came up originally as a + part of https://github.com/kennethreitz/httpbin/issues/168 + - The automatically provided ``OPTIONS`` method is now correctly disabled if + the user registered an overriding rule with the lowercase-version + ``options`` (issue ``#1288``). + - ``flask.json.jsonify`` now supports the ``datetime.date`` type (pull request + ``#1326``). + - Don't leak exception info of already catched exceptions to context teardown + handlers (pull request ``#1393``). + - Allow custom Jinja environment subclasses (pull request ``#1422``). + - ``flask.g`` now has ``pop()`` and ``setdefault`` methods. + - Turn on autoescape for ``flask.templating.render_template_string`` by default + (pull request ``#1515``). + - ``flask.ext`` is now deprecated (pull request ``#1484``). + - ``send_from_directory`` now raises BadRequest if the filename is invalid on + the server OS (pull request ``#1763``). + - Added the ``JSONIFY_MIMETYPE`` configuration variable (pull request ``#1728``). + - Exceptions during teardown handling will no longer leave bad application + contexts lingering around. +- Update to Version 0.10.2 + - Fixed broken `test_appcontext_signals()` test case. + - Raise an :exc:`AttributeError` in :func:`flask.helpers.find_package` with a + useful message explaining why it is raised when a PEP 302 import hook is used + without an `is_package()` method. + - Fixed an issue causing exceptions raised before entering a request or app + context to be passed to teardown handlers. + - Fixed an issue with query parameters getting removed from requests in + the test client when absolute URLs were requested. + - Made `@before_first_request` into a decorator as intended. + - Fixed an etags bug when sending a file streams with a name. + - Fixed `send_from_directory` not expanding to the application root path + correctly. + - Changed logic of before first request handlers to flip the flag after + invoking. This will allow some uses that are potentially dangerous but + should probably be permitted. + - Fixed Python 3 bug when a handler from `app.url_build_error_handlers` + reraises the `BuildError`. +- Implement update-alternatives + ------------------------------------------------------------------- Thu Oct 24 11:05:46 UTC 2013 - speilicke@suse.com diff --git a/python-Flask.spec b/python-Flask.spec index 1cf58cf..cacf62b 100644 --- a/python-Flask.spec +++ b/python-Flask.spec @@ -1,7 +1,7 @@ # # spec file for package python-Flask # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,26 +17,31 @@ Name: python-Flask -Version: 0.10.1 +Version: 0.11.1 Release: 0 Url: http://github.com/mitsuhiko/flask/ Summary: A microframework based on Werkzeug, Jinja2 and good intentions License: BSD-3-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/F/Flask/Flask-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: https://files.pythonhosted.org/packages/source/F/Flask/Flask-%{version}.tar.gz BuildRequires: fdupes -BuildRequires: python-Sphinx -BuildRequires: python-Werkzeug >= 0.7 BuildRequires: python-devel +BuildRequires: python-Jinja2 >= 2.4 +# BuildRequires: python-Sphinx +BuildRequires: python-Werkzeug >= 0.7 +BuildRequires: python-click >= 2.0 BuildRequires: python-itsdangerous >= 0.21 BuildRequires: python-nose BuildRequires: python-setuptools Requires: python-Jinja2 >= 2.4 Requires: python-Werkzeug >= 0.7 +Requires: python-click >= 2.0 Requires: python-itsdangerous >= 0.21 Provides: python-flask = %{version} Obsoletes: python-flask < %{version} +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else @@ -62,24 +67,41 @@ rm docs/.gitignore # Remove junk %build python setup.py build -#cd docs && make html +# cd docs && make html %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +mv %{buildroot}%{_bindir}/flask %{buildroot}%{_bindir}/flask-%{py_ver} +ln -s -f %{_sysconfdir}/alternatives/flask %{buildroot}%{_bindir}/flask + %fdupes %{buildroot}%{python_sitelib} -%if 0%{?suse_version} > 1210 +%post +%_sbindir/update-alternatives \ + --install %{_bindir}/flask flask %{_bindir}/flask-%{py_ver} 30 + +%postun +if [ $1 -eq 0 ] ; then + %_sbindir/update-alternatives --remove flask %{_bindir}/flask-%{py_ver} +fi + %check python setup.py test -%endif %files %defattr(-,root,root,-) -%doc AUTHORS CHANGES LICENSE +%doc AUTHORS CHANGES LICENSE README +%{_bindir}/flask +%{_bindir}/flask-%{py_ver} +%ghost %{_sysconfdir}/alternatives/flask %{python_sitelib}/* %files doc %defattr(-,root,root) -%doc docs examples +%doc docs/ +%doc examples/ %changelog