Accepting request 977759 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/977759 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=8
This commit is contained in:
commit
0731832ed2
20
python-Flask-SQLAlchemy-no-mock.patch
Normal file
20
python-Flask-SQLAlchemy-no-mock.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
diff -upr Flask-SQLAlchemy-2.5.1.orig/tests/test_config.py Flask-SQLAlchemy-2.5.1/tests/test_config.py
|
||||||
|
--- Flask-SQLAlchemy-2.5.1.orig/tests/test_config.py 2022-05-17 13:45:23.513344508 +0200
|
||||||
|
+++ Flask-SQLAlchemy-2.5.1/tests/test_config.py 2022-05-17 13:45:23.521344560 +0200
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
-import mock
|
||||||
|
+from unittest import mock
|
||||||
|
import pytest
|
||||||
|
from sqlalchemy.pool import NullPool
|
||||||
|
|
||||||
|
diff -upr Flask-SQLAlchemy-2.5.1.orig/tests/test_utils.py Flask-SQLAlchemy-2.5.1/tests/test_utils.py
|
||||||
|
--- Flask-SQLAlchemy-2.5.1.orig/tests/test_utils.py 2022-05-17 13:45:23.513344508 +0200
|
||||||
|
+++ Flask-SQLAlchemy-2.5.1/tests/test_utils.py 2022-05-17 13:45:23.521344560 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-import mock
|
||||||
|
+from unittest import mock
|
||||||
|
|
||||||
|
from flask_sqlalchemy import utils
|
||||||
|
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 17 11:46:36 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require python-mock for build
|
||||||
|
- added patches
|
||||||
|
fix https://github.com/pallets-eco/flask-sqlalchemy/commit/20864ddfe4f9b70f20d38e5dc3f8d49c1ca99207
|
||||||
|
+ python-Flask-SQLAlchemy-no-mock.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 3 11:35:08 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
|
Thu Mar 3 11:35:08 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/mitsuhiko/flask-sqlalchemy
|
URL: https://github.com/mitsuhiko/flask-sqlalchemy
|
||||||
Source: https://files.pythonhosted.org/packages/source/F/Flask-SQLAlchemy/Flask-SQLAlchemy-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-SQLAlchemy/Flask-SQLAlchemy-%{version}.tar.gz
|
||||||
|
# https://github.com/pallets-eco/flask-sqlalchemy/commit/20864ddfe4f9b70f20d38e5dc3f8d49c1ca99207
|
||||||
|
Patch0: python-Flask-SQLAlchemy-no-mock.patch
|
||||||
# BR krb5 - the test suite falis with krb5-mini (and users in any case will only ever get krb5, never krb5-mini)
|
# BR krb5 - the test suite falis with krb5-mini (and users in any case will only ever get krb5, never krb5-mini)
|
||||||
BuildRequires: krb5
|
BuildRequires: krb5
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@ -36,7 +38,6 @@ BuildArch: noarch
|
|||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module Flask >= 0.10}
|
BuildRequires: %{python_module Flask >= 0.10}
|
||||||
BuildRequires: %{python_module SQLAlchemy >= 0.8.0}
|
BuildRequires: %{python_module SQLAlchemy >= 0.8.0}
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -46,6 +47,7 @@ Adds SQLAlchemy support to your Flask application.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Flask-SQLAlchemy-%{version}
|
%setup -q -n Flask-SQLAlchemy-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user