Accepting request 963718 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/963718 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-Mail?expand=0&rev=3
This commit is contained in:
commit
8ede846e00
13
python-Flask-Mail-no-mock.patch
Normal file
13
python-Flask-Mail-no-mock.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: Flask-Mail-0.9.1/tests.py
|
||||||
|
===================================================================
|
||||||
|
--- Flask-Mail-0.9.1.orig/tests.py 2014-09-29 01:27:04.000000000 +0200
|
||||||
|
+++ Flask-Mail-0.9.1/tests.py 2022-03-21 10:13:27.500302484 +0100
|
||||||
|
@@ -7,7 +7,7 @@ import email
|
||||||
|
import unittest
|
||||||
|
import time
|
||||||
|
import re
|
||||||
|
-import mock
|
||||||
|
+import unittest.mock as mock
|
||||||
|
from contextlib import contextmanager
|
||||||
|
|
||||||
|
from email.header import Header
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 21 09:15:18 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- use %pyunittest rpm macro
|
||||||
|
- added patches
|
||||||
|
do not use mock, upstream url unavailable
|
||||||
|
+ python-Flask-Mail-no-mock.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 10 08:35:46 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Wed Jun 10 08:35:46 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Flask-Mail
|
# spec file for package python-Flask-Mail
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -25,13 +25,14 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/rduplain/flask-mail
|
URL: https://github.com/rduplain/flask-mail
|
||||||
Source: https://files.pythonhosted.org/packages/source/F/Flask-Mail/Flask-Mail-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-Mail/Flask-Mail-%{version}.tar.gz
|
||||||
|
# do not use mock, upstream url unavailable
|
||||||
|
Patch0: python-Flask-Mail-no-mock.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# Test requirements
|
# Test requirements
|
||||||
BuildRequires: %{python_module Flask}
|
BuildRequires: %{python_module Flask}
|
||||||
BuildRequires: %{python_module blinker}
|
BuildRequires: %{python_module blinker}
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module speaklater}
|
BuildRequires: %{python_module speaklater}
|
||||||
# End of test requirements
|
# End of test requirements
|
||||||
Requires: python-Flask
|
Requires: python-Flask
|
||||||
@ -44,6 +45,7 @@ A Flask extension for sending email messages.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Flask-Mail-%{version}
|
%setup -q -n Flask-Mail-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -53,7 +55,7 @@ A Flask extension for sending email messages.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m unittest discover
|
%pyunittest -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user