diff --git a/pyproject.toml b/pyproject.toml index 2b9bd451..68bd26fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ dependencies = [ "lxml", "psutil", "requests", + "importlib_resources" ] [project.optional-dependencies] diff --git a/wikitextprocessor/core.py b/wikitextprocessor/core.py index 043fbc3a..bd463f2d 100644 --- a/wikitextprocessor/core.py +++ b/wikitextprocessor/core.py @@ -16,7 +16,7 @@ from collections.abc import Sequence from dataclasses import dataclass from functools import lru_cache -from importlib.resources import files +from importlib_resources import files from pathlib import Path from types import TracebackType from typing import ( diff --git a/wikitextprocessor/luaexec.py b/wikitextprocessor/luaexec.py index 3f34bdfd..8634fa45 100644 --- a/wikitextprocessor/luaexec.py +++ b/wikitextprocessor/luaexec.py @@ -11,7 +11,7 @@ import re import traceback import unicodedata -from importlib.resources import files +from importlib_resources import files from typing import ( TYPE_CHECKING, Any,