importlib_metadata
importlib_metadata copied to clipboard
Backport of the importlib.metadata module
If a provider is returning objects from `importlib.metadata` (`Distribution`, `Message`, `PackagePath`), replace them with local versions for predictable types for consumers and type checkers. Closes #486; supersedes #487 - **Add...
I encountered this while trying to help sentry-python [prepare for the changes](https://github.com/getsentry/sentry-python/pull/4039) mentioned in #371. Their linter errored with `"PackageMetadata" has no attribute "get"`, since metadata is advertised to return...
No module 'typing_extensions' on Python 3.7 #352 This PR fixes an issue that causes an ImportError when importing importlib_metadata/_meta.py in Python 3.7. Since Protocol does not exist in typing in...
Recently, when trying to check if a distribution is editable, I noticed doing so using the current API is very un-ergonomic. This information is available via the `direct_url.json` file of...
I have recently ran into the issue where the importable module did not come from the distribution metadata found by `importlib.metadata`. This was because the distribution modules were shadowed in...
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. - `python3 -sBm...
Currently, I'm getting an error on Python 3.8 and 3.9 in https://github.com/pypa/build/pull/820: ```bash docker run --rm -it python:3.9 bash pip install tox git clone https://github.com/pypa/build cd build tox -e py39...
The `flufl.flake8` project is [archived](https://gitlab.com/warsaw/flufl.flake8) and so not maintained anymore. The last release at PyPI was almost 7 years ago. I think the `importlib_metadata` should either switch to some alternative...
This is a follow-up to https://github.com/python/importlib_metadata/issues/402. `packages_distributions` reads `top_level.txt` to determine the names. This file isn't part of any PEP and to my knowledge only implemented by setuptools, as a...
Bug in importlib-metadata 8.7.0 where MetadataPathFinder.find_distributions() uses PathDistribution class before it's defined (line 967 uses it, line 982 defines it). Celery triggered this when loading backend extensions.