Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-bson for openSUSE:Factory 
checked in at 2023-12-19 23:16:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-bson (Old)
 and      /work/SRC/openSUSE:Factory/.python-bson.new.9037 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-bson"

Tue Dec 19 23:16:00 2023 rev:5 rq:1133931 version:0.5.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-bson/python-bson.changes  2022-11-03 
19:15:42.908547547 +0100
+++ /work/SRC/openSUSE:Factory/.python-bson.new.9037/python-bson.changes        
2023-12-19 23:16:11.330312168 +0100
@@ -1,0 +2,7 @@
+Tue Dec 19 01:47:46 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch support-python312.patch:
+  * Support Python 3.12 by using assertEqual.
+- Switch to pyproject macros.
+
+-------------------------------------------------------------------

New:
----
  support-python312.patch

BETA DEBUG BEGIN:
  New:
- Add patch support-python312.patch:
  * Support Python 3.12 by using assertEqual.
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-bson.spec ++++++
--- /var/tmp/diff_new_pack.cFuxeH/_old  2023-12-19 23:16:12.514355285 +0100
+++ /var/tmp/diff_new_pack.cFuxeH/_new  2023-12-19 23:16:12.518355430 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-bson
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,12 +21,15 @@
 Release:        0
 Summary:        BSON codec for Python
 License:        Apache-2.0 AND BSD-3-Clause
-Group:          Development/Languages/Python
 URL:            https://github.com/py-bson/bson
 Source:         
https://github.com/py-bson/bson/archive/%{version}.tar.gz#/bson-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM drop-python2-support.patch gh#py-bson/bson#118
-Patch:          drop-python2-support.patch
+Patch0:         drop-python2-support.patch
+# PATCH-FIX-OPENSUSE Use assertEqual to support Python 3.12
+Patch1:         support-python312.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-python-dateutil >= 2.4.0
@@ -44,10 +47,10 @@
 sed -i '1 {/^#!/d}' bson/*.py
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -57,5 +60,5 @@
 %doc README.rst
 %license LICENSE LICENSE_APACHE
 %{python_sitelib}/bson
-%{python_sitelib}/bson-%{version}*-info
+%{python_sitelib}/bson-%{version}.dist-info
 

++++++ support-python312.patch ++++++
Index: bson-0.5.10/bson/tests/test_array.py
===================================================================
--- bson-0.5.10.orig/bson/tests/test_array.py
+++ bson-0.5.10/bson/tests/test_array.py
@@ -69,9 +69,9 @@ class TestArray(TestCase):
     def test_long_array(self):
         serialized = dumps(self.doc)
         doc2 = loads(serialized)
-        self.assertEquals(self.doc, doc2)
+        self.assertEqual(self.doc, doc2)
 
     def test_encoded_order(self):
         serialized = dumps(self.doc)
         expected = repr(serialized)[1:]
-        self.assertEquals(expected, 
'\'\\xea\\x08\\x00\\x00\\x04lyrics\\x00\\xdd\\x08\\x00\\x00\\x020\\x00\\x14\\x00\\x00\\x00Viva
 La Vida 
lyrics\\x00\\x021\\x00\\x01\\x00\\x00\\x00\\x00\\x022\\x00!\\x00\\x00\\x00      
  I used to rule the world\\x00\\x023\\x00-\\x00\\x00\\x00        Seas would 
rise when I gave the word\\x00\\x024\\x00)\\x00\\x00\\x00        Now in the 
morning I sleep alone\\x00\\x025\\x00(\\x00\\x00\\x00        Sweep the streets 
I used to own\\x00\\x026\\x00\\x01\\x00\\x00\\x00\\x00\\x027\\x00 
\\x00\\x00\\x00        I used to roll the dice\\x00\\x028\\x00)\\x00\\x00\\x00  
      Feel the fear in my enemy\\\'s eyes\\x00\\x029\\x00\\\'\\x00\\x00\\x00    
    Listen as the crowd would sing\\x00\\x0210\\x008\\x00\\x00\\x00        "Now 
the old king is dead! Long live the 
king!"\\x00\\x0211\\x00\\x01\\x00\\x00\\x00\\x00\\x0212\\x00"\\x00\\x00\\x00    
    One minute I held the key\\x00\\x0213\\x00)\\x00\\x00\\x00        Next the 
walls were closed on me\\x00\\x0214\\x00/\\x0
 0\\x00\\x00        And I discovered that my castles 
stand\\x00\\x0215\\x001\\x00\\x00\\x00        Upon pillars of salt and pillars 
of sand\\x00\\x0216\\x00\\x01\\x00\\x00\\x00\\x00\\x0217\\x00)\\x00\\x00\\x00   
     I hear Jerusalem bells a ringing\\x00\\x0218\\x00)\\x00\\x00\\x00        
Roman Cavalry choirs are singing\\x00\\x0219\\x00*\\x00\\x00\\x00        Be my 
mirror, my sword and shield\\x00\\x0220\\x00+\\x00\\x00\\x00        My 
missionaries in a foreign 
field\\x00\\x0221\\x00\\x01\\x00\\x00\\x00\\x00\\x0222\\x00(\\x00\\x00\\x00     
   For some reason I can\\\'t explain\\x00\\x0223\\x00$\\x00\\x00\\x00        
Once you go there was never\\x00\\x0224\\x00\\x1d\\x00\\x00\\x00        Never 
an honest word\\x00\\x0225\\x00,\\x00\\x00\\x00        And that was when I 
ruled the 
world\\x00\\x0226\\x00\\x01\\x00\\x00\\x00\\x00\\x0227\\x00(\\x00\\x00\\x00     
   It was the wicked and wild wind\\x00\\x0228\\x00)\\x00\\x00\\x00        Blew 
down the doors to let me in\\x00\\x0229\\x001\\x00\
 \x00\\x00        Shattered windows and the sound of 
drums\\x00\\x0230\\x000\\x00\\x00\\x00        People couldn\\\'t believe what 
I\\\'d 
become\\x00\\x0231\\x00\\x01\\x00\\x00\\x00\\x00\\x0232\\x00\\x1d\\x00\\x00\\x00
        Revolutionaries wait\\x00\\x0233\\x00&\\x00\\x00\\x00        For my 
head on a silver plate\\x00\\x0234\\x00)\\x00\\x00\\x00        Just a puppet on 
a lonely string\\x00\\x0235\\x00+\\x00\\x00\\x00        Oh who would ever want 
to be 
king?\\x00\\x0236\\x00\\x01\\x00\\x00\\x00\\x00\\x0237\\x00)\\x00\\x00\\x00     
   I hear Jerusalem bells a ringing\\x00\\x0238\\x00)\\x00\\x00\\x00        
Roman Cavalry choirs are singing\\x00\\x0239\\x00*\\x00\\x00\\x00        Be my 
mirror, my sword and shield\\x00\\x0240\\x00+\\x00\\x00\\x00        My 
missionaries in a foreign 
field\\x00\\x0241\\x00\\x01\\x00\\x00\\x00\\x00\\x0242\\x00(\\x00\\x00\\x00     
   For some reason I can\\\'t explain\\x00\\x0243\\x00.\\x00\\x00\\x00        I 
know Saint Peter won\\\'t call my name\\x00\\x0
 244\\x00\\x1d\\x00\\x00\\x00        Never an honest 
word\\x00\\x0245\\x00,\\x00\\x00\\x00        But that was when I ruled the 
world\\x00\\x0246\\x00\\x01\\x00\\x00\\x00\\x00\\x0247\\x00)\\x00\\x00\\x00     
   I hear Jerusalem bells a ringing\\x00\\x0248\\x00)\\x00\\x00\\x00        
Roman Cavalry choirs are singing\\x00\\x0249\\x00*\\x00\\x00\\x00        Be my 
mirror, my sword and shield\\x00\\x0250\\x00+\\x00\\x00\\x00        My 
missionaries in a foreign 
field\\x00\\x0251\\x00\\x01\\x00\\x00\\x00\\x00\\x0252\\x00(\\x00\\x00\\x00     
   For some reason I can\\\'t explain\\x00\\x0253\\x00.\\x00\\x00\\x00        I 
know Saint Peter won\\\'t call my name\\x00\\x0254\\x00\\x1d\\x00\\x00\\x00     
   Never an honest word\\x00\\x0255\\x00,\\x00\\x00\\x00        But that was 
when I ruled the world\\x00\\x00\\x00\'')
+        self.assertEqual(expected, 
'\'\\xea\\x08\\x00\\x00\\x04lyrics\\x00\\xdd\\x08\\x00\\x00\\x020\\x00\\x14\\x00\\x00\\x00Viva
 La Vida 
lyrics\\x00\\x021\\x00\\x01\\x00\\x00\\x00\\x00\\x022\\x00!\\x00\\x00\\x00      
  I used to rule the world\\x00\\x023\\x00-\\x00\\x00\\x00        Seas would 
rise when I gave the word\\x00\\x024\\x00)\\x00\\x00\\x00        Now in the 
morning I sleep alone\\x00\\x025\\x00(\\x00\\x00\\x00        Sweep the streets 
I used to own\\x00\\x026\\x00\\x01\\x00\\x00\\x00\\x00\\x027\\x00 
\\x00\\x00\\x00        I used to roll the dice\\x00\\x028\\x00)\\x00\\x00\\x00  
      Feel the fear in my enemy\\\'s eyes\\x00\\x029\\x00\\\'\\x00\\x00\\x00    
    Listen as the crowd would sing\\x00\\x0210\\x008\\x00\\x00\\x00        "Now 
the old king is dead! Long live the 
king!"\\x00\\x0211\\x00\\x01\\x00\\x00\\x00\\x00\\x0212\\x00"\\x00\\x00\\x00    
    One minute I held the key\\x00\\x0213\\x00)\\x00\\x00\\x00        Next the 
walls were closed on me\\x00\\x0214\\x00/\\x00
 \\x00\\x00        And I discovered that my castles 
stand\\x00\\x0215\\x001\\x00\\x00\\x00        Upon pillars of salt and pillars 
of sand\\x00\\x0216\\x00\\x01\\x00\\x00\\x00\\x00\\x0217\\x00)\\x00\\x00\\x00   
     I hear Jerusalem bells a ringing\\x00\\x0218\\x00)\\x00\\x00\\x00        
Roman Cavalry choirs are singing\\x00\\x0219\\x00*\\x00\\x00\\x00        Be my 
mirror, my sword and shield\\x00\\x0220\\x00+\\x00\\x00\\x00        My 
missionaries in a foreign 
field\\x00\\x0221\\x00\\x01\\x00\\x00\\x00\\x00\\x0222\\x00(\\x00\\x00\\x00     
   For some reason I can\\\'t explain\\x00\\x0223\\x00$\\x00\\x00\\x00        
Once you go there was never\\x00\\x0224\\x00\\x1d\\x00\\x00\\x00        Never 
an honest word\\x00\\x0225\\x00,\\x00\\x00\\x00        And that was when I 
ruled the 
world\\x00\\x0226\\x00\\x01\\x00\\x00\\x00\\x00\\x0227\\x00(\\x00\\x00\\x00     
   It was the wicked and wild wind\\x00\\x0228\\x00)\\x00\\x00\\x00        Blew 
down the doors to let me in\\x00\\x0229\\x001\\x00\\
 x00\\x00        Shattered windows and the sound of 
drums\\x00\\x0230\\x000\\x00\\x00\\x00        People couldn\\\'t believe what 
I\\\'d 
become\\x00\\x0231\\x00\\x01\\x00\\x00\\x00\\x00\\x0232\\x00\\x1d\\x00\\x00\\x00
        Revolutionaries wait\\x00\\x0233\\x00&\\x00\\x00\\x00        For my 
head on a silver plate\\x00\\x0234\\x00)\\x00\\x00\\x00        Just a puppet on 
a lonely string\\x00\\x0235\\x00+\\x00\\x00\\x00        Oh who would ever want 
to be 
king?\\x00\\x0236\\x00\\x01\\x00\\x00\\x00\\x00\\x0237\\x00)\\x00\\x00\\x00     
   I hear Jerusalem bells a ringing\\x00\\x0238\\x00)\\x00\\x00\\x00        
Roman Cavalry choirs are singing\\x00\\x0239\\x00*\\x00\\x00\\x00        Be my 
mirror, my sword and shield\\x00\\x0240\\x00+\\x00\\x00\\x00        My 
missionaries in a foreign 
field\\x00\\x0241\\x00\\x01\\x00\\x00\\x00\\x00\\x0242\\x00(\\x00\\x00\\x00     
   For some reason I can\\\'t explain\\x00\\x0243\\x00.\\x00\\x00\\x00        I 
know Saint Peter won\\\'t call my name\\x00\\x02
 44\\x00\\x1d\\x00\\x00\\x00        Never an honest 
word\\x00\\x0245\\x00,\\x00\\x00\\x00        But that was when I ruled the 
world\\x00\\x0246\\x00\\x01\\x00\\x00\\x00\\x00\\x0247\\x00)\\x00\\x00\\x00     
   I hear Jerusalem bells a ringing\\x00\\x0248\\x00)\\x00\\x00\\x00        
Roman Cavalry choirs are singing\\x00\\x0249\\x00*\\x00\\x00\\x00        Be my 
mirror, my sword and shield\\x00\\x0250\\x00+\\x00\\x00\\x00        My 
missionaries in a foreign 
field\\x00\\x0251\\x00\\x01\\x00\\x00\\x00\\x00\\x0252\\x00(\\x00\\x00\\x00     
   For some reason I can\\\'t explain\\x00\\x0253\\x00.\\x00\\x00\\x00        I 
know Saint Peter won\\\'t call my name\\x00\\x0254\\x00\\x1d\\x00\\x00\\x00     
   Never an honest word\\x00\\x0255\\x00,\\x00\\x00\\x00        But that was 
when I ruled the world\\x00\\x00\\x00\'')
Index: bson-0.5.10/bson/tests/test_random_tree.py
===================================================================
--- bson-0.5.10.orig/bson/tests/test_random_tree.py
+++ bson-0.5.10/bson/tests/test_random_tree.py
@@ -61,4 +61,4 @@ class TestRandomTree(TestCase):
             populate(p, 256, 4)
             sp = dumps(p)
             p2 = loads(sp)
-            self.assertEquals(p, p2)
+            self.assertEqual(p, p2)

Reply via email to