pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-importlib-resources py-importlib-resources: u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd2fa354a3d0
branches:  trunk
changeset: 387303:dd2fa354a3d0
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Oct 26 10:56:27 2022 +0000

description:
py-importlib-resources: updated to 5.10.0

v5.10.0
=======
* Lifted restriction on modules passed to ``files``.
  Now modules need not be a package and if a non-package
  module is passed, resources will be resolved adjacent to
  those modules, even for modules not found in any package.
  For example, ``files(import_module('mod.py'))`` will
  resolve resources found at the root. The parameter to
  files was renamed from 'package' to 'anchor', with a
  compatibility shim for those passing by keyword.

* ``files`` no longer requires the anchor to be
  specified and can infer the anchor from the caller's scope
  (defaults to the caller's module).

v5.9.0
======
* ``as_file`` now also supports a ``Traversable``
  representing a directory and (when needed) renders the
  full tree to a temporary directory.

v5.8.1
======
* In ``MultiplexedPath``, restore expectation that
  a compound path with a non-existent directory does not
  raise an exception.

v5.8.0
======
* Now ``Traversable.joinpath`` provides a concrete
  implementation, replacing the implementation in ``.simple``
  and converging with the behavior in ``MultiplexedPath``.

v5.7.1
======
* In ``simple.ResourceContainer.joinpath``, honor
  names split by ``posixpath.sep``.

v5.7.0
======
* ``abc.Traversable.joinpath`` now allows for multiple
  arguments and specifies that ``posixpath.sep`` is allowed
  in any argument to accept multiple arguments, matching the
  behavior found in ``zipfile.Path`` and ``pathlib.Path``.

  ``simple.ResourceContainer`` now honors this behavior.

v5.6.0
======
* Add type declarations in ABCs.

v5.5.0
======
* Require Python 3.7 or later.
* Fix error when no ``__pycache__`` directories exist
  when testing ``update-zips``.

v5.4.0
======
* Test suite now relies entirely on the traversable
  API.

v5.3.0
======
* Now raise a ``DeprecationWarning`` for all legacy
  functions. Instead, users should rely on the ``files()``
  API introduced in importlib_resources 1.3. See
  `Migrating from Legacy <https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy>`_
  for guidance on avoiding the deprecated functions.

v5.2.3
======
* Updated readme to reflect current behavior and show
  which versions correspond to which behavior in CPython.

v5.0.7
======
* bpo-45419: Correct ``DegenerateFiles.Path`` ``.name``
  and ``.open()`` interfaces to match ``Traversable``.

v5.2.2
======
* Fix refleak in ``as_file`` caught by CPython tests.

v5.2.1
======
* bpo-38291: Avoid DeprecationWarning on ``typing.io``.

v5.2.0
======
* Legacy API (``path``, ``contents``, ...)
  is now supported entirely by the ``.files()`` API with
  a compatibility shim supplied for resource loaders without
  that functionality.

diffstat:

 devel/py-importlib-resources/Makefile |  16 +++----
 devel/py-importlib-resources/PLIST    |  76 ++++++++++++++--------------------
 devel/py-importlib-resources/distinfo |   8 +-
 3 files changed, 43 insertions(+), 57 deletions(-)

diffs (175 lines):

diff -r 2cb4e45407eb -r dd2fa354a3d0 devel/py-importlib-resources/Makefile
--- a/devel/py-importlib-resources/Makefile     Wed Oct 26 10:49:04 2022 +0000
+++ b/devel/py-importlib-resources/Makefile     Wed Oct 26 10:56:27 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2022/07/12 09:18:36 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2022/10/26 10:56:27 adam Exp $
 
-DISTNAME=      importlib_resources-3.0.0
+DISTNAME=      importlib_resources-5.10.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
-PKGREVISION=   2
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=i/importlib_resources/}
 
@@ -13,15 +12,14 @@
 
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 
+USE_LANGUAGES= # none
+
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/pyversion.mk"
-
-.if ${_PYTHON_VERSION} < 38
-DEPENDS+=      ${PYPKGPREFIX}-zipp-[0-9]*:../../archivers/py-zipp
+.if ${_PYTHON_VERSION} < 310
+DEPENDS+=      ${PYPKGPREFIX}-zipp>=3.1.0:../../archivers/py-zipp
 .endif
 
-USE_LANGUAGES= # none
-
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2cb4e45407eb -r dd2fa354a3d0 devel/py-importlib-resources/PLIST
--- a/devel/py-importlib-resources/PLIST        Wed Oct 26 10:49:04 2022 +0000
+++ b/devel/py-importlib-resources/PLIST        Wed Oct 26 10:56:27 2022 +0000
@@ -1,91 +1,79 @@
-@comment $NetBSD: PLIST,v 1.7 2020/10/21 08:40:54 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.8 2022/10/26 10:56:27 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/importlib_resources/__init__.py
 ${PYSITELIB}/importlib_resources/__init__.pyc
-${PYSITELIB}/importlib_resources/__init__.pyo
+${PYSITELIB}/importlib_resources/_adapters.py
+${PYSITELIB}/importlib_resources/_adapters.pyc
 ${PYSITELIB}/importlib_resources/_common.py
 ${PYSITELIB}/importlib_resources/_common.pyc
-${PYSITELIB}/importlib_resources/_common.pyo
 ${PYSITELIB}/importlib_resources/_compat.py
 ${PYSITELIB}/importlib_resources/_compat.pyc
-${PYSITELIB}/importlib_resources/_compat.pyo
-${PYSITELIB}/importlib_resources/_py2.py
-${PYSITELIB}/importlib_resources/_py2.pyc
-${PYSITELIB}/importlib_resources/_py2.pyo
-${PYSITELIB}/importlib_resources/_py3.py
-${PLIST.py3x}${PYSITELIB}/importlib_resources/_py3.pyc
-${PLIST.py3x}${PYSITELIB}/importlib_resources/_py3.pyo
+${PYSITELIB}/importlib_resources/_itertools.py
+${PYSITELIB}/importlib_resources/_itertools.pyc
+${PYSITELIB}/importlib_resources/_legacy.py
+${PYSITELIB}/importlib_resources/_legacy.pyc
 ${PYSITELIB}/importlib_resources/abc.py
 ${PYSITELIB}/importlib_resources/abc.pyc
-${PYSITELIB}/importlib_resources/abc.pyo
 ${PYSITELIB}/importlib_resources/py.typed
 ${PYSITELIB}/importlib_resources/readers.py
 ${PYSITELIB}/importlib_resources/readers.pyc
-${PYSITELIB}/importlib_resources/readers.pyo
+${PYSITELIB}/importlib_resources/simple.py
+${PYSITELIB}/importlib_resources/simple.pyc
 ${PYSITELIB}/importlib_resources/tests/__init__.py
 ${PYSITELIB}/importlib_resources/tests/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/__init__.pyo
+${PYSITELIB}/importlib_resources/tests/_compat.py
+${PYSITELIB}/importlib_resources/tests/_compat.pyc
+${PYSITELIB}/importlib_resources/tests/_path.py
+${PYSITELIB}/importlib_resources/tests/_path.pyc
 ${PYSITELIB}/importlib_resources/tests/data01/__init__.py
 ${PYSITELIB}/importlib_resources/tests/data01/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/data01/__init__.pyo
 ${PYSITELIB}/importlib_resources/tests/data01/binary.file
 ${PYSITELIB}/importlib_resources/tests/data01/subdirectory/__init__.py
 ${PYSITELIB}/importlib_resources/tests/data01/subdirectory/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/data01/subdirectory/__init__.pyo
 ${PYSITELIB}/importlib_resources/tests/data01/subdirectory/binary.file
 ${PYSITELIB}/importlib_resources/tests/data01/utf-16.file
 ${PYSITELIB}/importlib_resources/tests/data01/utf-8.file
 ${PYSITELIB}/importlib_resources/tests/data02/__init__.py
 ${PYSITELIB}/importlib_resources/tests/data02/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/data02/__init__.pyo
 ${PYSITELIB}/importlib_resources/tests/data02/one/__init__.py
 ${PYSITELIB}/importlib_resources/tests/data02/one/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/data02/one/__init__.pyo
 ${PYSITELIB}/importlib_resources/tests/data02/one/resource1.txt
 ${PYSITELIB}/importlib_resources/tests/data02/two/__init__.py
 ${PYSITELIB}/importlib_resources/tests/data02/two/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/data02/two/__init__.pyo
 ${PYSITELIB}/importlib_resources/tests/data02/two/resource2.txt
-${PYSITELIB}/importlib_resources/tests/data03/__init__.py
-${PYSITELIB}/importlib_resources/tests/data03/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/data03/__init__.pyo
-${PYSITELIB}/importlib_resources/tests/data03/namespace/portion1/__init__.py
-${PYSITELIB}/importlib_resources/tests/data03/namespace/portion1/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/data03/namespace/portion1/__init__.pyo
-${PYSITELIB}/importlib_resources/tests/data03/namespace/portion2/__init__.py
-${PYSITELIB}/importlib_resources/tests/data03/namespace/portion2/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/data03/namespace/portion2/__init__.pyo
-${PYSITELIB}/importlib_resources/tests/data03/namespace/resource1.txt
+${PYSITELIB}/importlib_resources/tests/namespacedata01/binary.file
+${PYSITELIB}/importlib_resources/tests/namespacedata01/utf-16.file
+${PYSITELIB}/importlib_resources/tests/namespacedata01/utf-8.file
+${PYSITELIB}/importlib_resources/tests/test_compatibilty_files.py
+${PYSITELIB}/importlib_resources/tests/test_compatibilty_files.pyc
+${PYSITELIB}/importlib_resources/tests/test_contents.py
+${PYSITELIB}/importlib_resources/tests/test_contents.pyc
 ${PYSITELIB}/importlib_resources/tests/test_files.py
 ${PYSITELIB}/importlib_resources/tests/test_files.pyc
-${PYSITELIB}/importlib_resources/tests/test_files.pyo
 ${PYSITELIB}/importlib_resources/tests/test_open.py
 ${PYSITELIB}/importlib_resources/tests/test_open.pyc
-${PYSITELIB}/importlib_resources/tests/test_open.pyo
 ${PYSITELIB}/importlib_resources/tests/test_path.py
 ${PYSITELIB}/importlib_resources/tests/test_path.pyc
-${PYSITELIB}/importlib_resources/tests/test_path.pyo
 ${PYSITELIB}/importlib_resources/tests/test_read.py
 ${PYSITELIB}/importlib_resources/tests/test_read.pyc
-${PYSITELIB}/importlib_resources/tests/test_read.pyo
+${PYSITELIB}/importlib_resources/tests/test_reader.py
+${PYSITELIB}/importlib_resources/tests/test_reader.pyc
 ${PYSITELIB}/importlib_resources/tests/test_resource.py
 ${PYSITELIB}/importlib_resources/tests/test_resource.pyc
-${PYSITELIB}/importlib_resources/tests/test_resource.pyo
+${PYSITELIB}/importlib_resources/tests/update-zips.py
+${PYSITELIB}/importlib_resources/tests/update-zips.pyc
 ${PYSITELIB}/importlib_resources/tests/util.py
 ${PYSITELIB}/importlib_resources/tests/util.pyc
-${PYSITELIB}/importlib_resources/tests/util.pyo
 ${PYSITELIB}/importlib_resources/tests/zipdata01/__init__.py
 ${PYSITELIB}/importlib_resources/tests/zipdata01/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/zipdata01/__init__.pyo
 ${PYSITELIB}/importlib_resources/tests/zipdata01/ziptestdata.zip
 ${PYSITELIB}/importlib_resources/tests/zipdata02/__init__.py
 ${PYSITELIB}/importlib_resources/tests/zipdata02/__init__.pyc
-${PYSITELIB}/importlib_resources/tests/zipdata02/__init__.pyo
 ${PYSITELIB}/importlib_resources/tests/zipdata02/ziptestdata.zip
-${PYSITELIB}/importlib_resources/trees.py
-${PYSITELIB}/importlib_resources/trees.pyc
-${PYSITELIB}/importlib_resources/trees.pyo
diff -r 2cb4e45407eb -r dd2fa354a3d0 devel/py-importlib-resources/distinfo
--- a/devel/py-importlib-resources/distinfo     Wed Oct 26 10:49:04 2022 +0000
+++ b/devel/py-importlib-resources/distinfo     Wed Oct 26 10:56:27 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 10:18:34 nia Exp $
+$NetBSD: distinfo,v 1.10 2022/10/26 10:56:27 adam Exp $
 
-BLAKE2s (importlib_resources-3.0.0.tar.gz) = 1debb744eb4dbf1b3edcab46b34e5501923ebda0a47c35918be8b7ca3c694069
-SHA512 (importlib_resources-3.0.0.tar.gz) = cd29e268cacef3729024af6cae8394ce5aa8c1d8a28397fd8f009c7eaa908ed3775508bde86c26b0d233c25261b8509abb1e16c378c7c8a9bb0906224f3fdd54
-Size (importlib_resources-3.0.0.tar.gz) = 26725 bytes
+BLAKE2s (importlib_resources-5.10.0.tar.gz) = 361ccf83bde61c460cddd9d7fbb09cdc54f5b175e22b405139145fc94ecb9f2f
+SHA512 (importlib_resources-5.10.0.tar.gz) = ab0d39cbc8df4285b06b5d4bb4138426d99c4421373433cc7c1bcb05d0f21ef0ce5ef0e0c659e2f10b9cc075cefc4d267a76f27b773cb80d2faeaf3d9d83b36d
+Size (importlib_resources-5.10.0.tar.gz) = 37906 bytes



Home | Main Index | Thread Index | Old Index