Skip to content

Commit d9c2ba0

Browse files
committed
Removes dependency on importlib metadata and resources.
fixes #56
1 parent e0bd3f0 commit d9c2ba0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

matlab_proxy/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def make_static_route_table(app):
512512
Returns:
513513
Dict: Containing information about the static files and header information.
514514
"""
515-
import importlib_resources as resources
515+
import importlib.resources as resources
516516

517517
from matlab_proxy import gui
518518
from matlab_proxy.gui import static

matlab_proxy/util/mwi/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def __get_configs():
214214
Dict: Contains all the values present in 'matlab_web_desktop_configs' entry_point from all the packages
215215
installed in the current environment.
216216
"""
217-
import importlib_metadata as metadata
217+
import importlib.metadata as metadata
218218

219219
matlab_proxy_eps = metadata.entry_points(group=matlab_proxy.get_entrypoint_name())
220220
configs = {}

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ classifiers = [
3636
dependencies = [
3737
"aiohttp_session[secure]",
3838
"aiohttp>=3.7.4",
39-
"importlib-metadata",
40-
"importlib-resources",
4139
"psutil",
4240
"requests",
4341
"rich",

0 commit comments

Comments
 (0)