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-02-01 13:26:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-importlib-metadata (Old)
and /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-importlib-metadata"
Mon Feb 1 13:26:37 2021 rev:4 rq:866399 version:3.4.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-importlib-metadata/python-importlib-metadata.changes 2020-12-24 19:41:29.247220919 +0100
+++ /work/SRC/openSUSE:Factory/.python-importlib-metadata.new.28504/python-importlib-metadata.changes 2021-02-01 13:28:27.854127426 +0100
@@ -1,0 +2,11 @@
+Sun Jan 24 18:15:12 UTC 2021 - Dirk M��ller
+
+- update to 3.4.0:
+ * Project now declares itself as being typed.
+ * Additional performance enhancements to distribution
+ discovery.
+ * For PyPA projects, add test ensuring that
+ ``MetadataPathFinder._search_paths`` honors the needed
+ interface. Method is still private.
+
+-------------------------------------------------------------------
Old:
----
importlib_metadata-3.3.0.tar.gz
New:
----
importlib_metadata-3.4.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-importlib-metadata.spec ++++++
--- /var/tmp/diff_new_pack.W5gqzq/_old 2021-02-01 13:28:28.446128347 +0100
+++ /var/tmp/diff_new_pack.W5gqzq/_new 2021-02-01 13:28:28.450128353 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-importlib-metadata
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,7 +27,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-importlib-metadata%{psuffix}
-Version: 3.3.0
+Version: 3.4.0
Release: 0
Summary: Read metadata from Python packages
License: Apache-2.0
++++++ importlib_metadata-3.3.0.tar.gz -> importlib_metadata-3.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/.coveragerc new/importlib_metadata-3.4.0/.coveragerc
--- old/importlib_metadata-3.3.0/.coveragerc 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/.coveragerc 2021-01-10 22:40:46.000000000 +0100
@@ -1,8 +1,8 @@
[run]
omit =
- */.tox/*
- tests/*
- prepare/*
+ */.tox/*
+ tests/*
+ prepare/*
[report]
show_missing = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/.flake8 new/importlib_metadata-3.4.0/.flake8
--- old/importlib_metadata-3.3.0/.flake8 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/.flake8 2021-01-10 22:40:46.000000000 +0100
@@ -1,10 +1,10 @@
[flake8]
max-line-length = 88
-ignore =
- # W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513
- W503
- # W504 has issues https://github.com/OCA/maintainer-quality-tools/issues/545
- W504
+
+# jaraco/skeleton#34
+max-complexity = 10
+
+extend-ignore =
# Black creates whitespace before colon
E203
enable-extensions = U4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/.github/workflows/main.yml new/importlib_metadata-3.4.0/.github/workflows/main.yml
--- old/importlib_metadata-3.3.0/.github/workflows/main.yml 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/.github/workflows/main.yml 2021-01-10 22:40:46.000000000 +0100
@@ -1,4 +1,4 @@
-name: Automated Tests
+name: tests
on: [push, pull_request]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/.pre-commit-config.yaml new/importlib_metadata-3.4.0/.pre-commit-config.yaml
--- old/importlib_metadata-3.3.0/.pre-commit-config.yaml 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/.pre-commit-config.yaml 2021-01-10 22:40:46.000000000 +0100
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/psf/black
- rev: stable
+ rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
- rev: v1.8.0
+ rev: v1.9.1
hooks:
- id: blacken-docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/CHANGES.rst new/importlib_metadata-3.4.0/CHANGES.rst
--- old/importlib_metadata-3.3.0/CHANGES.rst 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/CHANGES.rst 2021-01-10 22:40:46.000000000 +0100
@@ -1,7 +1,17 @@
+v3.4.0
+======
+
+* #10: Project now declares itself as being typed.
+* #272: Additional performance enhancements to distribution
+ discovery.
+* #111: For PyPA projects, add test ensuring that
+ ``MetadataPathFinder._search_paths`` honors the needed
+ interface. Method is still private.
+
v3.3.0
======
-* * #265: ``EntryPoint`` objects now expose a ``.dist`` object
+* #265: ``EntryPoint`` objects now expose a ``.dist`` object
referencing the ``Distribution`` when constructed from a
Distribution.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/PKG-INFO new/importlib_metadata-3.4.0/PKG-INFO
--- old/importlib_metadata-3.3.0/PKG-INFO 2020-12-14 02:25:13.023748200 +0100
+++ new/importlib_metadata-3.4.0/PKG-INFO 2021-01-10 22:41:04.982178000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: importlib_metadata
-Version: 3.3.0
+Version: 3.4.0
Summary: Read metadata from Python packages
Home-page: https://github.com/python/importlib_metadata
Author: Jason R. Coombs
@@ -14,9 +14,9 @@
.. _PyPI link: https://pypi.org/project/importlib_metadata
- .. image:: https://github.com/python/importlib_metadata/workflows/Automated%20Tests/bad...
- :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22Aut...
- :alt: Automated Tests
+ .. image:: https://github.com/python/importlib_metadata/workflows/tests/badge.svg
+ :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tes...
+ :alt: tests
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
@@ -26,8 +26,7 @@
:target: https://importlib-metadata.readthedocs.io/en/latest/?badge=latest
- ``importlib_metadata`` is a library to access the metadata for a
- Python package.
+ Library to access the metadata for a Python package.
As of Python 3.8, this functionality has been added to the
`Python standard library
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/README.rst new/importlib_metadata-3.4.0/README.rst
--- old/importlib_metadata-3.3.0/README.rst 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/README.rst 2021-01-10 22:40:46.000000000 +0100
@@ -6,9 +6,9 @@
.. _PyPI link: https://pypi.org/project/importlib_metadata
-.. image:: https://github.com/python/importlib_metadata/workflows/Automated%20Tests/bad...
- :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22Aut...
- :alt: Automated Tests
+.. image:: https://github.com/python/importlib_metadata/workflows/tests/badge.svg
+ :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tes...
+ :alt: tests
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
@@ -18,8 +18,7 @@
:target: https://importlib-metadata.readthedocs.io/en/latest/?badge=latest
-``importlib_metadata`` is a library to access the metadata for a
-Python package.
+Library to access the metadata for a Python package.
As of Python 3.8, this functionality has been added to the
`Python standard library
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/docs/index.rst new/importlib_metadata-3.4.0/docs/index.rst
--- old/importlib_metadata-3.3.0/docs/index.rst 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/docs/index.rst 2021-01-10 22:40:46.000000000 +0100
@@ -1,5 +1,5 @@
-Welcome to importlib_metadata
-=============================
+Welcome to |project| documentation!
+===================================
``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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/docs/using.rst new/importlib_metadata-3.4.0/docs/using.rst
--- old/importlib_metadata-3.3.0/docs/using.rst 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/docs/using.rst 2021-01-10 22:40:46.000000000 +0100
@@ -253,9 +253,3 @@
.. rubric:: Footnotes
-
-.. [#f1] Technically, the returned distribution metadata object is an
- :class:`email.message.EmailMessage`
- instance, but this is an implementation detail, and not part of the
- stable API. You should only use dictionary-like methods and syntax
- to access the metadata contents.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/importlib_metadata/__init__.py new/importlib_metadata-3.4.0/importlib_metadata/__init__.py
--- old/importlib_metadata-3.3.0/importlib_metadata/__init__.py 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/importlib_metadata/__init__.py 2021-01-10 22:40:46.000000000 +0100
@@ -493,15 +493,22 @@
"""
normalized = None
- suffixes = '.dist-info', '.egg-info'
+ suffixes = 'dist-info', 'egg-info'
exact_matches = [''][:0]
+ egg_prefix = ''
+ versionless_egg_name = ''
def __init__(self, name):
self.name = name
if name is None:
return
self.normalized = self.normalize(name)
- self.exact_matches = [self.normalized + suffix for suffix in self.suffixes]
+ self.exact_matches = [
+ self.normalized + '.' + suffix for suffix in self.suffixes
+ ]
+ legacy_normalized = self.legacy_normalize(self.name)
+ self.egg_prefix = legacy_normalized + '-'
+ self.versionless_egg_name = legacy_normalized + '.egg'
@staticmethod
def normalize(name):
@@ -520,8 +527,9 @@
def matches(self, cand, base):
low = cand.lower()
- pre, ext = os.path.splitext(low)
- name, sep, rest = pre.partition('-')
+ # rpartition is faster than splitext and suitable for this purpose.
+ pre, _, ext = low.rpartition('.')
+ name, _, rest = pre.partition('-')
return (
low in self.exact_matches
or ext in self.suffixes
@@ -532,12 +540,9 @@
)
def is_egg(self, base):
- normalized = self.legacy_normalize(self.name or '')
- prefix = normalized + '-' if normalized else ''
- versionless_egg_name = normalized + '.egg' if self.name else ''
return (
- base == versionless_egg_name
- or base.startswith(prefix)
+ base == self.versionless_egg_name
+ or base.startswith(self.egg_prefix)
and base.endswith('.egg')
)
@@ -565,8 +570,9 @@
@classmethod
def _search_paths(cls, name, paths):
"""Find metadata directories in paths heuristically."""
+ prepared = Prepared(name)
return itertools.chain.from_iterable(
- path.search(Prepared(name)) for path in map(FastPath, paths)
+ path.search(prepared) for path in map(FastPath, paths)
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/importlib_metadata.egg-info/PKG-INFO new/importlib_metadata-3.4.0/importlib_metadata.egg-info/PKG-INFO
--- old/importlib_metadata-3.3.0/importlib_metadata.egg-info/PKG-INFO 2020-12-14 02:25:12.000000000 +0100
+++ new/importlib_metadata-3.4.0/importlib_metadata.egg-info/PKG-INFO 2021-01-10 22:41:04.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: importlib-metadata
-Version: 3.3.0
+Version: 3.4.0
Summary: Read metadata from Python packages
Home-page: https://github.com/python/importlib_metadata
Author: Jason R. Coombs
@@ -14,9 +14,9 @@
.. _PyPI link: https://pypi.org/project/importlib_metadata
- .. image:: https://github.com/python/importlib_metadata/workflows/Automated%20Tests/bad...
- :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22Aut...
- :alt: Automated Tests
+ .. image:: https://github.com/python/importlib_metadata/workflows/tests/badge.svg
+ :target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tes...
+ :alt: tests
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
@@ -26,8 +26,7 @@
:target: https://importlib-metadata.readthedocs.io/en/latest/?badge=latest
- ``importlib_metadata`` is a library to access the metadata for a
- Python package.
+ Library to access the metadata for a Python package.
As of Python 3.8, this functionality has been added to the
`Python standard library
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/importlib_metadata.egg-info/SOURCES.txt new/importlib_metadata-3.4.0/importlib_metadata.egg-info/SOURCES.txt
--- old/importlib_metadata-3.3.0/importlib_metadata.egg-info/SOURCES.txt 2020-12-14 02:25:12.000000000 +0100
+++ new/importlib_metadata-3.4.0/importlib_metadata.egg-info/SOURCES.txt 2021-01-10 22:41:04.000000000 +0100
@@ -23,6 +23,7 @@
docs/using.rst
importlib_metadata/__init__.py
importlib_metadata/_compat.py
+importlib_metadata/py.typed
importlib_metadata.egg-info/PKG-INFO
importlib_metadata.egg-info/SOURCES.txt
importlib_metadata.egg-info/dependency_links.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/importlib_metadata.egg-info/requires.txt new/importlib_metadata-3.4.0/importlib_metadata.egg-info/requires.txt
--- old/importlib_metadata-3.3.0/importlib_metadata.egg-info/requires.txt 2020-12-14 02:25:12.000000000 +0100
+++ new/importlib_metadata-3.4.0/importlib_metadata.egg-info/requires.txt 2021-01-10 22:41:04.000000000 +0100
@@ -5,7 +5,7 @@
[docs]
sphinx
-jaraco.packaging>=3.2
+jaraco.packaging>=8.2
rst.linker>=1.9
[testing]
@@ -13,7 +13,7 @@
pytest-checkdocs>=1.2.3
pytest-flake8
pytest-cov
-jaraco.test>=3.2.0
+pytest-enabler
packaging
pep517
pyfakefs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/pyproject.toml new/importlib_metadata-3.4.0/pyproject.toml
--- old/importlib_metadata-3.3.0/pyproject.toml 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/pyproject.toml 2021-01-10 22:40:46.000000000 +0100
@@ -7,16 +7,14 @@
[tool.setuptools_scm]
-# jaraco/skeleton#22
-[tool.jaraco.pytest.plugins.black]
+[pytest.enabler.black]
addopts = "--black"
-# jaraco/skeleton#22
-[tool.jaraco.pytest.plugins.mypy]
+[pytest.enabler.mypy]
addopts = "--mypy"
-[tool.jaraco.pytest.plugins.flake8]
+[pytest.enabler.flake8]
addopts = "--flake8"
-[tool.jaraco.pytest.plugins.cov]
+[pytest.enabler.cov]
addopts = "--cov"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/setup.cfg new/importlib_metadata-3.4.0/setup.cfg
--- old/importlib_metadata-3.3.0/setup.cfg 2020-12-14 02:25:13.023748200 +0100
+++ new/importlib_metadata-3.4.0/setup.cfg 2021-01-10 22:41:04.982178000 +0100
@@ -1,5 +1,6 @@
[metadata]
-license_file = LICENSE
+license_files =
+ LICENSE
name = importlib_metadata
author = Jason R. Coombs
author_email = jaraco@jaraco.com
@@ -35,7 +36,7 @@
pytest-black >= 0.3.7; python_implementation != "PyPy"
pytest-cov
pytest-mypy; python_implementation != "PyPy"
- jaraco.test >= 3.2.0
+ pytest-enabler
importlib_resources>=1.3; python_version < "3.9"
packaging
@@ -44,7 +45,7 @@
flufl.flake8
docs =
sphinx
- jaraco.packaging >= 3.2
+ jaraco.packaging >= 8.2
rst.linker >= 1.9
[options.entry_points]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/skeleton.md new/importlib_metadata-3.4.0/skeleton.md
--- old/importlib_metadata-3.3.0/skeleton.md 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/skeleton.md 2021-01-10 22:40:46.000000000 +0100
@@ -138,6 +138,8 @@
- test against multiple Python versions
- run on late (and updated) platform versions
- automated releases of tagged commits
+- [automatic merging of PRs](https://github.com/marketplace/actions/merge-pull-requests) (requires [protecting branches with required status checks](https://docs.github.com/en/free-pro-team@latest/github/administering-a-repos...), [not possible through API](https://github.community/t/set-all-status-checks-to-be-required-as-branch-pr...))
+
### Continuous Deployments
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/tests/test_integration.py new/importlib_metadata-3.4.0/tests/test_integration.py
--- old/importlib_metadata-3.3.0/tests/test_integration.py 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/tests/test_integration.py 2021-01-10 22:40:46.000000000 +0100
@@ -5,6 +5,7 @@
from . import fixtures
from importlib_metadata import (
Distribution,
+ MetadataPathFinder,
_compat,
version,
)
@@ -47,3 +48,14 @@
dist = Distribution._local()
assert dist.metadata['Name'] == 'local-pkg'
assert dist.version == '2.0.1'
+
+
+class DistSearch(unittest.TestCase):
+ def test_search_dist_dirs(self):
+ """
+ Pip needs the _search_paths interface to locate
+ distribution metadata dirs. Protect it for PyPA
+ use-cases (only). Ref python/importlib_metadata#111.
+ """
+ res = MetadataPathFinder._search_paths('any-name', [])
+ assert list(res) == []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/importlib_metadata-3.3.0/tox.ini new/importlib_metadata-3.4.0/tox.ini
--- old/importlib_metadata-3.3.0/tox.ini 2020-12-14 02:24:53.000000000 +0100
+++ new/importlib_metadata-3.4.0/tox.ini 2021-01-10 22:40:46.000000000 +0100
@@ -12,6 +12,10 @@
pytest {posargs}
usedevelop = True
extras = testing
+setenv =
+ # workaround pypa/pip#9143
+ PIP_USE_DEPRECATED=legacy-resolver
+
[testenv:docs]
extras =
@@ -32,14 +36,14 @@
[testenv:perf]
use_develop = False
deps =
- ipython
+ ipython
commands =
- python -m timeit -s 'import importlib_metadata' -- 'importlib_metadata.distribution("ipython")'
+ python -m timeit -s 'import importlib_metadata' -- 'importlib_metadata.distribution("ipython")'
[testenv:release]
skip_install = True
deps =
- pep517>=0.5
+ build
twine[keyring]>=1.13
path
jaraco.develop>=7.1
@@ -50,6 +54,6 @@
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -c "import path; path.Path('dist').rmtree_p()"
- python -m pep517.build .
+ python -m build
python -m twine upload dist/*
python -m jaraco.develop.create-github-release