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 2022-12-07 17:34:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-importlib-metadata (Old) and /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-importlib-metadata" Wed Dec 7 17:34:38 2022 rev:14 rq:1040692 version:5.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-importlib-metadata/python-importlib-metadata.changes 2022-11-04 17:31:32.571725158 +0100 +++ /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.1835/python-importlib-metadata.changes 2022-12-07 17:35:52.192836409 +0100 @@ -1,0 +2,6 @@ +Tue Dec 6 03:43:08 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to versino 5.1.0 + #415: Instrument SimplePath with generic support. + +------------------------------------------------------------------- Old: ---- importlib_metadata-5.0.0.tar.gz New: ---- importlib_metadata-5.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-importlib-metadata.spec ++++++ --- /var/tmp/diff_new_pack.Ewo62u/_old 2022-12-07 17:35:53.596844096 +0100 +++ /var/tmp/diff_new_pack.Ewo62u/_new 2022-12-07 17:35:53.600844118 +0100 @@ -27,7 +27,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-importlib-metadata%{psuffix} -Version: 5.0.0 +Version: 5.1.0 Release: 0 Summary: Read metadata from Python packages License: Apache-2.0 ++++++ importlib_metadata-5.0.0.tar.gz -> importlib_metadata-5.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/.github/workflows/main.yml new/importlib_metadata-5.1.0/.github/workflows/main.yml --- old/importlib_metadata-5.0.0/.github/workflows/main.yml 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/.github/workflows/main.yml 2022-11-24 15:38:23.000000000 +0100 @@ -2,14 +2,44 @@ on: [push, pull_request] +env: + # Environment variables to support color support (jaraco/skeleton#66): + # Request colored output from CLI tools supporting it. Different tools + # interpret the value differently. For some, just being set is sufficient. + # For others, it must be a non-zero integer. For yet others, being set + # to a non-empty value is sufficient. + FORCE_COLOR: -106 + # MyPy's color enforcement (must be a non-zero number) + MYPY_FORCE_COLOR: -42 + # Recognized by the `py` package, dependency of `pytest` (must be "1") + PY_COLORS: 1 + # Make tox-wrapped tools see color requests + TOX_TESTENV_PASSENV: >- + FORCE_COLOR + MYPY_FORCE_COLOR + NO_COLOR + PY_COLORS + PYTEST_THEME + PYTEST_THEME_MODE + + # Suppress noisy pip warnings + PIP_DISABLE_PIP_VERSION_CHECK: 'true' + PIP_NO_PYTHON_VERSION_WARNING: 'true' + PIP_NO_WARN_SCRIPT_LOCATION: 'true' + + # Disable the spinner, noise in GHA; TODO(webknjaz): Fix this upstream + # Must be "1". + TOX_PARALLEL_NO_SPINNER: 1 + + jobs: test: strategy: matrix: python: - "3.7" - - "3.10" - "3.11" + - "3.12" # Workaround for actions/setup-python#508 dev: - -dev @@ -18,6 +48,12 @@ - macos-latest - windows-latest include: + - python: "3.8" + platform: ubuntu-latest + - python: "3.9" + platform: ubuntu-latest + - python: "3.10" + platform: ubuntu-latest - python: pypy3.9 platform: ubuntu-latest - platform: ubuntu-latest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/.readthedocs.yaml new/importlib_metadata-5.1.0/.readthedocs.yaml --- old/importlib_metadata-5.0.0/.readthedocs.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/importlib_metadata-5.1.0/.readthedocs.yaml 2022-11-24 15:38:23.000000000 +0100 @@ -0,0 +1,13 @@ +version: 2 +python: + install: + - path: . + extra_requirements: + - docs + +# workaround for readthedocs/readthedocs.org#9623 +build: + # workaround for readthedocs/readthedocs.org#9635 + os: ubuntu-22.04 + tools: + python: "3" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/.readthedocs.yml new/importlib_metadata-5.1.0/.readthedocs.yml --- old/importlib_metadata-5.0.0/.readthedocs.yml 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/.readthedocs.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -version: 2 -python: - install: - - path: . - extra_requirements: - - docs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/CHANGES.rst new/importlib_metadata-5.1.0/CHANGES.rst --- old/importlib_metadata-5.0.0/CHANGES.rst 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/CHANGES.rst 2022-11-24 15:38:23.000000000 +0100 @@ -1,3 +1,8 @@ +v5.1.0 +====== + +* #415: Instrument ``SimplePath`` with generic support. + v5.0.0 ====== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/PKG-INFO new/importlib_metadata-5.1.0/PKG-INFO --- old/importlib_metadata-5.0.0/PKG-INFO 2022-10-02 02:42:01.984400500 +0200 +++ new/importlib_metadata-5.1.0/PKG-INFO 2022-11-24 15:38:50.014063800 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: importlib_metadata -Version: 5.0.0 +Version: 5.1.0 Summary: Read metadata from Python packages Home-page: https://github.com/python/importlib_metadata Author: Jason R. Coombs @@ -17,12 +17,9 @@ License-File: LICENSE .. image:: https://img.shields.io/pypi/v/importlib_metadata.svg - :target: `PyPI link`_ + :target: https://pypi.org/project/importlib_metadata .. image:: https://img.shields.io/pypi/pyversions/importlib_metadata.svg - :target: `PyPI link`_ - -.. _PyPI link: https://pypi.org/project/importlib_metadata .. image:: https://github.com/python/importlib_metadata/workflows/tests/badge.svg :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tests%22 @@ -60,9 +57,11 @@ * - importlib_metadata - stdlib - * - 4.8 + * - 5.0 + - 3.12 + * - 4.13 - 3.11 - * - 4.4 + * - 4.6 - 3.10 * - 1.4 - 3.8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/README.rst new/importlib_metadata-5.1.0/README.rst --- old/importlib_metadata-5.0.0/README.rst 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/README.rst 2022-11-24 15:38:23.000000000 +0100 @@ -1,10 +1,7 @@ .. image:: https://img.shields.io/pypi/v/importlib_metadata.svg - :target: `PyPI link`_ + :target: https://pypi.org/project/importlib_metadata .. image:: https://img.shields.io/pypi/pyversions/importlib_metadata.svg - :target: `PyPI link`_ - -.. _PyPI link: https://pypi.org/project/importlib_metadata .. image:: https://github.com/python/importlib_metadata/workflows/tests/badge.svg :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tests%22 @@ -42,9 +39,11 @@ * - importlib_metadata - stdlib - * - 4.8 + * - 5.0 + - 3.12 + * - 4.13 - 3.11 - * - 4.4 + * - 4.6 - 3.10 * - 1.4 - 3.8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/docs/using.rst new/importlib_metadata-5.1.0/docs/using.rst --- old/importlib_metadata-5.0.0/docs/using.rst 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/docs/using.rst 2022-11-24 15:38:23.000000000 +0100 @@ -7,7 +7,7 @@ ``importlib_metadata`` is a library that provides access to the metadata of an installed :term:`packaging:Distribution Package`, such as its entry points -or its top-level names (:term:`packaging:Import Package`s, modules, if any). +or its top-level names (:term:`packaging:Import Package`\s, modules, if any). Built in part on Python's import system, this library intends to replace similar functionality in the `entry point API`_ and `metadata API`_ of ``pkg_resources``. Along with @@ -199,7 +199,7 @@ The actual type of the object returned by ``metadata()`` is an implementation detail and should be accessed only through the interface described by the - `PackageMetadata protocol <https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.PackageMetadata>`. + `PackageMetadata protocol <https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.PackageMetadata>`_. .. _version: @@ -289,6 +289,10 @@ >>> packages_distributions() {'importlib_metadata': ['importlib-metadata'], 'yaml': ['PyYAML'], 'jaraco': ['jaraco.classes', 'jaraco.functools'], ...} +Some editable installs, `do not supply top-level names +<https://github.com/pypa/packaging-problems/issues/609>`_, and thus this +function is not reliable with such installs. + .. _distributions: Distributions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/importlib_metadata/__init__.py new/importlib_metadata-5.1.0/importlib_metadata/__init__.py --- old/importlib_metadata-5.0.0/importlib_metadata/__init__.py 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/importlib_metadata/__init__.py 2022-11-24 15:38:23.000000000 +0100 @@ -139,6 +139,7 @@ 1 """ + # Do not remove prior to 2023-05-01 or Python 3.13 _warn = functools.partial( warnings.warn, "EntryPoint tuple interface is deprecated. Access members by name.", @@ -293,8 +294,7 @@ Select entry points from self that match the given parameters (typically group and/or name). """ - candidates = (_py39compat.ep_matches(ep, **params) for ep in self) - return EntryPoints(ep for ep, predicate in candidates if predicate) + return EntryPoints(ep for ep in self if _py39compat.ep_matches(ep, **params)) @property def names(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/importlib_metadata/_meta.py new/importlib_metadata-5.1.0/importlib_metadata/_meta.py --- old/importlib_metadata-5.0.0/importlib_metadata/_meta.py 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/importlib_metadata/_meta.py 2022-11-24 15:38:23.000000000 +0100 @@ -30,18 +30,19 @@ """ -class SimplePath(Protocol): +class SimplePath(Protocol[_T]): """ A minimal subset of pathlib.Path required by PathDistribution. """ - def joinpath(self) -> 'SimplePath': + def joinpath(self) -> _T: ... # pragma: no cover - def __truediv__(self) -> 'SimplePath': + def __truediv__(self, other: Union[str, _T]) -> _T: ... # pragma: no cover - def parent(self) -> 'SimplePath': + @property + def parent(self) -> _T: ... # pragma: no cover def read_text(self) -> str: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/importlib_metadata/_py39compat.py new/importlib_metadata-5.1.0/importlib_metadata/_py39compat.py --- old/importlib_metadata-5.0.0/importlib_metadata/_py39compat.py 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/importlib_metadata/_py39compat.py 2022-11-24 15:38:23.000000000 +0100 @@ -1,7 +1,7 @@ """ Compatibility layer with Python 3.8/3.9 """ -from typing import TYPE_CHECKING, Any, Optional, Tuple +from typing import TYPE_CHECKING, Any, Optional if TYPE_CHECKING: # pragma: no cover # Prevent circular imports on runtime. @@ -22,27 +22,14 @@ return Prepared.normalize(getattr(dist, "name", None) or dist.metadata['Name']) -def ep_matches(ep: EntryPoint, **params) -> Tuple[EntryPoint, bool]: +def ep_matches(ep: EntryPoint, **params) -> bool: """ Workaround for ``EntryPoint`` objects without the ``matches`` method. - For the sake of convenience, a tuple is returned containing not only the - boolean value corresponding to the predicate evalutation, but also a compatible - ``EntryPoint`` object that can be safely used at a later stage. - - For example, the following sequences of expressions should be compatible: - - # Sequence 1: using the compatibility layer - candidates = (_py39compat.ep_matches(ep, **params) for ep in entry_points) - [ep for ep, predicate in candidates if predicate] - - # Sequence 2: using Python 3.9+ - [ep for ep in entry_points if ep.matches(**params)] """ try: - return ep, ep.matches(**params) + return ep.matches(**params) except AttributeError: from . import EntryPoint # -> delay to prevent circular imports. # Reconstruct the EntryPoint object to make sure it is compatible. - _ep = EntryPoint(ep.name, ep.value, ep.group) - return _ep, _ep.matches(**params) + return EntryPoint(ep.name, ep.value, ep.group).matches(**params) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/importlib_metadata.egg-info/PKG-INFO new/importlib_metadata-5.1.0/importlib_metadata.egg-info/PKG-INFO --- old/importlib_metadata-5.0.0/importlib_metadata.egg-info/PKG-INFO 2022-10-02 02:42:01.000000000 +0200 +++ new/importlib_metadata-5.1.0/importlib_metadata.egg-info/PKG-INFO 2022-11-24 15:38:49.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: importlib-metadata -Version: 5.0.0 +Version: 5.1.0 Summary: Read metadata from Python packages Home-page: https://github.com/python/importlib_metadata Author: Jason R. Coombs @@ -17,12 +17,9 @@ License-File: LICENSE .. image:: https://img.shields.io/pypi/v/importlib_metadata.svg - :target: `PyPI link`_ + :target: https://pypi.org/project/importlib_metadata .. image:: https://img.shields.io/pypi/pyversions/importlib_metadata.svg - :target: `PyPI link`_ - -.. _PyPI link: https://pypi.org/project/importlib_metadata .. image:: https://github.com/python/importlib_metadata/workflows/tests/badge.svg :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tests%22 @@ -60,9 +57,11 @@ * - importlib_metadata - stdlib - * - 4.8 + * - 5.0 + - 3.12 + * - 4.13 - 3.11 - * - 4.4 + * - 4.6 - 3.10 * - 1.4 - 3.8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/importlib_metadata.egg-info/SOURCES.txt new/importlib_metadata-5.1.0/importlib_metadata.egg-info/SOURCES.txt --- old/importlib_metadata-5.0.0/importlib_metadata.egg-info/SOURCES.txt 2022-10-02 02:42:01.000000000 +0200 +++ new/importlib_metadata-5.1.0/importlib_metadata.egg-info/SOURCES.txt 2022-11-24 15:38:50.000000000 +0100 @@ -3,7 +3,7 @@ .flake8 .gitignore .pre-commit-config.yaml -.readthedocs.yml +.readthedocs.yaml CHANGES.rst LICENSE README.rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/importlib_metadata.egg-info/requires.txt new/importlib_metadata-5.1.0/importlib_metadata.egg-info/requires.txt --- old/importlib_metadata-5.0.0/importlib_metadata.egg-info/requires.txt 2022-10-02 02:42:01.000000000 +0200 +++ new/importlib_metadata-5.1.0/importlib_metadata.egg-info/requires.txt 2022-11-24 15:38:49.000000000 +0100 @@ -16,7 +16,6 @@ [testing] pytest>=6 pytest-checkdocs>=2.4 -pytest-flake8 flake8<5 pytest-cov pytest-enabler>=1.3 @@ -29,5 +28,8 @@ pytest-black>=0.3.7 pytest-mypy>=0.9.1 +[testing:python_version < "3.12"] +pytest-flake8 + [testing:python_version < "3.9"] importlib_resources>=1.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/mypy.ini new/importlib_metadata-5.1.0/mypy.ini --- old/importlib_metadata-5.0.0/mypy.ini 2022-10-02 02:41:29.000000000 +0200 +++ new/importlib_metadata-5.1.0/mypy.ini 2022-11-24 15:38:23.000000000 +0100 @@ -1,2 +1,5 @@ [mypy] ignore_missing_imports = True +# required to support namespace packages +# https://github.com/python/mypy/issues/14057 +explicit_package_bases = True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-5.0.0/setup.cfg new/importlib_metadata-5.1.0/setup.cfg --- old/importlib_metadata-5.0.0/setup.cfg 2022-10-02 02:42:01.984400500 +0200 +++ new/importlib_metadata-5.1.0/setup.cfg 2022-11-24 15:38:50.014063800 +0100 @@ -32,7 +32,8 @@ testing = pytest >= 6 pytest-checkdocs >= 2.4 - pytest-flake8 + pytest-flake8; \ + python_version < "3.12" flake8 < 5 pytest-black >= 0.3.7; \ python_implementation != "PyPy"