Skip to content

Commit 4c83b98

Browse files
committed
chore(deps): remove unused importlib-resources and junit-xml dependencies
importlib.resources is part of the standard library since Python 3.7
1 parent 836fd0e commit 4c83b98

4 files changed

Lines changed: 3 additions & 57 deletions

File tree

onekey_client/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import functools
22
import gc
33
import secrets
4+
from importlib import resources
45
from pathlib import Path
56
from typing import Optional, List, Dict
67

78
from httpx import URL
89

9-
try:
10-
from importlib import resources
11-
except ImportError:
12-
import importlib_resources as resources
13-
1410
import httpx
1511
from pydantic import parse_obj_as
1612
from authlib.oidc.core import IDToken

onekey_client/queries/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import functools
2+
from importlib import resources
3+
24
from .. import queries
35

4-
try:
5-
from importlib import resources
6-
except ImportError:
7-
import importlib_resources as resources
86

97

108
@functools.lru_cache()

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ dependencies = [
1919
"httpx==0.28.1",
2020
"pydantic==2.12.5",
2121
"Authlib>=1.4.1,<2.0.0",
22-
"importlib-resources>=6.0.0,<7",
2322
"click>=8.1.3,<9",
24-
"junit-xml>=1.9,<2",
2523
]
2624

2725
[project.urls]

uv.lock

Lines changed: 0 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)