Skip to content

Commit

Permalink
Add importlib_resources to direct dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
  • Loading branch information
vinnamkim committed Jan 3, 2024
1 parent a6194de commit 64e961d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ dependencies = [
"jsonargparse==4.27.1",
"psutil", # Mem cache needs system checks
"ftfy",
"regex"
"regex",
"importlib_resources"
]

[project.optional-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions src/otx/cli/utils/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ def patch_mmaction2() -> None:
"""Patch MMAction2==1.2.0 with the custom code.
The patch is at `src/otx/cli/patches/mmaction2.patch`.
The reason why we need is that `__init__.py` is missing in
https://github.com/open-mmlab/mmaction2/tree/v1.2.0/mmaction/models/localizers/drn
"""
dir_patches: Path = files("otx") / "cli" / "patches"
file_mmaction2_patch = dir_patches / "mmaction2.patch"
Expand Down

0 comments on commit 64e961d

Please sign in to comment.