--- - branch: MAIN date: Wed Oct 26 10:56:27 UTC 2022 files: - new: '1.12' old: '1.11' path: pkgsrc/devel/py-importlib-resources/Makefile pathrev: pkgsrc/devel/py-importlib-resources/Makefile@1.12 type: modified - new: '1.8' old: '1.7' path: pkgsrc/devel/py-importlib-resources/PLIST pathrev: pkgsrc/devel/py-importlib-resources/PLIST@1.8 type: modified - new: '1.10' old: '1.9' path: pkgsrc/devel/py-importlib-resources/distinfo pathrev: pkgsrc/devel/py-importlib-resources/distinfo@1.10 type: modified id: 20221026T105627Z.cb8f9970304c58c3e989e5ac465fb0ada2f49844 log: | 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 `_ 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. module: pkgsrc subject: 'CVS commit: pkgsrc/devel/py-importlib-resources' unixtime: '1666781787' user: adam