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 2026-01-13 21:23:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-importlib-metadata (Old)
and /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-importlib-metadata"
Tue Jan 13 21:23:07 2026 rev:30 rq:1326778 version:8.7.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-importlib-metadata/python-importlib-metadata.changes
2025-08-01 22:40:06.708260342 +0200
+++
/work/SRC/openSUSE:Factory/.python-importlib-metadata.new.1928/python-importlib-metadata.changes
2026-01-13 21:23:37.752862594 +0100
@@ -1,0 +2,7 @@
+Mon Jan 12 11:06:18 UTC 2026 - John Paul Adrian Glaubitz
<[email protected]>
+
+- Update to 8.7.1
+ * Fixed errors in FastPath under fork-multiprocessing. (#520)
+ * Removed cruft from Python 3.8. (#524)
+
+-------------------------------------------------------------------
Old:
----
importlib_metadata-8.7.0.tar.gz
New:
----
importlib_metadata-8.7.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-importlib-metadata.spec ++++++
--- /var/tmp/diff_new_pack.kbvwdm/_old 2026-01-13 21:23:38.900909977 +0100
+++ /var/tmp/diff_new_pack.kbvwdm/_new 2026-01-13 21:23:38.904910143 +0100
@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-importlib-metadata%{psuffix}
-Version: 8.7.0
+Version: 8.7.1
Release: 0
Summary: Read metadata from Python packages
License: Apache-2.0
++++++ importlib_metadata-8.7.0.tar.gz -> importlib_metadata-8.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/.github/workflows/main.yml
new/importlib_metadata-8.7.1/.github/workflows/main.yml
--- old/importlib_metadata-8.7.0/.github/workflows/main.yml 2025-04-27
17:28:42.000000000 +0200
+++ new/importlib_metadata-8.7.1/.github/workflows/main.yml 2025-12-21
10:59:52.000000000 +0100
@@ -21,7 +21,6 @@
# Suppress noisy pip warnings
PIP_DISABLE_PIP_VERSION_CHECK: 'true'
- PIP_NO_PYTHON_VERSION_WARNING: 'true'
PIP_NO_WARN_SCRIPT_LOCATION: 'true'
# Ensure tests can sense settings about the environment
@@ -64,7 +63,7 @@
sudo apt update
sudo apt install -y libxml2-dev libxslt-dev
- name: Setup Python
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
@@ -86,7 +85,7 @@
with:
fetch-depth: 0
- name: Setup Python
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install tox
@@ -120,7 +119,7 @@
steps:
- uses: actions/checkout@v4
- name: Setup Python
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/.pre-commit-config.yaml
new/importlib_metadata-8.7.1/.pre-commit-config.yaml
--- old/importlib_metadata-8.7.0/.pre-commit-config.yaml 2025-04-27
17:28:42.000000000 +0200
+++ new/importlib_metadata-8.7.1/.pre-commit-config.yaml 2025-12-21
10:59:52.000000000 +0100
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.7.1
+ rev: v0.12.0
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/LICENSE
new/importlib_metadata-8.7.1/LICENSE
--- old/importlib_metadata-8.7.0/LICENSE 2025-04-27 17:28:42.000000000
+0200
+++ new/importlib_metadata-8.7.1/LICENSE 2025-12-21 11:00:13.000000000
+0100
@@ -1,202 +1,73 @@
+Apache License
+Version 2.0, January 2004
+http://www.apache.org/licenses/
- 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.
+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 2025 [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-8.7.0/NEWS.rst
new/importlib_metadata-8.7.1/NEWS.rst
--- old/importlib_metadata-8.7.0/NEWS.rst 2025-04-27 17:28:42.000000000
+0200
+++ new/importlib_metadata-8.7.1/NEWS.rst 2025-12-21 10:59:52.000000000
+0100
@@ -1,3 +1,13 @@
+v8.7.1
+======
+
+Bugfixes
+--------
+
+- Fixed errors in FastPath under fork-multiprocessing. (#520)
+- Removed cruft from Python 3.8. (#524)
+
+
v8.7.0
======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/PKG-INFO
new/importlib_metadata-8.7.1/PKG-INFO
--- old/importlib_metadata-8.7.0/PKG-INFO 2025-04-27 17:28:57.567983200
+0200
+++ new/importlib_metadata-8.7.1/PKG-INFO 2025-12-21 11:00:13.847653000
+0100
@@ -1,22 +1,20 @@
Metadata-Version: 2.4
Name: importlib_metadata
-Version: 8.7.0
+Version: 8.7.1
Summary: Read metadata from Python packages
Author-email: "Jason R. Coombs" <[email protected]>
+License-Expression: Apache-2.0
Project-URL: Source, https://github.com/python/importlib_metadata
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: zipp>=3.20
-Requires-Dist: typing-extensions>=3.6.4; python_version < "3.8"
Provides-Extra: test
Requires-Dist: pytest!=8.1.*,>=6; extra == "test"
-Requires-Dist: importlib_resources>=1.3; python_version < "3.9" and extra ==
"test"
Requires-Dist: packaging; extra == "test"
Requires-Dist: pyfakefs; extra == "test"
Requires-Dist: flufl.flake8; extra == "test"
@@ -37,9 +35,10 @@
Provides-Extra: cover
Requires-Dist: pytest-cov; extra == "cover"
Provides-Extra: enabler
-Requires-Dist: pytest-enabler>=2.2; extra == "enabler"
+Requires-Dist: pytest-enabler>=3.4; extra == "enabler"
Provides-Extra: type
-Requires-Dist: pytest-mypy; extra == "type"
+Requires-Dist: pytest-mypy>=1.0.1; extra == "type"
+Requires-Dist: mypy<1.19; platform_python_implementation == "PyPy" and extra
== "type"
Dynamic: license-file
.. image:: https://img.shields.io/pypi/v/importlib_metadata.svg
@@ -51,7 +50,7 @@
:target:
https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tests%22
:alt: tests
-.. image::
https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
+.. image::
https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
:target: https://github.com/astral-sh/ruff
:alt: Ruff
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/README.rst
new/importlib_metadata-8.7.1/README.rst
--- old/importlib_metadata-8.7.0/README.rst 2025-04-27 17:28:42.000000000
+0200
+++ new/importlib_metadata-8.7.1/README.rst 2025-12-21 10:59:52.000000000
+0100
@@ -7,7 +7,7 @@
:target:
https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tests%22
:alt: tests
-.. image::
https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
+.. image::
https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
:target: https://github.com/astral-sh/ruff
:alt: Ruff
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/importlib_metadata-8.7.0/importlib_metadata/__init__.py
new/importlib_metadata-8.7.1/importlib_metadata/__init__.py
--- old/importlib_metadata-8.7.0/importlib_metadata/__init__.py 2025-04-27
17:28:42.000000000 +0200
+++ new/importlib_metadata-8.7.1/importlib_metadata/__init__.py 2025-12-21
10:59:52.000000000 +0100
@@ -35,7 +35,7 @@
NullFinder,
install,
)
-from ._functools import method_cache, pass_none
+from ._functools import method_cache, noop, pass_none, passthrough
from ._itertools import always_iterable, bucket, unique_everseen
from ._meta import PackageMetadata, SimplePath
from ._typing import md_none
@@ -636,7 +636,8 @@
return
paths = (
- py311.relative_fix((subdir / name).resolve())
+ py311
+ .relative_fix((subdir / name).resolve())
.relative_to(self.locate_file('').resolve(), walk_up=True)
.as_posix()
for name in text.splitlines()
@@ -786,6 +787,20 @@
"""
+@passthrough
+def _clear_after_fork(cached):
+ """Ensure ``func`` clears cached state after ``fork`` when supported.
+
+ ``FastPath`` caches zip-backed ``pathlib.Path`` objects that retain a
+ reference to the parent's open ``ZipFile`` handle. Re-using a cached
+ instance in a forked child can therefore resurrect invalid file pointers
+ and trigger ``BadZipFile``/``OSError`` failures
(python/importlib_metadata#520).
+ Registering ``cache_clear`` with ``os.register_at_fork`` keeps each process
+ on its own cache.
+ """
+ getattr(os, 'register_at_fork', noop)(after_in_child=cached.cache_clear)
+
+
class FastPath:
"""
Micro-optimized class for searching a root for children.
@@ -802,7 +817,8 @@
True
"""
- @functools.lru_cache() # type: ignore[misc]
+ @_clear_after_fork # type: ignore[misc]
+ @functools.lru_cache()
def __new__(cls, root):
return super().__new__(cls)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/importlib_metadata-8.7.0/importlib_metadata/_adapters.py
new/importlib_metadata-8.7.1/importlib_metadata/_adapters.py
--- old/importlib_metadata-8.7.0/importlib_metadata/_adapters.py
2025-04-27 17:28:42.000000000 +0200
+++ new/importlib_metadata-8.7.1/importlib_metadata/_adapters.py
2025-12-21 10:59:52.000000000 +0100
@@ -9,7 +9,8 @@
class RawPolicy(email.policy.EmailPolicy):
def fold(self, name, value):
folded = self.linesep.join(
- textwrap.indent(value, prefix=' ' * 8, predicate=lambda line: True)
+ textwrap
+ .indent(value, prefix=' ' * 8, predicate=lambda line: True)
.lstrip()
.splitlines()
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/importlib_metadata-8.7.0/importlib_metadata/_functools.py
new/importlib_metadata-8.7.1/importlib_metadata/_functools.py
--- old/importlib_metadata-8.7.0/importlib_metadata/_functools.py
2025-04-27 17:28:42.000000000 +0200
+++ new/importlib_metadata-8.7.1/importlib_metadata/_functools.py
2025-12-21 10:59:52.000000000 +0100
@@ -1,5 +1,6 @@
import functools
import types
+from typing import Callable, TypeVar
# from jaraco.functools 3.3
@@ -102,3 +103,33 @@
return func(param, *args, **kwargs)
return wrapper
+
+
+# From jaraco.functools 4.4
+def noop(*args, **kwargs):
+ """
+ A no-operation function that does nothing.
+
+ >>> noop(1, 2, three=3)
+ """
+
+
+_T = TypeVar('_T')
+
+
+# From jaraco.functools 4.4
+def passthrough(func: Callable[..., object]) -> Callable[[_T], _T]:
+ """
+ Wrap the function to always return the first parameter.
+
+ >>> passthrough(print)('3')
+ 3
+ '3'
+ """
+
+ @functools.wraps(func)
+ def wrapper(first: _T, *args, **kwargs) -> _T:
+ func(first, *args, **kwargs)
+ return first
+
+ return wrapper # type: ignore[return-value]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/importlib_metadata-8.7.0/importlib_metadata.egg-info/PKG-INFO
new/importlib_metadata-8.7.1/importlib_metadata.egg-info/PKG-INFO
--- old/importlib_metadata-8.7.0/importlib_metadata.egg-info/PKG-INFO
2025-04-27 17:28:57.000000000 +0200
+++ new/importlib_metadata-8.7.1/importlib_metadata.egg-info/PKG-INFO
2025-12-21 11:00:13.000000000 +0100
@@ -1,22 +1,20 @@
Metadata-Version: 2.4
Name: importlib_metadata
-Version: 8.7.0
+Version: 8.7.1
Summary: Read metadata from Python packages
Author-email: "Jason R. Coombs" <[email protected]>
+License-Expression: Apache-2.0
Project-URL: Source, https://github.com/python/importlib_metadata
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: zipp>=3.20
-Requires-Dist: typing-extensions>=3.6.4; python_version < "3.8"
Provides-Extra: test
Requires-Dist: pytest!=8.1.*,>=6; extra == "test"
-Requires-Dist: importlib_resources>=1.3; python_version < "3.9" and extra ==
"test"
Requires-Dist: packaging; extra == "test"
Requires-Dist: pyfakefs; extra == "test"
Requires-Dist: flufl.flake8; extra == "test"
@@ -37,9 +35,10 @@
Provides-Extra: cover
Requires-Dist: pytest-cov; extra == "cover"
Provides-Extra: enabler
-Requires-Dist: pytest-enabler>=2.2; extra == "enabler"
+Requires-Dist: pytest-enabler>=3.4; extra == "enabler"
Provides-Extra: type
-Requires-Dist: pytest-mypy; extra == "type"
+Requires-Dist: pytest-mypy>=1.0.1; extra == "type"
+Requires-Dist: mypy<1.19; platform_python_implementation == "PyPy" and extra
== "type"
Dynamic: license-file
.. image:: https://img.shields.io/pypi/v/importlib_metadata.svg
@@ -51,7 +50,7 @@
:target:
https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tests%22
:alt: tests
-.. image::
https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
+.. image::
https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
:target: https://github.com/astral-sh/ruff
:alt: Ruff
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/importlib_metadata-8.7.0/importlib_metadata.egg-info/requires.txt
new/importlib_metadata-8.7.1/importlib_metadata.egg-info/requires.txt
--- old/importlib_metadata-8.7.0/importlib_metadata.egg-info/requires.txt
2025-04-27 17:28:57.000000000 +0200
+++ new/importlib_metadata-8.7.1/importlib_metadata.egg-info/requires.txt
2025-12-21 11:00:13.000000000 +0100
@@ -1,8 +1,5 @@
zipp>=3.20
-[:python_version < "3.8"]
-typing-extensions>=3.6.4
-
[check]
pytest-checkdocs>=2.4
@@ -21,7 +18,7 @@
jaraco.tidelift>=1.4
[enabler]
-pytest-enabler>=2.2
+pytest-enabler>=3.4
[perf]
ipython
@@ -34,8 +31,8 @@
pytest-perf>=0.9.2
jaraco.test>=5.4
-[test:python_version < "3.9"]
-importlib_resources>=1.3
-
[type]
-pytest-mypy
+pytest-mypy>=1.0.1
+
+[type:platform_python_implementation == "PyPy"]
+mypy<1.19
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/pyproject.toml
new/importlib_metadata-8.7.1/pyproject.toml
--- old/importlib_metadata-8.7.0/pyproject.toml 2025-04-27 17:28:42.000000000
+0200
+++ new/importlib_metadata-8.7.1/pyproject.toml 2025-12-21 10:59:52.000000000
+0100
@@ -1,5 +1,10 @@
[build-system]
-requires = ["setuptools>=61.2", "setuptools_scm[toml]>=3.4.1"]
+requires = [
+ "setuptools>=77",
+ "setuptools_scm[toml]>=3.4.1",
+ # jaraco/skeleton#174
+ "coherent.licensed",
+]
build-backend = "setuptools.build_meta"
[project]
@@ -12,14 +17,13 @@
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
- "License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
requires-python = ">=3.9"
+license = "Apache-2.0"
dependencies = [
"zipp>=3.20",
- 'typing-extensions>=3.6.4; python_version < "3.8"',
]
dynamic = ["version"]
@@ -32,7 +36,6 @@
"pytest >= 6, != 8.1.*",
# local
- 'importlib_resources>=1.3; python_version < "3.9"',
"packaging",
"pyfakefs",
"flufl.flake8",
@@ -65,12 +68,15 @@
]
enabler = [
- "pytest-enabler >= 2.2",
+ "pytest-enabler >= 3.4",
]
type = [
# upstream
- "pytest-mypy",
+ "pytest-mypy >= 1.0.1",
+
+ ## workaround for python/mypy#20454
+ "mypy < 1.19; python_implementation == 'PyPy'",
# local
]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/ruff.toml
new/importlib_metadata-8.7.1/ruff.toml
--- old/importlib_metadata-8.7.0/ruff.toml 2025-04-27 17:28:42.000000000
+0200
+++ new/importlib_metadata-8.7.1/ruff.toml 2025-12-21 10:59:52.000000000
+0100
@@ -1,16 +1,12 @@
-# extend pyproject.toml for requires-python (workaround astral-sh/ruff#10299)
-extend = "pyproject.toml"
-
[lint]
extend-select = [
# upstream
-
+
"C901", # complex-structure
"I", # isort
"PERF401", # manual-list-comprehension
- "W", # pycodestyle Warning
-
- # Ensure modern type annotation syntax and best practices
+
+ # Ensure modern type annotation syntax and best practices
# Not including those covered by type-checkers or exclusive to Python
3.11+
"FA", # flake8-future-annotations
"F404", # late-future-import
@@ -26,7 +22,7 @@
]
ignore = [
# upstream
-
+
# Typeshed rejects complex or non-literal defaults for maintenance and
testing reasons,
# irrelevant to this project.
"PYI011", # typed-argument-default-in-stub
@@ -43,10 +39,8 @@
"Q003",
"COM812",
"COM819",
- "ISC001",
- "ISC002",
- # local
+ # local
]
[format]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/tests/fixtures.py
new/importlib_metadata-8.7.1/tests/fixtures.py
--- old/importlib_metadata-8.7.0/tests/fixtures.py 2025-04-27
17:28:42.000000000 +0200
+++ new/importlib_metadata-8.7.1/tests/fixtures.py 2025-12-21
10:59:52.000000000 +0100
@@ -6,17 +6,13 @@
import shutil
import sys
import textwrap
+from importlib import resources
from . import _path
from ._path import FilesSpec
from .compat.py39 import os_helper
from .compat.py312 import import_helper
-if sys.version_info >= (3, 9):
- from importlib import resources
-else:
- import importlib_resources as resources
-
@contextlib.contextmanager
def tmp_path():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/tests/test_zip.py
new/importlib_metadata-8.7.1/tests/test_zip.py
--- old/importlib_metadata-8.7.0/tests/test_zip.py 2025-04-27
17:28:42.000000000 +0200
+++ new/importlib_metadata-8.7.1/tests/test_zip.py 2025-12-21
10:59:53.000000000 +0100
@@ -1,7 +1,10 @@
+import multiprocessing
+import os
import sys
import unittest
from importlib_metadata import (
+ FastPath,
PackageNotFoundError,
distribution,
distributions,
@@ -47,6 +50,37 @@
dists = list(distributions(path=sys.path[:1]))
assert len(dists) == 1
+ @unittest.skipUnless(
+ hasattr(os, 'register_at_fork')
+ and 'fork' in multiprocessing.get_all_start_methods(),
+ 'requires fork-based multiprocessing support',
+ )
+ def test_fastpath_cache_cleared_in_forked_child(self):
+ zip_path = sys.path[0]
+
+ FastPath(zip_path)
+ assert FastPath.__new__.cache_info().currsize >= 1
+
+ ctx = multiprocessing.get_context('fork')
+ parent_conn, child_conn = ctx.Pipe()
+
+ def child(conn, root):
+ try:
+ before = FastPath.__new__.cache_info().currsize
+ FastPath(root)
+ after = FastPath.__new__.cache_info().currsize
+ conn.send((before, after))
+ finally:
+ conn.close()
+
+ proc = ctx.Process(target=child, args=(child_conn, zip_path))
+ proc.start()
+ child_conn.close()
+ cache_sizes = parent_conn.recv()
+ proc.join()
+
+ self.assertEqual(cache_sizes, (0, 1))
+
class TestEgg(TestZip):
def setUp(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/importlib_metadata-8.7.0/towncrier.toml
new/importlib_metadata-8.7.1/towncrier.toml
--- old/importlib_metadata-8.7.0/towncrier.toml 2025-04-27 17:28:42.000000000
+0200
+++ new/importlib_metadata-8.7.1/towncrier.toml 2025-12-21 10:59:53.000000000
+0100
@@ -1,2 +1,3 @@
[tool.towncrier]
title_format = "{version}"
+directory = "newsfragments" # jaraco/skeleton#184