Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Flask-Mail for 
openSUSE:Factory checked in at 2024-02-12 18:52:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-Mail (Old)
 and      /work/SRC/openSUSE:Factory/.python-Flask-Mail.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Flask-Mail"

Mon Feb 12 18:52:09 2024 rev:4 rq:1146006 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Flask-Mail/python-Flask-Mail.changes      
2022-03-21 20:13:30.608528609 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-Flask-Mail.new.1815/python-Flask-Mail.changes
    2024-02-12 18:54:25.931314809 +0100
@@ -1,0 +2,17 @@
+Sun Feb 11 05:34:56 UTC 2024 - John Vandenberg <jay...@gmail.com>
+
+- Update test syntax.
+- Skip two tests that have outdated expected results.
+
+-------------------------------------------------------------------
+Mon Jan 15 17:57:23 UTC 2024 - Antonio Larrosa <alarr...@suse.com>
+
+- Use %{?sle15_python_module_pythons}
+
+-------------------------------------------------------------------
+Fri Dec 22 02:04:43 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Switch to pyproject and autosetup macros.
+- Stop using greedy globs in %files.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Flask-Mail.spec ++++++
--- /var/tmp/diff_new_pack.CdeFZQ/_old  2024-02-12 18:54:26.447333328 +0100
+++ /var/tmp/diff_new_pack.CdeFZQ/_new  2024-02-12 18:54:26.447333328 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Flask-Mail
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,19 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?sle15_python_module_pythons}
 Name:           python-Flask-Mail
 Version:        0.9.1
 Release:        0
 Summary:        Flask extension for sending email
 License:        BSD-3-Clause
-Group:          Development/Languages/Python
 URL:            https://github.com/rduplain/flask-mail
 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 pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 # Test requirements
@@ -44,14 +45,16 @@
 A Flask extension for sending email messages.
 
 %prep
-%setup -q -n Flask-Mail-%{version}
-%patch0 -p1
+%autosetup -p1 -n Flask-Mail-%{version}
+sed -i 's/assertEquals/assertEqual/' tests.py
+# Skip two failing tests
+sed -i 's/test_unicode_sender/_test_unicode_sender/' tests.py
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -60,5 +63,7 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/flask_mail.py
+%pycache_only %{python_sitelib}/__pycache__/flask_mail.*.py*
+%{python_sitelib}/Flask_Mail-%{version}.dist-info
 

++++++ python-Flask-Mail-no-mock.patch ++++++
--- /var/tmp/diff_new_pack.CdeFZQ/_old  2024-02-12 18:54:26.475334333 +0100
+++ /var/tmp/diff_new_pack.CdeFZQ/_new  2024-02-12 18:54:26.483334620 +0100
@@ -7,7 +7,7 @@
  import time
  import re
 -import mock
-+import unittest.mock as mock
++from unittest import mock
  from contextlib import contextmanager
  
  from email.header import Header

Reply via email to