importlib_resources
importlib_resources copied to clipboard
Backport of the importlib.resources module
> Should this module be private or should importing from `importlib_resources.functional` be allowed? Your call :) Fixes: #305
Should this module be private or should importing from `importlib_resources.functional` be allowed? _Originally posted by @layday in https://github.com/python/importlib_resources/pull/303#discussion_r1534636317_
Fix the "backslashreplace" tests for the functional API to be endian-agnostic. The tests used to rely on `.encode("utf-16")` producing the same data as found in the test file. However, on...
When running the tests on big-endian architectures (sparc64, ppc64), we're getting the followin test failures: ```pytb $ tox -e py312 .pkg-cpython312: recreate env because dependencies removed: setuptools>=56 .pkg-cpython312: remove tox...
When calling `importlib_resources.files("sample-namespace")` to retrieve a text file, an exception is thrown if an editable install has been done for the package. I am able to trigger this with a...
Fixes #309
I have run into the issue where I need to get the base paths of `MultiplexedPath`. Right now, my only option would be to check if the module I am...
8c274e5e6663eb0eafecb54c47f951337a9859ed tried to fix these tests on big-endian machines. However, they're still broken according to https://ci.debian.net/packages/i/importlib-resources/testing/s390x/51580020/ (that's importlib-resources 6.4.4, but it doesn't look like 6.4.5 changes anything here). Here's output...
In attempting to update pytest-enabler to rely on importlib_resources.abc.Traversable, it's failing with: ``` ___________________________________________________________ pytest_enabler/__init__.py ____________________________________________________________ 63: error: Call to untyped function "open" of "Traversable" in typed context [no-untyped-call] ```