Skip to content

Commit 97b336d

Browse files
authored
chore(ci): fix incorrect importlib_metadata name (#9467)
This is a manual backport to fix the CI. The fix is cherry-picked from #9339. We don't want to backport this entire PR because the tracer flare is not in scope for 2.9 ## Checklist - [x] Change(s) are motivated and described in the PR description - [x] Testing strategy is described if automated tests are not included in the PR - [x] Risks are described (performance impact, potential for breakage, maintainability) - [x] Change is maintainable (easy to change, telemetry, documentation) - [x] [Library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) are followed or label `changelog/no-changelog` is set - [x] Documentation is included (in-code, generated user docs, [public corp docs](https://github.com/DataDog/documentation/)) - [x] Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) - [x] If this PR changes the public interface, I've notified `@DataDog/apm-tees`. ## Reviewer Checklist - [x] Title is accurate - [x] All changes are related to the pull request's stated goal - [x] Description motivates each change - [x] Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - [x] Testing strategy adequately addresses listed risks - [x] Change is maintainable (easy to change, telemetry, documentation) - [x] Release note makes sense to a user of the library - [x] Author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - [x] Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
1 parent 9bbcb62 commit 97b336d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/internal/test_packages.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def test_get_distributions():
5252
importlib_pkgs.add("typing-extensions")
5353
elif pkg.name == "pkgutil_resolve_name" and "pkgutil-resolve-name" in pkg_resources_ws:
5454
importlib_pkgs.add("pkgutil-resolve-name")
55+
elif pkg.name == "importlib_metadata" and "importlib-metadata" in pkg_resources_ws:
56+
importlib_pkgs.add("importlib-metadata")
5557
else:
5658
importlib_pkgs.add(pkg.name)
5759

0 commit comments

Comments
 (0)