- Update to 1.6.1:
* No upstream changelog, issue filed. - Drop patches redirect-location-assertions.patch, fix-tests.patch. - Pin SQLAlchemy requirement to < 2. - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-Admin?expand=0&rev=29
This commit is contained in:
parent
69896a6b18
commit
e87dbad784
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:424ffc79b7b0dfff051555686ea12e86e48dffacac14beaa319fb4502ac40988
|
||||
size 6644630
|
3
Flask-Admin-1.6.1.tar.gz
Normal file
3
Flask-Admin-1.6.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:24cae2af832b6a611a01d7dc35f42d266c1d6c75a426b869d8cb241b78233369
|
||||
size 6651224
|
1079
fix-tests.patch
1079
fix-tests.patch
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 19 01:49:58 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 1.6.1:
|
||||
* No upstream changelog, issue filed.
|
||||
- Drop patches redirect-location-assertions.patch, fix-tests.patch.
|
||||
- Pin SQLAlchemy requirement to < 2.
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 3 12:02:54 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
@ -18,33 +18,32 @@
|
||||
|
||||
%define skip_python2 1
|
||||
Name: python-Flask-Admin
|
||||
Version: 1.6.0
|
||||
Version: 1.6.1
|
||||
Release: 0
|
||||
Summary: Extensible admin interface framework for Flask
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/flask-admin/flask-admin/
|
||||
Source: https://files.pythonhosted.org/packages/source/F/Flask-Admin/Flask-Admin-%{version}.tar.gz
|
||||
Patch0: redirect-location-assertions.patch
|
||||
# PATCH-FIX-UPSTREAM fix-tests.patch
|
||||
# gh#flask-admin/flask-admin#2309
|
||||
# gh#flask-admin/flask-admin#2316
|
||||
Patch1: fix-tests.patch
|
||||
BuildRequires: %{python_module Flask >= 0.7}
|
||||
BuildRequires: %{python_module Flask-BabelEx}
|
||||
BuildRequires: %{python_module Flask-SQLAlchemy}
|
||||
BuildRequires: %{python_module Pillow >= 3.3.2}
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module SQLAlchemy < 2.0}
|
||||
BuildRequires: %{python_module SQLAlchemy-Utils}
|
||||
BuildRequires: %{python_module WTForms}
|
||||
BuildRequires: %{python_module arrow}
|
||||
BuildRequires: %{python_module colour}
|
||||
BuildRequires: %{python_module peewee}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requre}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Flask >= 0.7
|
||||
Requires: python-SQLAlchemy < 2.0
|
||||
Requires: python-WTForms
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@ -69,10 +68,10 @@ rm -f flask_admin/tests/sqla/test_postgres.py
|
||||
rm -f flask_admin/tests/test_form_upload.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@ -81,8 +80,7 @@ rm -f flask_admin/tests/test_form_upload.py
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%dir %{python_sitelib}/flask_admin
|
||||
%{python_sitelib}/flask_admin/*
|
||||
%{python_sitelib}/Flask_Admin-%{version}-py*.egg-info
|
||||
%{python_sitelib}/flask_admin
|
||||
%{python_sitelib}/Flask_Admin-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
@ -1,22 +0,0 @@
|
||||
Index: Flask-Admin-1.6.0/flask_admin/tests/sqla/test_basic.py
|
||||
===================================================================
|
||||
--- Flask-Admin-1.6.0.orig/flask_admin/tests/sqla/test_basic.py
|
||||
+++ Flask-Admin-1.6.0/flask_admin/tests/sqla/test_basic.py
|
||||
@@ -2401,7 +2401,7 @@ def test_safe_redirect():
|
||||
_continue_editing='Save and Continue Editing'))
|
||||
|
||||
assert rv.status_code == 302
|
||||
- assert rv.location.startswith('http://localhost/admin/model1/edit/')
|
||||
+ assert rv.location.startswith('/admin/model1/edit/')
|
||||
assert 'url=http%3A%2F%2Flocalhost%2Fadmin%2Fmodel2view%2F' in rv.location
|
||||
assert 'id=1' in rv.location
|
||||
|
||||
@@ -2410,7 +2410,7 @@ def test_safe_redirect():
|
||||
_continue_editing='Save and Continue Editing'))
|
||||
|
||||
assert rv.status_code == 302
|
||||
- assert rv.location.startswith('http://localhost/admin/model1/edit/')
|
||||
+ assert rv.location.startswith('/admin/model1/edit/')
|
||||
assert 'url=%2Fadmin%2Fmodel1%2F' in rv.location
|
||||
assert 'id=2' in rv.location
|
||||
|
Loading…
x
Reference in New Issue
Block a user