From ad127b5725e508e386d65aa4f21c94f504657415 Mon Sep 17 00:00:00 2001 From: David Vujic Date: Sun, 1 Dec 2024 13:08:33 +0100 Subject: [PATCH] fix(workspace root): check if path exist (#305) * fix(workspace root): check if path exist * bump the hatch hook to 1.2.10 * bump the PDM brick hook to 1.1.1 * bump the PDM workspace hook to 1.1.1 * bump the Poetry plugin to 1.34.1 * bump the CLI to 1.23.1 --- components/polylith/repo/repo.py | 3 +++ projects/hatch_polylith_bricks/pyproject.toml | 2 +- projects/pdm_polylith_bricks/pyproject.toml | 2 +- projects/pdm_polylith_workspace/pyproject.toml | 2 +- projects/poetry_polylith_plugin/pyproject.toml | 2 +- projects/polylith_cli/pyproject.toml | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/components/polylith/repo/repo.py b/components/polylith/repo/repo.py index e43b44e..c7021a0 100644 --- a/components/polylith/repo/repo.py +++ b/components/polylith/repo/repo.py @@ -25,6 +25,9 @@ def load_content(fullpath: Path) -> tomlkit.TOMLDocument: def load_root_project_config(path: Path) -> tomlkit.TOMLDocument: fullpath = path / default_toml + if not fullpath.exists(): + return tomlkit.TOMLDocument() + return load_content(fullpath) diff --git a/projects/hatch_polylith_bricks/pyproject.toml b/projects/hatch_polylith_bricks/pyproject.toml index e66166d..81133d4 100644 --- a/projects/hatch_polylith_bricks/pyproject.toml +++ b/projects/hatch_polylith_bricks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hatch-polylith-bricks" -version = "1.2.9" +version = "1.2.10" description = "Hatch build hook plugin for Polylith" authors = ['David Vujic'] homepage = "https://davidvujic.github.io/python-polylith-docs/" diff --git a/projects/pdm_polylith_bricks/pyproject.toml b/projects/pdm_polylith_bricks/pyproject.toml index be910e7..6456f88 100644 --- a/projects/pdm_polylith_bricks/pyproject.toml +++ b/projects/pdm_polylith_bricks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pdm-polylith-bricks" -version = "1.1.0" +version = "1.1.1" description = "a PDM build hook for Polylith" authors = ["David Vujic"] homepage = "https://davidvujic.github.io/python-polylith-docs/" diff --git a/projects/pdm_polylith_workspace/pyproject.toml b/projects/pdm_polylith_workspace/pyproject.toml index 588f76e..5a0bbbc 100644 --- a/projects/pdm_polylith_workspace/pyproject.toml +++ b/projects/pdm_polylith_workspace/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pdm-polylith-workspace" -version = "1.1.0" +version = "1.1.1" description = "a PDM build hook for a Polylith workspace" homepage = "https://davidvujic.github.io/python-polylith-docs/" repository = "https://github.com/davidvujic/python-polylith" diff --git a/projects/poetry_polylith_plugin/pyproject.toml b/projects/poetry_polylith_plugin/pyproject.toml index 0cccda4..5b6a925 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.34.0" +version = "1.34.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 d89ba24..5c4bd94 100644 --- a/projects/polylith_cli/pyproject.toml +++ b/projects/polylith_cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "polylith-cli" -version = "1.23.0" +version = "1.23.1" description = "Python tooling support for the Polylith Architecture" authors = ['David Vujic'] homepage = "https://davidvujic.github.io/python-polylith-docs/"