File: remove-external_importlib_metadata.patch

package info (click to toggle)
jupyter-cache 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 840 kB
  • sloc: python: 2,601; makefile: 40; sh: 9
file content (23 lines) | stat: -rw-r--r-- 812 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
--- a/jupyter_cache/entry_points.py
+++ b/jupyter_cache/entry_points.py
@@ -6,8 +6,8 @@
 # also, from importlib_metadata changed its API in v4.0, to use the python 3.10 API
 # however, because of https://github.com/python/importlib_metadata/issues/308
 # we do not assume that we have this API, and instead use try/except for the new/old APIs
-from importlib_metadata import EntryPoint
-from importlib_metadata import entry_points as eps
+from importlib.metadata import EntryPoint
+from importlib.metadata import entry_points as eps
 
 ENTRY_POINT_GROUP_READER = "jcache.readers"
 ENTRY_POINT_GROUP_EXEC = "jcache.executors"
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,7 +27,6 @@
 dependencies = [
     "attrs",
     "click",
-    "importlib-metadata",
     "nbclient>=0.2",
     "nbformat",
     "pyyaml",