Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-boto for openSUSE:Factory 
checked in at 2022-01-19 00:35:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-boto (Old)
 and      /work/SRC/openSUSE:Factory/.python-boto.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-boto"

Wed Jan 19 00:35:05 2022 rev:8 rq:946931 version:2.49.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-boto/python-boto.changes  2020-12-09 
22:13:02.855165952 +0100
+++ /work/SRC/openSUSE:Factory/.python-boto.new.1892/python-boto.changes        
2022-01-19 00:35:08.374288087 +0100
@@ -1,0 +2,12 @@
+Mon Jan 17 11:00:40 UTC 2022 - Dirk M??ller <[email protected]>
+
+- add boto-python310.patch instead of sed statements 
+
+-------------------------------------------------------------------
+Thu Jan  6 19:30:59 UTC 2022 - Ben Greiner <[email protected]>
+
+- Fix collections for python 3.10. This breaks compatibility with
+  python2, but no Python 3.10 enabled distro will have that one
+- Fix update-alternatives
+
+-------------------------------------------------------------------

New:
----
  boto-python310.patch

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

Other differences:
------------------
++++++ python-boto.spec ++++++
--- /var/tmp/diff_new_pack.BaElxw/_old  2022-01-19 00:35:09.022288550 +0100
+++ /var/tmp/diff_new_pack.BaElxw/_new  2022-01-19 00:35:09.026288553 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-boto
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,7 @@
 Source:         
https://files.pythonhosted.org/packages/source/b/boto/boto-%{version}.tar.gz
 Source1:        boto.cfg
 Patch:          boto-no-builtin-certs.patch
+Patch2:         boto-python310.patch
 BuildRequires:  %{python_module PyYAML >= 3.10}
 BuildRequires:  %{python_module httpretty >= 0.7.0}
 BuildRequires:  %{python_module mock >= 1.0.1}
@@ -45,7 +46,7 @@
 Requires:       python-paramiko >= 1.10.0
 Requires:       python-xml
 Requires(post): update-alternatives
-Requires(preun): update-alternatives
+Requires(postun):update-alternatives
 Recommends:     python-requests >= 1.2.3
 Recommends:     python-rsa >= 3.1.4
 Suggests:       python-PyYAML >= 3.10
@@ -111,6 +112,9 @@
 sed -i '/^#!/d' boto/{services/bs,services/result,pyami/launch_ami}.py
 rm boto/cacerts/cacerts.txt
 %patch
+%if 0%{?suse_version} >= 1500
+%patch2 -p1
+%endif
 
 %build
 %python_build
@@ -157,14 +161,16 @@
 %python_exec -m nose -v tests/unit -e 
'test_.*(canned|custom)_policy|test_hmac|test_constructor|test_item_lookup'
 
 %post
-%{python_install_alternative asadmin bundle_image cfadmin cq cwutil 
dynamodb_dump dynamodb_load elbadmin fetch_file glacier instance_events 
kill_instance launch_instance list_instances lss3 mturk pyami_sendmail route53 
s3put sdbadmin taskadmin boto.cfg}
+%{python_install_alternative asadmin bundle_image cfadmin cq cwutil 
dynamodb_dump dynamodb_load elbadmin fetch_file glacier instance_events 
kill_instance launch_instance list_instances lss3 mturk pyami_sendmail route53 
s3put sdbadmin taskadmin  %{_sysconfdir}/boto.cfg}
 
-%preun
+%postun
 %python_uninstall_alternative asadmin
 
 %files %{python_files}
 %doc README.rst
-%config %python_alternative %{_sysconfdir}/boto.cfg
+%ghost /etc/alternatives/boto.cfg
+%config %{_sysconfdir}/boto.cfg
+%config %{_sysconfdir}/boto.cfg-%{python_bin_suffix}
 %python_alternative %{_bindir}/asadmin
 %python_alternative %{_bindir}/bundle_image
 %python_alternative %{_bindir}/cfadmin
@@ -186,6 +192,7 @@
 %python_alternative %{_bindir}/s3put
 %python_alternative %{_bindir}/sdbadmin
 %python_alternative %{_bindir}/taskadmin
-%{python_sitelib}/*
+%{python_sitelib}/boto
+%{python_sitelib}/boto-%{version}*-info
 
 %changelog

++++++ boto-python310.patch ++++++
--- boto-2.49.0/boto/dynamodb/types.py
+++ boto-2.49.0/boto/dynamodb/types.py
@@ -27,7 +27,7 @@
 import base64
 from decimal import (Decimal, DecimalException, Context,
                      Clamped, Overflow, Inexact, Underflow, Rounded)
-from collections import Mapping
+from collections.abc import Mapping
 from boto.dynamodb.exceptions import DynamoDBNumberError
 from boto.compat import filter, map, six, long_type
 
--- boto-2.49.0/boto/mws/connection.py
+++ boto-2.49.0/boto/mws/connection.py
@@ -109,7 +109,7 @@
 def destructure_object(value, into, prefix, members=False):
     if isinstance(value, boto.mws.response.ResponseElement):
         destructure_object(value.__dict__, into, prefix, members=members)
-    elif isinstance(value, collections.Mapping):
+    elif isinstance(value, collections.abc.Mapping):
         for name in value:
             if name.startswith('_'):
                 continue
@@ -117,7 +117,7 @@
                                members=members)
     elif isinstance(value, six.string_types):
         into[prefix] = value
-    elif isinstance(value, collections.Iterable):
+    elif isinstance(value, collections.abc.Iterable):
         for index, element in enumerate(value):
             suffix = (members and '.member.' or '.') + str(index + 1)
             destructure_object(element, into, prefix + suffix,

Reply via email to