Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-odorik for openSUSE:Factory 
checked in at 2024-03-17 22:17:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-odorik (Old)
 and      /work/SRC/openSUSE:Factory/.python-odorik.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-odorik"

Sun Mar 17 22:17:02 2024 rev:10 rq:1158766 version:0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-odorik/python-odorik.changes      
2022-10-12 18:25:41.821815200 +0200
+++ /work/SRC/openSUSE:Factory/.python-odorik.new.1905/python-odorik.changes    
2024-03-17 22:18:07.889085300 +0100
@@ -1,0 +2,6 @@
+Fri Mar 15 17:26:55 UTC 2024 - Matej Cepl <[email protected]>
+
+- Add assertEquals.patch replacing assertEquals with assertEqual
+  (incompatible with Python 3.12).
+
+-------------------------------------------------------------------

New:
----
  assertEquals.patch

BETA DEBUG BEGIN:
  New:
- Add assertEquals.patch replacing assertEquals with assertEqual
  (incompatible with Python 3.12).
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-odorik.spec ++++++
--- /var/tmp/diff_new_pack.cDTqOE/_old  2024-03-17 22:18:08.541109288 +0100
+++ /var/tmp/diff_new_pack.cDTqOE/_new  2024-03-17 22:18:08.541109288 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-odorik
 #
-# 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,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-odorik
 Version:        0.5
 Release:        0
@@ -24,17 +23,23 @@
 License:        GPL-3.0-or-later
 URL:            https://cihar.com/software/odorik/
 Source:         
https://files.pythonhosted.org/packages/source/o/odorik/odorik-%{version}.tar.bz2
+# PATCH-FIX-OPENSUSE assertEquals.patch [email protected]
+# 3.12 finally removed assertEquals method
+# Patch from gh#nijel/odorik#d90f3a6cd76972
+Patch0:         assertEquals.patch
 BuildRequires:  %{python_module Sphinx}
 BuildRequires:  %{python_module httpretty}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module python-dateutil}
 BuildRequires:  %{python_module pyxdg}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-python-dateutil
 Requires:       python-xdg
 Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -42,14 +47,14 @@
 Python module to work with Odorik API.
 
 %prep
-%setup -q -n odorik-%{version}
+%autosetup -p1 -n odorik-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 %make_build -C docs man
 
 %install
-%python_install
+%pyproject_install
 install -d %{buildroot}%{_mandir}/man1
 install -m 644 docs/_build/man/odorik.1 %{buildroot}%{_mandir}/man1
 %python_clone -a %{buildroot}%{_bindir}/odorik
@@ -68,7 +73,8 @@
 %files %{python_files}
 %license LICENSE
 %doc NEWS.rst README.rst
-%{python_sitelib}/*
 %python_alternative %{_mandir}/man1/odorik.1%{ext_man}
 %python_alternative %{_bindir}/odorik
+%{python_sitelib}/odorik
+%{python_sitelib}/odorik-%{version}*-info
 

++++++ assertEquals.patch ++++++
>From d90f3a6cd76972a4a059ba33141ba94c61fec5f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= <[email protected]>
Date: Fri, 4 Jan 2019 13:31:32 +0100
Subject: [PATCH] Avoid using deprecated assertEquals
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Michal Čihař <[email protected]>
---
 odorik/test_main.py   |    4 ++--
 odorik/test_odorik.py |   14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)

--- a/odorik/test_main.py
+++ b/odorik/test_main.py
@@ -392,7 +392,7 @@ class TestCommands(TestCase):
             '00420789123456',
             'text'
         ])
-        self.assertEquals('', output)
+        self.assertEqual('', output)
 
     @httpretty.activate
     def test_send_sms_invalid(self):
@@ -411,7 +411,7 @@ class TestCommands(TestCase):
         output = execute([
             'callback', '00420789123456', '800123456'
         ])
-        self.assertEquals('', output)
+        self.assertEqual('', output)
 
     @httpretty.activate
     def test_summary(self):
--- a/odorik/test_odorik.py
+++ b/odorik/test_odorik.py
@@ -206,7 +206,7 @@ class OdorikTest(TestCase):
     def test_sms_send(self):
         """Test sending SMS."""
         register_uris()
-        self.assertEquals(
+        self.assertEqual(
             Odorik().send_sms(
                 '00420789123456',
                 'text'
@@ -230,7 +230,7 @@ class OdorikTest(TestCase):
     def test_callback(self):
         """Test callback."""
         register_uris()
-        self.assertEquals(
+        self.assertEqual(
             Odorik().callback(
                 '00420789123456',
                 '800123456'
@@ -242,7 +242,7 @@ class OdorikTest(TestCase):
     def test_callback_line(self):
         """Test callback."""
         register_uris()
-        self.assertEquals(
+        self.assertEqual(
             Odorik().callback(
                 '00420789123456',
                 '800123456',
@@ -255,7 +255,7 @@ class OdorikTest(TestCase):
     def test_calls(self):
         """Test calls."""
         register_uris()
-        self.assertEquals(
+        self.assertEqual(
             len(Odorik().calls(
                 datetime.datetime.now(),
                 datetime.datetime.now(),
@@ -267,7 +267,7 @@ class OdorikTest(TestCase):
     def test_calls_line(self):
         """Test calls."""
         register_uris()
-        self.assertEquals(
+        self.assertEqual(
             len(Odorik().calls(
                 datetime.datetime.now(),
                 datetime.datetime.now(),
@@ -280,7 +280,7 @@ class OdorikTest(TestCase):
     def test_sms(self):
         """Test sms."""
         register_uris()
-        self.assertEquals(
+        self.assertEqual(
             len(Odorik().sms(
                 datetime.datetime.now(),
                 datetime.datetime.now(),
@@ -292,7 +292,7 @@ class OdorikTest(TestCase):
     def test_sms_line(self):
         """Test sms."""
         register_uris()
-        self.assertEquals(
+        self.assertEqual(
             len(Odorik().sms(
                 datetime.datetime.now(),
                 datetime.datetime.now(),

Reply via email to