File: importlib_metadata.patch

package info (click to toggle)
python-opentelemetry 1.39.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,968 kB
  • sloc: python: 53,083; sh: 398; makefile: 142; sql: 39
file content (35 lines) | stat: -rw-r--r-- 1,034 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- a/opentelemetry-api/src/opentelemetry/util/_importlib_metadata.py
+++ b/opentelemetry-api/src/opentelemetry/util/_importlib_metadata.py
@@ -14,10 +14,7 @@
 
 from functools import cache
 
-# FIXME: Use importlib.metadata (not importlib_metadata)
-# when support for 3.11 is dropped if the rest of
-# the supported versions at that time have the same API.
-from importlib_metadata import (  # type: ignore
+from importlib.metadata import (  # type: ignore
     Distribution,
     EntryPoint,
     EntryPoints,
@@ -26,7 +23,7 @@
     requires,
     version,
 )
-from importlib_metadata import (
+from importlib.metadata import (
     entry_points as original_entry_points,
 )
 
--- a/opentelemetry-api/pyproject.toml
+++ b/opentelemetry-api/pyproject.toml
@@ -26,9 +26,6 @@
 ]
 dependencies = [
     "typing-extensions >= 4.5.0",
-    # FIXME This should be able to be removed after 3.12 is released if there is a reliable API
-    # in importlib.metadata.
-    "importlib-metadata >= 6.0, < 8.8.0",
 ]
 dynamic = [
     "version",