diff --git a/konoha/__init__.py b/konoha/__init__.py index 77c3322..f5b7830 100644 --- a/konoha/__init__.py +++ b/konoha/__init__.py @@ -1,5 +1,5 @@ """__init__.py.""" -from importlib_metadata import version +from importlib.metadata import version from konoha.sentence_tokenizer import SentenceTokenizer # NOQA from konoha.word_tokenizer import WordTokenizer # NOQA diff --git a/poetry.lock b/poetry.lock index 89925b3..4423787 100644 --- a/poetry.lock +++ b/poetry.lock @@ -687,13 +687,13 @@ files = [ [[package]] name = "importlib-metadata" -version = "6.11.0" +version = "7.0.1" description = "Read metadata from Python packages" -optional = false +optional = true python-versions = ">=3.8" files = [ - {file = "importlib_metadata-6.11.0-py3-none-any.whl", hash = "sha256:f0afba6205ad8f8947c7d338b5342d5db2afbfd82f9cbef7879a9539cc12eb9b"}, - {file = "importlib_metadata-6.11.0.tar.gz", hash = "sha256:1231cf92d825c9e03cfc4da076a16de6422c863558229ea0b22b675657463443"}, + {file = "importlib_metadata-7.0.1-py3-none-any.whl", hash = "sha256:4805911c3a4ec7c3966410053e9ec6a1fecd629117df5adee56dfc9432a1081e"}, + {file = "importlib_metadata-7.0.1.tar.gz", hash = "sha256:f238736bb06590ae52ac1fab06a3a9ef1d8dce2b7a35b5ab329371d6c8f5d2cc"}, ] [package.dependencies] @@ -2151,7 +2151,7 @@ files = [ name = "zipp" version = "3.17.0" description = "Backport of pathlib-compatible object wrapper for zip files" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "zipp-3.17.0-py3-none-any.whl", hash = "sha256:0e923e726174922dce09c53c59ad483ff7bbb8e572e00c7f7c46b88556409f31"}, @@ -2177,4 +2177,4 @@ sudachi = ["sudachidict-core", "sudachipy"] [metadata] lock-version = "2.0" python-versions = "^3.8.0" -content-hash = "f960e721f2a3dccf7d0a659e9b3244d4223966f8e56a6cfde0d01e176629ea7f" +content-hash = "964dc56042735293086460a6d565d7cdd84e9602a4b369c62d83a9df855f7f67" diff --git a/pyproject.toml b/pyproject.toml index c61ab5d..706cccb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,6 @@ license = "MIT" [tool.poetry.dependencies] python = "^3.8.0" -importlib-metadata = ">=4.0.0,<7.0.0" janome = {version = "^0.5.0", optional = true} natto-py = {version = "^1.0.0", optional = true} kytea = {version = "^0.1.4", optional = true}