Tue Jan 25 09:19:29 2022 UTC ()
py-importlib-metadata: update to 4.10.1.

v4.10.1
=======

* #361: Avoid potential REDoS in ``EntryPoint.pattern``.

v4.10.0
=======

* #354: Removed ``Distribution._local`` factory. This
  functionality was created as a demonstration of the
  possible implementation. Now, the
  `pep517 <https://pypi.org/project/pep517>`_ package
  provides this functionality directly through
  `pep517.meta.load <https://github.com/pypa/pep517/blob/a942316305395f8f757f210e2b16f738af73f8b8/pep517/meta.py#L63-L73>`_.

v4.9.0
======

* Require Python 3.7 or later.

v4.8.3
======

* #357: Fixed requirement generation from egg-info when a
  URL requirement is given.

v4.8.2
======

v2.1.2
======

* #353: Fixed discovery of distributions when path is empty.

v4.8.1
======

* #348: Restored support for ``EntryPoint`` access by item,
  deprecating support in the process. Users are advised
  to use direct member access instead of item-based access::

  - ep[0] -> ep.name
  - ep[1] -> ep.value
  - ep[2] -> ep.group
  - ep[:] -> ep.name, ep.value, ep.group

v4.8.0
======

* #337: Rewrote ``EntryPoint`` as a simple class, still
  immutable and still with the attributes, but without any
  expectation for ``namedtuple`` functionality such as
  ``_asdict``.

v4.7.1
======

* #344: Fixed regression in ``packages_distributions`` when
  neither top-level.txt nor a files manifest is present.

v4.7.0
======

* #330: In ``packages_distributions``, now infer top-level
  names from ``.files()`` when a ``top-level.txt``
  (Setuptools-specific metadata) is not present.

v4.6.4
======

* #334: Correct ``SimplePath`` protocol to match ``pathlib``
  protocol for ``__truediv__``.

v4.6.3
======

* Moved workaround for #327 to ``_compat`` module.

v4.6.2
======

* bpo-44784: Avoid errors in test suite when
  DeprecationWarnings are treated as errors.

v4.6.1
======

* #327: Deprecation warnings now honor call stack variance
  on PyPy.

v4.6.0
======

* #326: Performance tests now rely on
  `pytest-perf <https://pypi.org/project/pytest-perf>`_.
  To disable these tests, which require network access
  and a git checkout, pass ``-p no:perf`` to pytest.

v4.5.0
======

* #319: Remove ``SelectableGroups`` deprecation exception
  for flake8.

v4.4.0
======

* #300: Restore compatibility in the result from
  ``Distribution.entry_points`` (``EntryPoints``) to honor
  expectations in older implementations and issuing
  deprecation warnings for these cases:

  - ``EntryPoints`` objects are once again mutable, allowing
    for ``sort()`` and other list-based mutation operations.
    Avoid deprecation warnings by casting to a
    mutable sequence (e.g.
    ``list(dist.entry_points).sort()``).

  - ``EntryPoints`` results once again allow
    for access by index. To avoid deprecation warnings,
    cast the result to a Sequence first
    (e.g. ``tuple(dist.entry_points)[0]``).

v4.3.1
======

* #320: Fix issue where normalized name for eggs was
  incorrectly solicited, leading to metadata being
  unavailable for eggs.

v4.3.0
======

* #317: De-duplication of distributions no longer requires
  loading the full metadata for ``PathDistribution`` objects,
  entry point loading performance by ~10x.

v4.2.0
======

* Prefer f-strings to ``.format`` calls.

v4.1.0
======

* #312: Add support for metadata 2.2 (``Dynamic`` field).

* #315: Add ``SimplePath`` protocol for interface clarity
  in ``PathDistribution``.

v4.0.1
======

* #306: Clearer guidance about compatibility in readme.

v4.0.0
======

* #304: ``PackageMetadata`` as returned by ``metadata()``
  and ``Distribution.metadata()`` now provides normalized
  metadata honoring PEP 566:

  - If a long description is provided in the payload of the
    RFC 822 value, it can be retrieved as the ``Description``
    field.
  - Any multi-line values in the metadata will be returned as
    such.
  - For any multi-line values, line continuation characters
    are removed. This backward-incompatible change means
    that any projects relying on the RFC 822 line continuation
    characters being present must be tolerant to them having
    been removed.
  - Add a ``json`` property that provides the metadata
    converted to a JSON-compatible form per PEP 566.

v3.10.1
=======

* Minor tweaks from CPython.

v3.10.0
=======

* #295: Internal refactoring to unify section parsing logic.

v3.9.1
======

* #296: Exclude 'prepare' package.
* #297: Fix ValueError when entry points contains comments.

v3.9.0
======

* Use of Mapping (dict) interfaces on ``SelectableGroups``
  is now flagged as deprecated. Instead, users are advised
  to use the select interface for future compatibility.

  Suppress the warning with this filter:
  ``ignore:SelectableGroups dict interface``.

  Or with this invocation in the Python environment:
  ``warnings.filterwarnings('ignore', 'SelectableGroups dict interface')``.

  Preferably, switch to the ``select`` interface introduced
  in 3.7.0. See the
  `entry points documentation <https://importlib-metadata.readthedocs.io/en/latest/using.html#entry-points>`_ and changelog for the 3.6
  release below for more detail.

  For some use-cases, especially those that rely on
  ``importlib.metadata`` in Python 3.8 and 3.9 or
  those relying on older ``importlib_metadata`` (especially
  on Python 3.5 and earlier),
  `backports.entry_points_selectable <https://pypi.org/project/backports.entry_points_selectable>`_
  was created to ease the transition. Please have a look
  at that project if simply relying on importlib_metadata 3.6+
  is not straightforward. Background in #298.

* #283: Entry point parsing no longer relies on ConfigParser
  and instead uses a custom, one-pass parser to load the
  config, resulting in a ~20% performance improvement when
  loading entry points.

v3.8.2
======

* #293: Re-enabled lazy evaluation of path lookup through
  a FreezableDefaultDict.

v3.8.1
======

* #293: Workaround for error in distribution search.

v3.8.0
======

* #290: Add mtime-based caching for ``FastPath`` and its
  lookups, dramatically increasing performance for repeated
  distribution lookups.

v3.7.3
======

* Docs enhancements and cleanup following review in
  `GH-24782 <https://github.com/python/cpython/pull/24782>`_.

v3.7.2
======

* Cleaned up cruft in entry_points docstring.

v3.7.1
======

* Internal refactoring to facilitate ``entry_points() -> dict``
  deprecation.

v3.7.0
======

* #131: Added ``packages_distributions`` to conveniently
  resolve a top-level package or module to its distribution(s).

v3.6.0
======

* #284: Introduces new ``EntryPoints`` object, a tuple of
  ``EntryPoint`` objects but with convenience properties for
  selecting and inspecting the results:

  - ``.select()`` accepts ``group`` or ``name`` keyword
    parameters and returns a new ``EntryPoints`` tuple
    with only those that match the selection.
  - ``.groups`` property presents all of the group names.
  - ``.names`` property presents the names of the entry points.
  - Item access (e.g. ``eps[name]``) retrieves a single
    entry point by name.

  ``entry_points`` now accepts "selection parameters",
  same as ``EntryPoint.select()``.

  ``entry_points()`` now provides a future-compatible
  ``SelectableGroups`` object that supplies the above interface
  (except item access) but remains a dict for compatibility.

  In the future, ``entry_points()`` will return an
  ``EntryPoints`` object for all entry points.

  If passing selection parameters to ``entry_points``, the
  future behavior is invoked and an ``EntryPoints`` is the
  result.

* #284: Construction of entry points using
  ``dict([EntryPoint, ...])`` is now deprecated and raises
  an appropriate DeprecationWarning and will be removed in
  a future version.

* #300: ``Distribution.entry_points`` now presents as an
  ``EntryPoints`` object and access by index is no longer
  allowed. If access by index is required, cast to a sequence
  first.

v3.5.0
======

* #280: ``entry_points`` now only returns entry points for
  unique distributions (by name).

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
  referencing the ``Distribution`` when constructed from a
  Distribution.

v3.2.0
======

* The object returned by ``metadata()`` now has a
  formally-defined protocol called ``PackageMetadata``
  with declared support for the ``.get_all()`` method.
  Fixes #126.

v3.1.1
======

v2.1.1
======

* #261: Restored compatibility for package discovery for
  metadata without version in the name and for legacy
  eggs.

v3.1.0
======

* Merge with 2.1.0.

v2.1.0
======

* #253: When querying for package metadata, the lookup
  now honors
  `package normalization rules <https://packaging.python.org/specifications/recording-installed-packages/>`_.

v3.0.0
======

* Require Python 3.6 or later.


(wiz)
diff -r1.24 -r1.25 pkgsrc/devel/py-importlib-metadata/Makefile
diff -r1.2 -r1.3 pkgsrc/devel/py-importlib-metadata/PLIST
diff -r1.16 -r1.17 pkgsrc/devel/py-importlib-metadata/distinfo

cvs diff -r1.24 -r1.25 pkgsrc/devel/py-importlib-metadata/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-importlib-metadata/Makefile 2022/01/13 19:31:23 1.24
+++ pkgsrc/devel/py-importlib-metadata/Makefile 2022/01/25 09:19:29 1.25
@@ -1,35 +1,33 @@ @@ -1,35 +1,33 @@
1# $NetBSD: Makefile,v 1.24 2022/01/13 19:31:23 wiz Exp $ 1# $NetBSD: Makefile,v 1.25 2022/01/25 09:19:29 wiz Exp $
2 2
3DISTNAME= importlib_metadata-2.0.0 3DISTNAME= importlib_metadata-4.10.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
5PKGREVISION= 1 
6CATEGORIES= devel python 5CATEGORIES= devel python
7MASTER_SITES= ${MASTER_SITE_PYPI:=i/importlib-metadata/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=i/importlib-metadata/}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://importlib-metadata.readthedocs.io/ 9HOMEPAGE= https://importlib-metadata.readthedocs.io/
11COMMENT= Read metadata from Python packages 10COMMENT= Read metadata from Python packages
12LICENSE= apache-2.0 11LICENSE= apache-2.0
13 12
 13#DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
 14DEPENDS+= ${PYPKGPREFIX}-zipp-[0-9]*:../../archivers/py-zipp
 15BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
14TEST_DEPENDS+= ${PYPKGPREFIX}-fakefs-[0-9]*:../../devel/py-fakefs 16TEST_DEPENDS+= ${PYPKGPREFIX}-fakefs-[0-9]*:../../devel/py-fakefs
15TEST_DEPENDS+= ${PYPKGPREFIX}-pep517-[0-9]*:../../devel/py-pep517 17TEST_DEPENDS+= ${PYPKGPREFIX}-pep517-[0-9]*:../../devel/py-pep517
 18
 19PYTHON_VERSIONS_INCOMPATIBLE= 27
 20
16.include "../../lang/python/pyversion.mk" 21.include "../../lang/python/pyversion.mk"
17.if ${_PYTHON_VERSION} == 27 
18DEPENDS+= ${PYPKGPREFIX}-configparser>=3.5:../../devel/py-configparser 
19DEPENDS+= ${PYPKGPREFIX}-contextlib2-[0-9]*:../../devel/py-contextlib2 
20DEPENDS+= ${PYPKGPREFIX}-pathlib2-[0-9]*:../../devel/py-pathlib2 
21.endif 
22.if ${_PYTHON_VERSION} < 39 
23TEST_DEPENDS+= ${PYPKGPREFIX}-importlib-resources>=1.3:../../devel/py-importlib-resources 
24.endif 
25 22
26PYTHON_VERSIONED_DEPENDENCIES+= packaging zipp setuptools_scm:build 23.if ${_PYTHON_VERSION} < 38
 24TEST_DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.6.4:../../devel/py-typing-extensions
 25.endif
27 26
28USE_LANGUAGES= # none 27USE_LANGUAGES= # none
29 28
30post-extract: 29post-extract:
31 ${FIND} ${WRKSRC} -type f -exec ${CHMOD} go-w {} + 30 ${FIND} ${WRKSRC} -type f -exec ${CHMOD} go-w {} +
32 31
33.include "../../lang/python/egg.mk" 32.include "../../lang/python/egg.mk"
34.include "../../lang/python/versioned_dependencies.mk" 
35.include "../../mk/bsd.pkg.mk" 33.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/devel/py-importlib-metadata/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/py-importlib-metadata/PLIST 2019/09/11 09:52:30 1.2
+++ pkgsrc/devel/py-importlib-metadata/PLIST 2022/01/25 09:19:29 1.3
@@ -1,44 +1,31 @@ @@ -1,44 +1,31 @@
1@comment $NetBSD: PLIST,v 1.2 2019/09/11 09:52:30 adam Exp $ 1@comment $NetBSD: PLIST,v 1.3 2022/01/25 09:19:29 wiz Exp $
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
5${PYSITELIB}/${EGG_INFODIR}/requires.txt 5${PYSITELIB}/${EGG_INFODIR}/requires.txt
6${PYSITELIB}/${EGG_INFODIR}/top_level.txt 6${PYSITELIB}/${EGG_INFODIR}/top_level.txt
7${PYSITELIB}/importlib_metadata/__init__.py 7${PYSITELIB}/importlib_metadata/__init__.py
8${PYSITELIB}/importlib_metadata/__init__.pyc 8${PYSITELIB}/importlib_metadata/__init__.pyc
9${PYSITELIB}/importlib_metadata/__init__.pyo 9${PYSITELIB}/importlib_metadata/__init__.pyo
 10${PYSITELIB}/importlib_metadata/_adapters.py
 11${PYSITELIB}/importlib_metadata/_adapters.pyc
 12${PYSITELIB}/importlib_metadata/_adapters.pyo
 13${PYSITELIB}/importlib_metadata/_collections.py
 14${PYSITELIB}/importlib_metadata/_collections.pyc
 15${PYSITELIB}/importlib_metadata/_collections.pyo
10${PYSITELIB}/importlib_metadata/_compat.py 16${PYSITELIB}/importlib_metadata/_compat.py
11${PYSITELIB}/importlib_metadata/_compat.pyc 17${PYSITELIB}/importlib_metadata/_compat.pyc
12${PYSITELIB}/importlib_metadata/_compat.pyo 18${PYSITELIB}/importlib_metadata/_compat.pyo
13${PYSITELIB}/importlib_metadata/docs/__init__.py 19${PYSITELIB}/importlib_metadata/_functools.py
14${PYSITELIB}/importlib_metadata/docs/__init__.pyc 20${PYSITELIB}/importlib_metadata/_functools.pyc
15${PYSITELIB}/importlib_metadata/docs/__init__.pyo 21${PYSITELIB}/importlib_metadata/_functools.pyo
16${PYSITELIB}/importlib_metadata/docs/changelog.rst 22${PYSITELIB}/importlib_metadata/_itertools.py
17${PYSITELIB}/importlib_metadata/docs/conf.py 23${PYSITELIB}/importlib_metadata/_itertools.pyc
18${PYSITELIB}/importlib_metadata/docs/conf.pyc 24${PYSITELIB}/importlib_metadata/_itertools.pyo
19${PYSITELIB}/importlib_metadata/docs/conf.pyo 25${PYSITELIB}/importlib_metadata/_meta.py
20${PYSITELIB}/importlib_metadata/docs/index.rst 26${PYSITELIB}/importlib_metadata/_meta.pyc
21${PYSITELIB}/importlib_metadata/docs/using.rst 27${PYSITELIB}/importlib_metadata/_meta.pyo
22${PYSITELIB}/importlib_metadata/tests/__init__.py 28${PYSITELIB}/importlib_metadata/_text.py
23${PYSITELIB}/importlib_metadata/tests/__init__.pyc 29${PYSITELIB}/importlib_metadata/_text.pyc
24${PYSITELIB}/importlib_metadata/tests/__init__.pyo 30${PYSITELIB}/importlib_metadata/_text.pyo
25${PYSITELIB}/importlib_metadata/tests/data/__init__.py 31${PYSITELIB}/importlib_metadata/py.typed
26${PYSITELIB}/importlib_metadata/tests/data/__init__.pyc 
27${PYSITELIB}/importlib_metadata/tests/data/__init__.pyo 
28${PYSITELIB}/importlib_metadata/tests/data/example-21.12-py3-none-any.whl 
29${PYSITELIB}/importlib_metadata/tests/data/example-21.12-py3.6.egg 
30${PYSITELIB}/importlib_metadata/tests/fixtures.py 
31${PYSITELIB}/importlib_metadata/tests/fixtures.pyc 
32${PYSITELIB}/importlib_metadata/tests/fixtures.pyo 
33${PYSITELIB}/importlib_metadata/tests/test_api.py 
34${PYSITELIB}/importlib_metadata/tests/test_api.pyc 
35${PYSITELIB}/importlib_metadata/tests/test_api.pyo 
36${PYSITELIB}/importlib_metadata/tests/test_integration.py 
37${PYSITELIB}/importlib_metadata/tests/test_integration.pyc 
38${PYSITELIB}/importlib_metadata/tests/test_integration.pyo 
39${PYSITELIB}/importlib_metadata/tests/test_main.py 
40${PYSITELIB}/importlib_metadata/tests/test_main.pyc 
41${PYSITELIB}/importlib_metadata/tests/test_main.pyo 
42${PYSITELIB}/importlib_metadata/tests/test_zip.py 
43${PYSITELIB}/importlib_metadata/tests/test_zip.pyc 
44${PYSITELIB}/importlib_metadata/tests/test_zip.pyo 

cvs diff -r1.16 -r1.17 pkgsrc/devel/py-importlib-metadata/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-importlib-metadata/distinfo 2021/10/26 10:18:33 1.16
+++ pkgsrc/devel/py-importlib-metadata/distinfo 2022/01/25 09:19:29 1.17
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.16 2021/10/26 10:18:33 nia Exp $ 1$NetBSD: distinfo,v 1.17 2022/01/25 09:19:29 wiz Exp $
2 2
3BLAKE2s (importlib_metadata-2.0.0.tar.gz) = bbde33ce188b218f37227e733c60b21231ee23395d780c1c9d676e615bcf000b 3BLAKE2s (importlib_metadata-4.10.1.tar.gz) = 5471da87eea8e6549ec27196343341e6389e16a1d5f3174517903776b91aa27e
4SHA512 (importlib_metadata-2.0.0.tar.gz) = 3f789d717f04f7649dd4a75895669b4f9b875671937035c1c76bd089504afff8c2ba5bfb6a91096ba29eccadc88dca98ea1da5107772fd2053541db15c52b16a 4SHA512 (importlib_metadata-4.10.1.tar.gz) = 96ceb9286145e2933ca3a1724fde4519819c27a1dc0947ef8e0c399a4cc2026875e673ab352f08bb4dd6aa10d78d8c9773a6fb0138e3065961df7e850ff37757
5Size (importlib_metadata-2.0.0.tar.gz) = 29289 bytes 5Size (importlib_metadata-4.10.1.tar.gz) = 42013 bytes