diff --git a/components/polylith/imports/parser.py b/components/polylith/imports/parser.py index e4cea64..cdc9f82 100644 --- a/components/polylith/imports/parser.py +++ b/components/polylith/imports/parser.py @@ -30,7 +30,6 @@ def parse_imports(node: ast.AST) -> List[str]: return [] -@lru_cache(maxsize=None) def parse_module(path: Path) -> ast.AST: with open(path.as_posix(), "r", encoding="utf-8", errors="ignore") as f: tree = ast.parse(f.read(), path.name) @@ -48,6 +47,7 @@ def is_python_file(path: Path) -> bool: return path.is_file() and path.suffix == ".py" +@lru_cache(maxsize=None) def list_imports(path: Path) -> Set[str]: py_modules = [path] if is_python_file(path) else path.rglob("*.py") diff --git a/projects/poetry_polylith_plugin/pyproject.toml b/projects/poetry_polylith_plugin/pyproject.toml index 12b9238..39c159b 100644 --- a/projects/poetry_polylith_plugin/pyproject.toml +++ b/projects/poetry_polylith_plugin/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "poetry-polylith-plugin" -version = "1.38.0" +version = "1.38.1" description = "A Poetry plugin that adds tooling support for the Polylith Architecture" authors = ["David Vujic"] homepage = "https://davidvujic.github.io/python-polylith-docs/" diff --git a/projects/polylith_cli/pyproject.toml b/projects/polylith_cli/pyproject.toml index 71b3fac..aa45ae7 100644 --- a/projects/polylith_cli/pyproject.toml +++ b/projects/polylith_cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "polylith-cli" -version = "1.31.0" +version = "1.31.1" description = "Python tooling support for the Polylith Architecture" authors = ['David Vujic'] homepage = "https://davidvujic.github.io/python-polylith-docs/"