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-12-09 19:45:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-importlib-metadata (Old) and /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-importlib-metadata" Thu Dec 9 19:45:11 2021 rev:8 rq:935953 version:4.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-importlib-metadata/python-importlib-metadata.changes 2021-09-26 21:49:19.510823058 +0200 +++ /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.2520/python-importlib-metadata.changes 2021-12-09 19:45:22.593126533 +0100 @@ -1,0 +2,6 @@ +Mon Dec 6 09:40:17 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 4.8.2: + * #353: Fixed discovery of distributions when path is empty. + +------------------------------------------------------------------- Old: ---- importlib_metadata-4.8.1.tar.gz New: ---- importlib_metadata-4.8.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-importlib-metadata.spec ++++++ --- /var/tmp/diff_new_pack.Zw0ADr/_old 2021-12-09 19:45:23.273126860 +0100 +++ /var/tmp/diff_new_pack.Zw0ADr/_new 2021-12-09 19:45:23.281126864 +0100 @@ -27,7 +27,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-importlib-metadata%{psuffix} -Version: 4.8.1 +Version: 4.8.2 Release: 0 Summary: Read metadata from Python packages License: Apache-2.0 ++++++ importlib_metadata-4.8.1.tar.gz -> importlib_metadata-4.8.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/.editorconfig new/importlib_metadata-4.8.2/.editorconfig --- old/importlib_metadata-4.8.1/.editorconfig 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/.editorconfig 2021-11-09 02:14:49.000000000 +0100 @@ -9,6 +9,7 @@ [*.py] indent_style = space +max_line_length = 88 [*.{yml,yaml}] indent_style = space diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/.github/workflows/main.yml new/importlib_metadata-4.8.2/.github/workflows/main.yml --- old/importlib_metadata-4.8.1/.github/workflows/main.yml 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/.github/workflows/main.yml 2021-11-09 02:14:49.000000000 +0100 @@ -9,11 +9,19 @@ python: - 3.6 - 3.9 - - 3.10.0-alpha - 3.10.99 - platform: [ubuntu-latest, macos-latest, windows-latest] + - "3.10" + platform: + - ubuntu-latest + - macos-latest + - windows-latest runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 + with: + # fetch all branches and tags (to get tags for versioning) + # ref actions/checkout#448 + fetch-depth: 0 + - name: Setup Python uses: actions/setup-python@v2 with: @@ -52,7 +60,7 @@ - name: Setup Python uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: "3.10" - name: Install tox run: | python -m pip install tox diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/CHANGES.rst new/importlib_metadata-4.8.2/CHANGES.rst --- old/importlib_metadata-4.8.1/CHANGES.rst 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/CHANGES.rst 2021-11-09 02:14:49.000000000 +0100 @@ -1,3 +1,11 @@ +v4.8.2 +====== + +v2.1.2 +====== + +* #353: Fixed discovery of distributions when path is empty. + v4.8.1 ====== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/PKG-INFO new/importlib_metadata-4.8.2/PKG-INFO --- old/importlib_metadata-4.8.1/PKG-INFO 2021-08-29 17:26:44.198675000 +0200 +++ new/importlib_metadata-4.8.2/PKG-INFO 2021-11-09 02:15:16.083703800 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: importlib_metadata -Version: 4.8.1 +Version: 4.8.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-4.8.1/docs/conf.py new/importlib_metadata-4.8.2/docs/conf.py --- old/importlib_metadata-4.8.1/docs/conf.py 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/docs/conf.py 2021-11-09 02:14:49.000000000 +0100 @@ -27,17 +27,19 @@ # Be strict about any broken references: nitpicky = True -# Support intersphinx links -extensions += [ - 'sphinx.ext.intersphinx', -] +# Include Python intersphinx mapping to prevent failures +# jaraco/skeleton#51 +extensions += ['sphinx.ext.intersphinx'] intersphinx_mapping = { 'python': ('https://docs.python.org/3', None), - 'importlib_resources': ( +} + +intersphinx_mapping.update( + importlib_resources=( 'https://importlib-resources.readthedocs.io/en/latest/', None, ), -} +) # Workaround for #316 nitpick_ignore = [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/docs/index.rst new/importlib_metadata-4.8.2/docs/index.rst --- old/importlib_metadata-4.8.1/docs/index.rst 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/docs/index.rst 2021-11-09 02:14:49.000000000 +0100 @@ -4,20 +4,18 @@ ``importlib_metadata`` is a library which provides an API for accessing an installed package's metadata (see :pep:`566`), such as its entry points or its top-level name. This functionality intends to replace most uses of ``pkg_resources`` -`entry point API`_ and `metadata API`_. Along with :mod:`importlib.resources` in -Python 3.7 and newer (backported as :doc:`importlib_resources <importlib_resources:index>` for older -versions of Python), this can eliminate the need to use the older and less +`entry point API`_ and `metadata API`_. Along with :mod:`importlib.resources` +and newer (backported as :doc:`importlib_resources <importlib_resources:index>`), +this package can eliminate the need to use the older and less efficient ``pkg_resources`` package. ``importlib_metadata`` supplies a backport of -:doc:`importlib.metadata <library/importlib.metadata>` as found in -Python 3.8 and later for earlier Python releases. Users of -Python 3.8 and beyond are encouraged to use the standard library module -when possible and fall back to ``importlib_metadata`` when necessary. -When imported on Python 3.8 and later, ``importlib_metadata`` replaces the -DistributionFinder behavior from the stdlib, but leaves the API in tact. -Developers looking for detailed API descriptions should refer to the Python -3.8 standard library documentation. +:doc:`importlib.metadata <library/importlib.metadata>`, +enabling early access to features of future Python versions and making +functionality available for older Python versions. Users are encouraged to +use the Python standard library where suitable and fall back to +this library for future compatibility. Developers looking for detailed API +descriptions should refer to the standard library documentation. The documentation here includes a general :ref:`usage <using>` guide. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/importlib_metadata/__init__.py new/importlib_metadata-4.8.2/importlib_metadata/__init__.py --- old/importlib_metadata-4.8.1/importlib_metadata/__init__.py 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/importlib_metadata/__init__.py 2021-11-09 02:14:49.000000000 +0100 @@ -21,7 +21,7 @@ install, pypy_partial, ) -from ._functools import method_cache +from ._functools import method_cache, pass_none from ._itertools import always_iterable, unique_everseen from ._meta import PackageMetadata, SimplePath @@ -290,37 +290,26 @@ stacklevel=pypy_partial(2), ) - def __setitem__(self, *args, **kwargs): - self._warn() - return super().__setitem__(*args, **kwargs) - - def __delitem__(self, *args, **kwargs): - self._warn() - return super().__delitem__(*args, **kwargs) - - def append(self, *args, **kwargs): - self._warn() - return super().append(*args, **kwargs) - - def reverse(self, *args, **kwargs): - self._warn() - return super().reverse(*args, **kwargs) - - def extend(self, *args, **kwargs): - self._warn() - return super().extend(*args, **kwargs) - - def pop(self, *args, **kwargs): - self._warn() - return super().pop(*args, **kwargs) + def _wrap_deprecated_method(method_name: str): # type: ignore + def wrapped(self, *args, **kwargs): + self._warn() + return getattr(super(), method_name)(*args, **kwargs) - def remove(self, *args, **kwargs): - self._warn() - return super().remove(*args, **kwargs) + return wrapped - def __iadd__(self, *args, **kwargs): - self._warn() - return super().__iadd__(*args, **kwargs) + for method_name in [ + '__setitem__', + '__delitem__', + 'append', + 'reverse', + 'extend', + 'pop', + 'remove', + '__iadd__', + 'insert', + 'sort', + ]: + locals()[method_name] = _wrap_deprecated_method(method_name) def __add__(self, other): if not isinstance(other, tuple): @@ -328,14 +317,6 @@ other = tuple(other) return self.__class__(tuple(self) + other) - def insert(self, *args, **kwargs): - self._warn() - return super().insert(*args, **kwargs) - - def sort(self, *args, **kwargs): - self._warn() - return super().sort(*args, **kwargs) - def __eq__(self, other): if not isinstance(other, tuple): self._warn() @@ -654,7 +635,6 @@ missing. Result may be empty if the metadata exists but is empty. """ - file_lines = self._read_files_distinfo() or self._read_files_egginfo() def make_file(name, hash=None, size_str=None): result = PackagePath(name) @@ -663,7 +643,11 @@ result.dist = self return result - return file_lines and list(starmap(make_file, csv.reader(file_lines))) + @pass_none + def make_files(lines): + return list(starmap(make_file, csv.reader(lines))) + + return make_files(self._read_files_distinfo() or self._read_files_egginfo()) def _read_files_distinfo(self): """ @@ -776,6 +760,9 @@ """ Micro-optimized class for searching a path for children. + + >>> FastPath('').children() + ['...'] """ @functools.lru_cache() # type: ignore @@ -790,7 +777,7 @@ def children(self): with suppress(Exception): - return os.listdir(self.root or '') + return os.listdir(self.root or '.') with suppress(Exception): return self.zip_children() return [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/importlib_metadata/_compat.py new/importlib_metadata-4.8.2/importlib_metadata/_compat.py --- old/importlib_metadata-4.8.1/importlib_metadata/_compat.py 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/importlib_metadata/_compat.py 2021-11-09 02:14:49.000000000 +0100 @@ -8,11 +8,6 @@ try: from typing import Protocol except ImportError: # pragma: no cover - """ - pytest-mypy complains here because: - error: Incompatible import of "Protocol" (imported name has type - "typing_extensions._SpecialForm", local name has type "typing._SpecialForm") - """ from typing_extensions import Protocol # type: ignore diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/importlib_metadata/_functools.py new/importlib_metadata-4.8.2/importlib_metadata/_functools.py --- old/importlib_metadata-4.8.1/importlib_metadata/_functools.py 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/importlib_metadata/_functools.py 2021-11-09 02:14:49.000000000 +0100 @@ -83,3 +83,22 @@ wrapper.cache_clear = lambda: None return wrapper + + +# From jaraco.functools 3.3 +def pass_none(func): + """ + Wrap func so it's not called if its first param is None + + >>> print_text = pass_none(print) + >>> print_text('text') + text + >>> print_text(None) + """ + + @functools.wraps(func) + def wrapper(param, *args, **kwargs): + if param is not None: + return func(param, *args, **kwargs) + + return wrapper diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/importlib_metadata.egg-info/PKG-INFO new/importlib_metadata-4.8.2/importlib_metadata.egg-info/PKG-INFO --- old/importlib_metadata-4.8.1/importlib_metadata.egg-info/PKG-INFO 2021-08-29 17:26:44.000000000 +0200 +++ new/importlib_metadata-4.8.2/importlib_metadata.egg-info/PKG-INFO 2021-11-09 02:15:16.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: importlib-metadata -Version: 4.8.1 +Version: 4.8.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-4.8.1/importlib_metadata.egg-info/requires.txt new/importlib_metadata-4.8.2/importlib_metadata.egg-info/requires.txt --- old/importlib_metadata-4.8.1/importlib_metadata.egg-info/requires.txt 2021-08-29 17:26:44.000000000 +0200 +++ new/importlib_metadata-4.8.2/importlib_metadata.egg-info/requires.txt 2021-11-09 02:15:16.000000000 +0100 @@ -12,7 +12,7 @@ ipython [testing] -pytest>=4.6 +pytest>=6 pytest-checkdocs>=2.4 pytest-flake8 pytest-cov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/pyproject.toml new/importlib_metadata-4.8.2/pyproject.toml --- old/importlib_metadata-4.8.1/pyproject.toml 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/pyproject.toml 2021-11-09 02:14:49.000000000 +0100 @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=56", "wheel", "setuptools_scm[toml]>=3.4.1"] +requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"] build-backend = "setuptools.build_meta" [tool.black] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/pytest.ini new/importlib_metadata-4.8.2/pytest.ini --- old/importlib_metadata-4.8.1/pytest.ini 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/pytest.ini 2021-11-09 02:14:49.000000000 +0100 @@ -2,8 +2,6 @@ norecursedirs=dist build .tox .eggs addopts=--doctest-modules doctest_optionflags=ALLOW_UNICODE ELLIPSIS -# workaround for warning pytest-dev/pytest#6178 -junit_family=xunit2 filterwarnings= # Suppress deprecation warning in flake8 ignore:SelectableGroups dict interface is deprecated::flake8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/setup.cfg new/importlib_metadata-4.8.2/setup.cfg --- old/importlib_metadata-4.8.1/setup.cfg 2021-08-29 17:26:44.198675000 +0200 +++ new/importlib_metadata-4.8.2/setup.cfg 2021-11-09 02:15:16.083703800 +0100 @@ -30,7 +30,7 @@ [options.extras_require] testing = - pytest >= 4.6 + pytest >= 6 pytest-checkdocs >= 2.4 pytest-flake8 pytest-black >= 0.3.7; \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-4.8.1/tox.ini new/importlib_metadata-4.8.2/tox.ini --- old/importlib_metadata-4.8.1/tox.ini 2021-08-29 17:26:24.000000000 +0200 +++ new/importlib_metadata-4.8.2/tox.ini 2021-11-09 02:14:49.000000000 +0100 @@ -14,9 +14,6 @@ HOME usedevelop = True extras = testing -setenv = - # workaround pypa/pip#9143 - PIP_USE_DEPRECATED=legacy-resolver [testenv:docs]