Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-cliff for openSUSE:Factory 
checked in at 2024-01-15 22:17:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cliff (Old)
 and      /work/SRC/openSUSE:Factory/.python-cliff.new.21961 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cliff"

Mon Jan 15 22:17:30 2024 rev:42 rq:1138686 version:4.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cliff/python-cliff.changes        
2024-01-05 21:47:00.634566202 +0100
+++ /work/SRC/openSUSE:Factory/.python-cliff.new.21961/python-cliff.changes     
2024-01-15 22:19:02.726439226 +0100
@@ -1,0 +2,6 @@
+Sun Jan 14 17:06:47 UTC 2024 - Dirk Müller <[email protected]>
+
+- update to 4.5.0:
+  * Use importlib.metadata on Python 3.10+
+
+-------------------------------------------------------------------

Old:
----
  cliff-4.4.0.tar.gz

New:
----
  cliff-4.5.0.tar.gz

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

Other differences:
------------------
++++++ python-cliff.spec ++++++
--- /var/tmp/diff_new_pack.JYHHgr/_old  2024-01-15 22:19:03.302460395 +0100
+++ /var/tmp/diff_new_pack.JYHHgr/_new  2024-01-15 22:19:03.302460395 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python-cliff
-Version:        4.4.0
+Version:        4.5.0
 Release:        0
 Summary:        Command Line Interface Formulation Framework
 License:        Apache-2.0

++++++ cliff-4.4.0.tar.gz -> cliff-4.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cliff-4.4.0/AUTHORS new/cliff-4.5.0/AUTHORS
--- old/cliff-4.4.0/AUTHORS     2023-11-14 11:08:01.000000000 +0100
+++ new/cliff-4.5.0/AUTHORS     2024-01-12 16:53:57.000000000 +0100
@@ -6,6 +6,7 @@
 Andrew Spiers <[email protected]>
 Andrey Volkov <[email protected]>
 Atsushi SAKAI <[email protected]>
+Benjamin A. Beasley <[email protected]>
 Brano Zarnovican <[email protected]>
 Cao Xuan Hoang <[email protected]>
 Cedric Brandily <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cliff-4.4.0/ChangeLog new/cliff-4.5.0/ChangeLog
--- old/cliff-4.4.0/ChangeLog   2023-11-14 11:08:01.000000000 +0100
+++ new/cliff-4.5.0/ChangeLog   2024-01-12 16:53:57.000000000 +0100
@@ -1,6 +1,11 @@
 CHANGES
 =======
 
+4.5.0
+-----
+
+* Use importlib.metadata on Python 3.10+
+
 4.4.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cliff-4.4.0/PKG-INFO new/cliff-4.5.0/PKG-INFO
--- old/cliff-4.4.0/PKG-INFO    2023-11-14 11:08:01.258277400 +0100
+++ new/cliff-4.5.0/PKG-INFO    2024-01-12 16:53:57.250586000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: cliff
-Version: 4.4.0
+Version: 4.5.0
 Summary: Command Line Interface Formulation Framework
 Home-page: https://docs.openstack.org/cliff/latest/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cliff-4.4.0/cliff/command.py 
new/cliff-4.5.0/cliff/command.py
--- old/cliff-4.4.0/cliff/command.py    2023-11-14 11:07:31.000000000 +0100
+++ new/cliff-4.5.0/cliff/command.py    2024-01-12 16:53:32.000000000 +0100
@@ -13,7 +13,13 @@
 import abc
 import inspect
 
-import importlib_metadata
+try:
+    # Python 3.10 and later
+    from importlib.metadata import packages_distributions
+except ImportError:
+    # Python 3.9 and older
+    from importlib_metadata import packages_distributions
+
 from stevedore import extension
 
 from cliff import _argparse
@@ -34,8 +40,7 @@
         # There can be multiple distribution in the case of namespace packages
         # so we'll just grab the first one
         _dists_by_mods = {
-            k: v[0] for k, v in
-            importlib_metadata.packages_distributions().items()
+            k: v[0] for k, v in packages_distributions().items()
         }
     return _dists_by_mods
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cliff-4.4.0/cliff.egg-info/PKG-INFO 
new/cliff-4.5.0/cliff.egg-info/PKG-INFO
--- old/cliff-4.4.0/cliff.egg-info/PKG-INFO     2023-11-14 11:08:01.000000000 
+0100
+++ new/cliff-4.5.0/cliff.egg-info/PKG-INFO     2024-01-12 16:53:57.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: cliff
-Version: 4.4.0
+Version: 4.5.0
 Summary: Command Line Interface Formulation Framework
 Home-page: https://docs.openstack.org/cliff/latest/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cliff-4.4.0/cliff.egg-info/pbr.json 
new/cliff-4.5.0/cliff.egg-info/pbr.json
--- old/cliff-4.4.0/cliff.egg-info/pbr.json     2023-11-14 11:08:01.000000000 
+0100
+++ new/cliff-4.5.0/cliff.egg-info/pbr.json     2024-01-12 16:53:57.000000000 
+0100
@@ -1 +1 @@
-{"git_version": "3ee0725", "is_release": true}
\ No newline at end of file
+{"git_version": "156e1eb", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cliff-4.4.0/cliff.egg-info/requires.txt 
new/cliff-4.5.0/cliff.egg-info/requires.txt
--- old/cliff-4.4.0/cliff.egg-info/requires.txt 2023-11-14 11:08:01.000000000 
+0100
+++ new/cliff-4.5.0/cliff.egg-info/requires.txt 2024-01-12 16:53:57.000000000 
+0100
@@ -2,5 +2,7 @@
 PyYAML>=3.12
 autopage>=0.4.0
 cmd2>=1.0.0
-importlib_metadata>=4.4
 stevedore>=2.0.1
+
+[:(python_version<"3.10")]
+importlib_metadata>=4.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cliff-4.4.0/requirements.txt 
new/cliff-4.5.0/requirements.txt
--- old/cliff-4.4.0/requirements.txt    2023-11-14 11:07:31.000000000 +0100
+++ new/cliff-4.5.0/requirements.txt    2024-01-12 16:53:32.000000000 +0100
@@ -1,6 +1,5 @@
 autopage>=0.4.0 # Apache 2.0
-# TODO: Drop this when Python 3.10 is our minimum supported version
-importlib_metadata>=4.4 # Apache-2.0
+importlib_metadata>=4.4;python_version<"3.10" # Apache-2.0
 cmd2>=1.0.0 # MIT
 PrettyTable>=0.7.2 # BSD
 stevedore>=2.0.1 # Apache-2.0

Reply via email to