Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-importlib-metadata for
openSUSE:Factory checked in at 2021-04-27 21:34:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-importlib-metadata (Old)
and /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-importlib-metadata"
Tue Apr 27 21:34:13 2021 rev:6 rq:888422 version:3.7.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-importlib-metadata/python-importlib-metadata.changes
2021-03-05 13:43:06.303503772 +0100
+++
/work/SRC/openSUSE:Factory/.python-importlib-metadata.new.12324/python-importlib-metadata.changes
2021-04-27 21:34:17.375946992 +0200
@@ -1,0 +2,8 @@
+Fri Mar 12 21:29:20 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 3.7.2:
+ * Cleaned up cruft in entry_points docstring.
+ * Internal refactoring to facilitate ``entry_points() -> dict``
+ deprecation.
+
+-------------------------------------------------------------------
Old:
----
importlib_metadata-3.7.0.tar.gz
New:
----
importlib_metadata-3.7.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-importlib-metadata.spec ++++++
--- /var/tmp/diff_new_pack.pOezBl/_old 2021-04-27 21:34:17.851947775 +0200
+++ /var/tmp/diff_new_pack.pOezBl/_new 2021-04-27 21:34:17.855947782 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package python-importlib-metadata
+# spec file for package python-importlib-metadata-test
#
# Copyright (c) 2021 SUSE LLC
#
@@ -27,7 +27,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-importlib-metadata%{psuffix}
-Version: 3.7.0
+Version: 3.7.2
Release: 0
Summary: Read metadata from Python packages
License: Apache-2.0
++++++ importlib_metadata-3.7.0.tar.gz -> importlib_metadata-3.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-3.7.0/CHANGES.rst
new/importlib_metadata-3.7.2/CHANGES.rst
--- old/importlib_metadata-3.7.0/CHANGES.rst 2021-02-24 18:42:24.000000000
+0100
+++ new/importlib_metadata-3.7.2/CHANGES.rst 2021-03-08 00:54:50.000000000
+0100
@@ -1,3 +1,14 @@
+v3.7.2
+======
+
+* Cleaned up cruft in entry_points docstring.
+
+v3.7.1
+======
+
+* Internal refactoring to facilitate ``entry_points() -> dict``
+ deprecation.
+
v3.7.0
======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-3.7.0/PKG-INFO
new/importlib_metadata-3.7.2/PKG-INFO
--- old/importlib_metadata-3.7.0/PKG-INFO 2021-02-24 18:42:50.727900300
+0100
+++ new/importlib_metadata-3.7.2/PKG-INFO 2021-03-08 00:55:14.236532200
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: importlib_metadata
-Version: 3.7.0
+Version: 3.7.2
Summary: Read metadata from Python packages
Home-page: https://github.com/python/importlib_metadata
Author: Jason R. Coombs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/importlib_metadata-3.7.0/importlib_metadata/__init__.py
new/importlib_metadata-3.7.2/importlib_metadata/__init__.py
--- old/importlib_metadata-3.7.0/importlib_metadata/__init__.py 2021-02-24
18:42:24.000000000 +0100
+++ new/importlib_metadata-3.7.2/importlib_metadata/__init__.py 2021-03-08
00:54:50.000000000 +0100
@@ -192,6 +192,66 @@
return cls(ep._for(dist) for ep in EntryPoint._from_text(text))
+def flake8_bypass(func):
+ is_flake8 = any('flake8' in str(frame.filename) for frame in
inspect.stack()[:5])
+ return func if not is_flake8 else lambda: None
+
+
+class Deprecated:
+ """
+ Compatibility add-in for mapping to indicate that
+ mapping behavior is deprecated.
+
+ >>> recwarn = getfixture('recwarn')
+ >>> class DeprecatedDict(Deprecated, dict): pass
+ >>> dd = DeprecatedDict(foo='bar')
+ >>> dd.get('baz', None)
+ >>> dd['foo']
+ 'bar'
+ >>> list(dd)
+ ['foo']
+ >>> list(dd.keys())
+ ['foo']
+ >>> 'foo' in dd
+ True
+ >>> list(dd.values())
+ ['bar']
+ >>> len(recwarn)
+ 1
+ """
+
+ _warn = functools.partial(
+ warnings.warn,
+ "SelectableGroups dict interface is deprecated. Use select.",
+ DeprecationWarning,
+ stacklevel=2,
+ )
+
+ def __getitem__(self, name):
+ self._warn()
+ return super().__getitem__(name)
+
+ def get(self, name, default=None):
+ flake8_bypass(self._warn)()
+ return super().get(name, default)
+
+ def __iter__(self):
+ self._warn()
+ return super().__iter__()
+
+ def __contains__(self, *args):
+ self._warn()
+ return super().__contains__(*args)
+
+ def keys(self):
+ self._warn()
+ return super().keys()
+
+ def values(self):
+ self._warn()
+ return super().values()
+
+
class SelectableGroups(dict):
"""
A backward- and forward-compatible result from
@@ -207,6 +267,9 @@
@property
def _all(self):
+ """
+ Reconstruct a list of all entrypoints from the groups.
+ """
return EntryPoints(itertools.chain.from_iterable(self.values()))
@property
@@ -228,44 +291,6 @@
return self._all.select(**params)
-class LegacyGroupedEntryPoints(EntryPoints): # pragma: nocover
- """
- Compatibility wrapper around EntryPoints to provide
- much of the 'dict' interface previously returned by
- entry_points.
- """
-
- def __getitem__(self, name) -> Union[EntryPoint, 'EntryPoints']:
- """
- When accessed by name that matches a group, return the group.
- """
- group = self.select(group=name)
- if group:
- msg = "GroupedEntryPoints.__getitem__ is deprecated for groups.
Use select."
- warnings.warn(msg, DeprecationWarning, stacklevel=2)
- return group
-
- return super().__getitem__(name)
-
- def get(self, group, default=None):
- """
- For backward compatibility, supply .get.
- """
- is_flake8 = any('flake8' in str(frame) for frame in inspect.stack())
- msg = "GroupedEntryPoints.get is deprecated. Use select."
- is_flake8 or warnings.warn(msg, DeprecationWarning, stacklevel=2)
- return self.select(group=group) or default
-
- def select(self, **params):
- """
- Prevent transform to EntryPoints during call to entry_points if
- no selection parameters were passed.
- """
- if not params:
- return self
- return super().select(**params)
-
-
class PackagePath(pathlib.PurePosixPath):
"""A reference to a path in a package"""
@@ -763,9 +788,8 @@
For compatibility, returns ``SelectableGroups`` object unless
selection parameters are supplied. In the future, this function
- will return ``LegacyGroupedEntryPoints`` instead of
- ``SelectableGroups`` and eventually will only return
- ``EntryPoints``.
+ will return ``EntryPoints`` instead of ``SelectableGroups``
+ even when no selection parameters are supplied.
For maximum future compatibility, pass selection parameters
or invoke ``.select`` with parameters on the result.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/importlib_metadata-3.7.0/importlib_metadata.egg-info/PKG-INFO
new/importlib_metadata-3.7.2/importlib_metadata.egg-info/PKG-INFO
--- old/importlib_metadata-3.7.0/importlib_metadata.egg-info/PKG-INFO
2021-02-24 18:42:50.000000000 +0100
+++ new/importlib_metadata-3.7.2/importlib_metadata.egg-info/PKG-INFO
2021-03-08 00:55:14.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: importlib-metadata
-Version: 3.7.0
+Version: 3.7.2
Summary: Read metadata from Python packages
Home-page: https://github.com/python/importlib_metadata
Author: Jason R. Coombs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-3.7.0/tests/test_api.py
new/importlib_metadata-3.7.2/tests/test_api.py
--- old/importlib_metadata-3.7.0/tests/test_api.py 2021-02-24
18:42:24.000000000 +0100
+++ new/importlib_metadata-3.7.2/tests/test_api.py 2021-03-08
00:54:50.000000000 +0100
@@ -141,8 +141,8 @@
with warnings.catch_warnings(record=True):
entry_points()['entries'] == entry_points(group='entries')
- with self.assertRaises(KeyError):
- entry_points()['missing']
+ with self.assertRaises(KeyError):
+ entry_points()['missing']
def test_entry_points_groups_get(self):
"""