File: stdlib-importlib-resources-metadata.patch

package info (click to toggle)
python-weblogo 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,764 kB
  • sloc: xml: 14,455; python: 11,164; sh: 140; makefile: 67
file content (89 lines) | stat: -rw-r--r-- 2,447 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
From: Colin Watson <cjwatson@debian.org>
Date: Fri, 23 Jan 2026 11:28:36 +0000
Subject: Use importlib.{resources,metadata} from the standard library

Last-Update: 2025-01-23
---
 pyproject.toml            | 2 --
 tests/__init__.py         | 2 +-
 weblogo/__init__.py       | 2 +-
 weblogo/_cgi.py           | 2 +-
 weblogo/_cli.py           | 2 +-
 weblogo/logo_formatter.py | 2 +-
 6 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index d56603c..01b38b6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -23,8 +23,6 @@ requires-python = ">=3.10"
 dependencies = [
     "numpy",
     "scipy",
-    "importlib-resources",
-    "importlib-metadata"
 ]
 
 [project.urls]
diff --git a/tests/__init__.py b/tests/__init__.py
index 807d6a4..33a4a41 100755
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,7 +1,7 @@
 from io import StringIO
 from typing import TextIO
 
-import importlib_resources
+import importlib.resources as importlib_resources
 
 
 def data_string(name: str) -> bytes:
diff --git a/weblogo/__init__.py b/weblogo/__init__.py
index 95f774d..6ee17d7 100644
--- a/weblogo/__init__.py
+++ b/weblogo/__init__.py
@@ -1,4 +1,4 @@
-import importlib_metadata
+import importlib.metadata as importlib_metadata
 
 
 
diff --git a/weblogo/_cgi.py b/weblogo/_cgi.py
index 75a37e6..50e9297 100755
--- a/weblogo/_cgi.py
+++ b/weblogo/_cgi.py
@@ -41,7 +41,7 @@ from io import BytesIO, StringIO, TextIOWrapper
 from string import Template
 from typing import Any, Callable, List, Optional, Union
 
-import importlib_resources
+import importlib.resources as importlib_resources
 
 import weblogo
 from weblogo._ext import cgi as cgilib
diff --git a/weblogo/_cli.py b/weblogo/_cli.py
index bd54eb3..5a672ec 100755
--- a/weblogo/_cli.py
+++ b/weblogo/_cli.py
@@ -50,7 +50,7 @@ from optparse import OptionGroup
 from os import PathLike
 from typing import Any, Union
 
-import importlib_resources
+import importlib.resources as importlib_resources
 
 from . import (
     LogoData,
diff --git a/weblogo/logo_formatter.py b/weblogo/logo_formatter.py
index 46f2295..8c4d46e 100644
--- a/weblogo/logo_formatter.py
+++ b/weblogo/logo_formatter.py
@@ -12,7 +12,7 @@ from string import Template
 from subprocess import PIPE, Popen
 from typing import Optional
 
-import importlib_resources
+import importlib.resources as importlib_resources
 
 from .color import Color
 from .logo import LogoData, LogoFormat