forked from pool/python-Flask
Accepting request 924644 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/924644 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask?expand=0&rev=27
This commit is contained in:
commit
3593ed7a1d
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c4c257b1892aec1398784c63791cbaa43062f1f7aeb555c4da961b20ee68f55
|
||||
size 626851
|
3
Flask-2.0.2.tar.gz
Normal file
3
Flask-2.0.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b2fb8e934ddd50731893bdcdb00fc8c0315916f9fcd50d22c7cc1a95ab634e2
|
||||
size 628479
|
@ -1,3 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 5 14:19:00 UTC 2021 - Stefan Schubert <schubi@suse.de>
|
||||
|
||||
- Added BuildRequires: alts
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 5 09:49:23 UTC 2021 - Michael Ströder <michael@stroeder.com>
|
||||
|
||||
- Update to 2.0.2
|
||||
* Fix type annotation for teardown_* methods. #4093
|
||||
* Fix type annotation for before_request and before_app_request decorators. #4104
|
||||
* Fixed the issue where typing requires template global decorators to
|
||||
accept functions with no arguments. #4098
|
||||
* Support View and MethodView instances with async handlers. #4112
|
||||
* Enhance typing of app.errorhandler decorator. #4095
|
||||
* Fix registering a blueprint twice with differing names. #4124
|
||||
* Fix the type of static_folder to accept pathlib.Path. #4150
|
||||
* jsonify handles decimal.Decimal by encoding to str. #4157
|
||||
* Correctly handle raising deferred errors in CLI lazy loading. #4096
|
||||
* The CLI loader handles **kwargs in a create_app function. #4170
|
||||
* Fix the order of before_request and other callbacks that trigger before the view returns.
|
||||
They are called from the app down to the closest nested blueprint. #4229
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 22 19:07:48 UTC 2021 - Stefan Schubert <schubi@suse.de>
|
||||
|
||||
- Use libalternatives instead of update-alternatives.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 19 07:28:01 UTC 2021 - Michael Ströder <michael@stroeder.com>
|
||||
|
||||
|
@ -16,11 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
%define oldpython python
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-Flask
|
||||
Version: 2.0.1
|
||||
Version: 2.0.2
|
||||
Release: 0
|
||||
Summary: A microframework based on Werkzeug, Jinja2 and good intentions
|
||||
License: BSD-3-Clause
|
||||
@ -35,13 +41,18 @@ BuildRequires: %{python_module itsdangerous >= 2.0}
|
||||
BuildRequires: %{python_module pytest >= 6.2.4}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python-rpm-macros >= 20210929
|
||||
Requires: python-Jinja2 >= 3.0
|
||||
Requires: python-Werkzeug >= 2.0
|
||||
Requires: python-click >= 7.1.2
|
||||
Requires: python-itsdangerous >= 2.0
|
||||
%if %{with libalternatives}
|
||||
Requires: alts
|
||||
BuildRequires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%if %{?suse_version} < 1500
|
||||
BuildRequires: python
|
||||
@ -71,13 +82,16 @@ reference for python-Flask.
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/flask
|
||||
|
||||
%fdupes %{buildroot}%{python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%pytest
|
||||
|
||||
%pre
|
||||
# If libalternatives is used: Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative flask
|
||||
|
||||
%post
|
||||
%python_install_alternative flask
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user