Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ntfy for openSUSE:Factory 
checked in at 2024-01-03 12:32:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ntfy (Old)
 and      /work/SRC/openSUSE:Factory/.python-ntfy.new.28375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ntfy"

Wed Jan  3 12:32:10 2024 rev:11 rq:1136327 version:2.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ntfy/python-ntfy.changes  2023-01-08 
21:25:23.099192025 +0100
+++ /work/SRC/openSUSE:Factory/.python-ntfy.new.28375/python-ntfy.changes       
2024-01-03 12:33:01.077082851 +0100
@@ -1,0 +2,6 @@
+Wed Jan  3 00:22:57 UTC 2024 - Matthias Bach <ma...@marix.org>
+
+- Add python-312-compat.patch to achieve compatibility with Python
+  3.12.
+
+-------------------------------------------------------------------

New:
----
  python-312-compat.patch

BETA DEBUG BEGIN:
  New:
- Add python-312-compat.patch to achieve compatibility with Python
  3.12.
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-ntfy.spec ++++++
--- /var/tmp/diff_new_pack.ca8BfD/_old  2024-01-03 12:33:02.525135833 +0100
+++ /var/tmp/diff_new_pack.ca8BfD/_new  2024-01-03 12:33:02.529135979 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ntfy
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 # Copyright (c) 2020 Matthias Bach <ma...@marix.org>.
 #
 # All modifications and additions to the file contributed by third parties
@@ -31,6 +31,7 @@
 Patch1:         emoji-2.0-compatibility.patch
 Patch2:         drop-misleading-shebangs.patch
 Patch3:         python-311-compat.patch
+Patch4:         python-312-compat.patch
 BuildRequires:  %{python_module appdirs}
 # test requirements
 BuildRequires:  %{python_module emoji >= 1.6.2}
@@ -94,5 +95,6 @@
 %doc README.rst
 %license LICENSE
 %python_alternative %{_bindir}/ntfy
-%{python_sitelib}/*
+%{python_sitelib}/ntfy
+%{python_sitelib}/ntfy-%{version}*-info
 

++++++ python-311-compat.patch ++++++
--- /var/tmp/diff_new_pack.ca8BfD/_old  2024-01-03 12:33:02.661140809 +0100
+++ /var/tmp/diff_new_pack.ca8BfD/_new  2024-01-03 12:33:02.701142273 +0100
@@ -1,7 +1,7 @@
 From: Matthias Bach <ma...@marix.org>
 Date: Sat, 7 Jan 2023 15:15:25 +0100
 Subject: [PATCH] Fix compatibility with Python 3.11
-References: https://github.com/dschep/ntfy/issues/257
+References: https://github.com/dschep/ntfy/pull/271
 Upstream: submitted
 
 We had still been using the function inspect.getargspec() that had

++++++ python-312-compat.patch ++++++
From: Matthias Bach <ma...@marix.org>
Date: Wed, 3 Jan 2024 01:10:05 +0100
Subject: [PATCH] Fix compatibility with Python 3.12
References: https://github.com/dschep/ntfy/pull/271
Upstream: submitted

Unittest's assertEquals has finally been dropped in Python 3.12.
---
 tests/test_cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_cli.py b/tests/test_cli.py
index c1341f3..4a87911 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -174,7 +174,7 @@ class TestMain(TestCase):
     @patch('ntfy.backends.default.notify')
     def test_args(self, mock_notify):
         mock_notify.return_value = None
-        self.assertEquals(0,
+        self.assertEqual(0,
                           ntfy_main([
                               '-o', 'foo', 'bar', '-b', 'default', '-t',
                               'TITLE', 'send', 'test'
-- 
2.35.3

Reply via email to