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-08-03 21:16:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-importlib-metadata (Old)
 and      /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-importlib-metadata"

Wed Aug  3 21:16:20 2022 rev:12 rq:992111 version:4.12.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-importlib-metadata/python-importlib-metadata.changes
      2022-06-10 15:57:12.104796395 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-importlib-metadata.new.1533/python-importlib-metadata.changes
    2022-08-03 21:16:25.439398921 +0200
@@ -1,0 +2,8 @@
+Mon Jul 25 21:15:25 UTC 2022 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 4.12.0: 
+  * py-93259: Now raise ``ValueError`` when ``None`` or an empty
+    string are passed to ``Distribution.from_name`` (and other
+    callers).
+
+-------------------------------------------------------------------

Old:
----
  importlib_metadata-4.11.4.tar.gz

New:
----
  importlib_metadata-4.12.0.tar.gz

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

Other differences:
------------------
++++++ python-importlib-metadata.spec ++++++
--- /var/tmp/diff_new_pack.kYfEOD/_old  2022-08-03 21:16:26.003400401 +0200
+++ /var/tmp/diff_new_pack.kYfEOD/_new  2022-08-03 21:16:26.007400411 +0200
@@ -27,7 +27,7 @@
 %{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-importlib-metadata%{psuffix}
-Version:        4.11.4
+Version:        4.12.0
 Release:        0
 Summary:        Read metadata from Python packages
 License:        Apache-2.0

++++++ importlib_metadata-4.11.4.tar.gz -> importlib_metadata-4.12.0.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/.coveragerc 
new/importlib_metadata-4.12.0/.coveragerc
--- old/importlib_metadata-4.11.4/.coveragerc   2022-05-21 18:39:40.000000000 
+0200
+++ new/importlib_metadata-4.12.0/.coveragerc   2022-06-25 19:00:38.000000000 
+0200
@@ -2,10 +2,12 @@
 omit =
        # leading `*/` for pytest-dev/pytest-cov#456
        */.tox/*
+       */pep517-build-env-*
        tests/*
        prepare/*
        */_itertools.py
        exercises.py
+       */pip-run-*
 
 [report]
 show_missing = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/.editorconfig 
new/importlib_metadata-4.12.0/.editorconfig
--- old/importlib_metadata-4.11.4/.editorconfig 2022-05-21 18:39:40.000000000 
+0200
+++ new/importlib_metadata-4.12.0/.editorconfig 2022-06-25 19:00:38.000000000 
+0200
@@ -14,3 +14,6 @@
 [*.{yml,yaml}]
 indent_style = space
 indent_size = 2
+
+[*.rst]
+indent_style = space
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/.github/workflows/main.yml 
new/importlib_metadata-4.12.0/.github/workflows/main.yml
--- old/importlib_metadata-4.11.4/.github/workflows/main.yml    2022-05-21 
18:39:40.000000000 +0200
+++ new/importlib_metadata-4.12.0/.github/workflows/main.yml    2022-06-25 
19:00:38.000000000 +0200
@@ -7,23 +7,24 @@
     strategy:
       matrix:
         python:
-        - 3.7
-        - 3.9
-        - "3.10"
+        # Build on pre-releases until stable, then stable releases.
+        # actions/setup-python#213
+        - ~3.7.0-0
+        - ~3.10.0-0
+        - ~3.11.0-0
         platform:
         - ubuntu-latest
         - macos-latest
         - windows-latest
     runs-on: ${{ matrix.platform }}
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         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
+        uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python }}
       - name: Install tox
@@ -32,6 +33,20 @@
       - name: Run tests
         run: tox
 
+  check:  # This job does nothing and is only used for the branch protection
+    if: always()
+
+    needs:
+    - test
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Decide whether the needed jobs succeeded or failed
+      uses: re-actors/alls-green@release/v1
+      with:
+        jobs: ${{ toJSON(needs) }}
+  
   diffcov:
     runs-on: ubuntu-latest
     steps:
@@ -51,14 +66,15 @@
           TOXENV: diffcov
 
   release:
-    needs: test
+    needs:
+    - check
     if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
       - name: Setup Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: "3.10"
       - name: Install tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/CHANGES.rst 
new/importlib_metadata-4.12.0/CHANGES.rst
--- old/importlib_metadata-4.11.4/CHANGES.rst   2022-05-21 18:39:40.000000000 
+0200
+++ new/importlib_metadata-4.12.0/CHANGES.rst   2022-06-25 19:00:38.000000000 
+0200
@@ -1,9 +1,16 @@
+v4.12.0
+=======
+
+* py-93259: Now raise ``ValueError`` when ``None`` or an empty
+  string are passed to ``Distribution.from_name`` (and other
+  callers).
+
 v4.11.4
 =======
 
 * #379: In ``PathDistribution._name_from_stem``, avoid including
   parts of the extension in the result.
-# #381: In ``PathDistribution._normalized_name``, ensure names
+* #381: In ``PathDistribution._normalized_name``, ensure names
   loaded from the stem of the filename are also normalized, ensuring
   duplicate entry points by packages varying only by non-normalized
   name are hidden.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/LICENSE 
new/importlib_metadata-4.12.0/LICENSE
--- old/importlib_metadata-4.11.4/LICENSE       2022-05-21 18:39:40.000000000 
+0200
+++ new/importlib_metadata-4.12.0/LICENSE       2022-06-25 19:00:38.000000000 
+0200
@@ -1,13 +1,202 @@
-Copyright 2017-2019 Jason R. Coombs, Barry Warsaw
 
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/PKG-INFO 
new/importlib_metadata-4.12.0/PKG-INFO
--- old/importlib_metadata-4.11.4/PKG-INFO      2022-05-21 18:40:06.088998800 
+0200
+++ new/importlib_metadata-4.12.0/PKG-INFO      2022-06-25 19:01:08.317818000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: importlib_metadata
-Version: 4.11.4
+Version: 4.12.0
 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.11.4/docs/conf.py 
new/importlib_metadata-4.12.0/docs/conf.py
--- old/importlib_metadata-4.11.4/docs/conf.py  2022-05-21 18:39:40.000000000 
+0200
+++ new/importlib_metadata-4.12.0/docs/conf.py  2022-06-25 19:00:38.000000000 
+0200
@@ -18,7 +18,11 @@
             ),
             dict(
                 pattern=r'PEP[- ](?P<pep_number>\d+)',
-                url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',
+                url='https://peps.python.org/pep-{pep_number:0>4}/',
+            ),
+            dict(
+                pattern=r'(Python #|py-)(?P<python>\d+)',
+                url='https://github.com/python/cpython/issues/{python}',
             ),
         ],
     )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/docs/index.rst 
new/importlib_metadata-4.12.0/docs/index.rst
--- old/importlib_metadata-4.11.4/docs/index.rst        2022-05-21 
18:39:40.000000000 +0200
+++ new/importlib_metadata-4.12.0/docs/index.rst        2022-06-25 
19:00:38.000000000 +0200
@@ -9,8 +9,7 @@
 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>`,
+``importlib_metadata`` supplies a backport of :mod:`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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/docs/using.rst 
new/importlib_metadata-4.12.0/docs/using.rst
--- old/importlib_metadata-4.11.4/docs/using.rst        2022-05-21 
18:39:40.000000000 +0200
+++ new/importlib_metadata-4.12.0/docs/using.rst        2022-06-25 
19:00:38.000000000 +0200
@@ -8,8 +8,9 @@
 package metadata.  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
-:mod:`importlib.resources` (with new features backported to the
-`importlib_resources`_ package), this can eliminate the need to use the older
+:mod:`importlib.resources` (with new features backported to
+:doc:`importlib_resources <importlib_resources:index>`),
+this package can eliminate the need to use the older
 and less efficient
 ``pkg_resources`` package.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/importlib_metadata-4.11.4/importlib_metadata/__init__.py 
new/importlib_metadata-4.12.0/importlib_metadata/__init__.py
--- old/importlib_metadata-4.11.4/importlib_metadata/__init__.py        
2022-05-21 18:39:40.000000000 +0200
+++ new/importlib_metadata-4.12.0/importlib_metadata/__init__.py        
2022-06-25 19:00:38.000000000 +0200
@@ -548,7 +548,7 @@
         """
 
     @classmethod
-    def from_name(cls, name):
+    def from_name(cls, name: str):
         """Return the Distribution for the given package name.
 
         :param name: The name of the distribution package to search for.
@@ -556,13 +556,13 @@
             package, if found.
         :raises PackageNotFoundError: When the named package's distribution
             metadata cannot be found.
+        :raises ValueError: When an invalid value is supplied for name.
         """
-        for resolver in cls._discover_resolvers():
-            dists = resolver(DistributionFinder.Context(name=name))
-            dist = next(iter(dists), None)
-            if dist is not None:
-                return dist
-        else:
+        if not name:
+            raise ValueError("A distribution name is required.")
+        try:
+            return next(cls.discover(name=name))
+        except StopIteration:
             raise PackageNotFoundError(name)
 
     @classmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/importlib_metadata-4.11.4/importlib_metadata/_compat.py 
new/importlib_metadata-4.12.0/importlib_metadata/_compat.py
--- old/importlib_metadata-4.11.4/importlib_metadata/_compat.py 2022-05-21 
18:39:40.000000000 +0200
+++ new/importlib_metadata-4.12.0/importlib_metadata/_compat.py 2022-06-25 
19:00:38.000000000 +0200
@@ -8,6 +8,7 @@
 try:
     from typing import Protocol
 except ImportError:  # pragma: no cover
+    # Python 3.7 compatibility
     from typing_extensions import Protocol  # type: ignore
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/importlib_metadata-4.11.4/importlib_metadata.egg-info/PKG-INFO 
new/importlib_metadata-4.12.0/importlib_metadata.egg-info/PKG-INFO
--- old/importlib_metadata-4.11.4/importlib_metadata.egg-info/PKG-INFO  
2022-05-21 18:40:05.000000000 +0200
+++ new/importlib_metadata-4.12.0/importlib_metadata.egg-info/PKG-INFO  
2022-06-25 19:01:07.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: importlib-metadata
-Version: 4.11.4
+Version: 4.12.0
 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.11.4/importlib_metadata.egg-info/requires.txt 
new/importlib_metadata-4.12.0/importlib_metadata.egg-info/requires.txt
--- old/importlib_metadata-4.11.4/importlib_metadata.egg-info/requires.txt      
2022-05-21 18:40:05.000000000 +0200
+++ new/importlib_metadata-4.12.0/importlib_metadata.egg-info/requires.txt      
2022-06-25 19:01:08.000000000 +0200
@@ -16,7 +16,7 @@
 pytest-checkdocs>=2.4
 pytest-flake8
 pytest-cov
-pytest-enabler>=1.0.1
+pytest-enabler>=1.3
 packaging
 pyfakefs
 flufl.flake8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/pyproject.toml 
new/importlib_metadata-4.12.0/pyproject.toml
--- old/importlib_metadata-4.11.4/pyproject.toml        2022-05-21 
18:39:40.000000000 +0200
+++ new/importlib_metadata-4.12.0/pyproject.toml        2022-06-25 
19:00:38.000000000 +0200
@@ -7,14 +7,14 @@
 
 [tool.setuptools_scm]
 
-[pytest.enabler.black]
+[tool.pytest-enabler.black]
 addopts = "--black"
 
-[pytest.enabler.mypy]
+[tool.pytest-enabler.mypy]
 addopts = "--mypy"
 
-[pytest.enabler.flake8]
+[tool.pytest-enabler.flake8]
 addopts = "--flake8"
 
-[pytest.enabler.cov]
+[tool.pytest-enabler.cov]
 addopts = "--cov"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/setup.cfg 
new/importlib_metadata-4.12.0/setup.cfg
--- old/importlib_metadata-4.11.4/setup.cfg     2022-05-21 18:40:06.088998800 
+0200
+++ new/importlib_metadata-4.12.0/setup.cfg     2022-06-25 19:01:08.317818000 
+0200
@@ -38,7 +38,7 @@
        pytest-cov
        pytest-mypy >= 0.9.1; \
        python_implementation != "PyPy"
-       pytest-enabler >= 1.0.1
+       pytest-enabler >= 1.3
        
        importlib_resources>=1.3; python_version < "3.9"
        packaging
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/tests/fixtures.py 
new/importlib_metadata-4.12.0/tests/fixtures.py
--- old/importlib_metadata-4.11.4/tests/fixtures.py     2022-05-21 
18:39:40.000000000 +0200
+++ new/importlib_metadata-4.12.0/tests/fixtures.py     2022-06-25 
19:00:38.000000000 +0200
@@ -5,6 +5,7 @@
 import pathlib
 import tempfile
 import textwrap
+import functools
 import contextlib
 
 from .py39compat import FS_NONASCII
@@ -294,3 +295,18 @@
         # Add self.zip_name to the front of sys.path.
         self.resources = contextlib.ExitStack()
         self.addCleanup(self.resources.close)
+
+
+def parameterize(*args_set):
+    """Run test method with a series of parameters."""
+
+    def wrapper(func):
+        @functools.wraps(func)
+        def _inner(self):
+            for args in args_set:
+                with self.subTest(**args):
+                    func(self, **args)
+
+        return _inner
+
+    return wrapper
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/importlib_metadata-4.11.4/tests/test_main.py 
new/importlib_metadata-4.12.0/tests/test_main.py
--- old/importlib_metadata-4.11.4/tests/test_main.py    2022-05-21 
18:39:40.000000000 +0200
+++ new/importlib_metadata-4.12.0/tests/test_main.py    2022-06-25 
19:00:38.000000000 +0200
@@ -50,6 +50,14 @@
         self.assertIsInstance(Distribution, type)
         self.assertIsInstance(MetadataPathFinder, type)
 
+    @fixtures.parameterize(
+        dict(name=None),
+        dict(name=''),
+    )
+    def test_invalid_inputs_to_from_name(self, name):
+        with self.assertRaises(Exception):
+            Distribution.from_name(name)
+
 
 class ImportTests(fixtures.DistInfoPkg, unittest.TestCase):
     def test_import_nonexistent_module(self):

Reply via email to