From cb763ee94f0958a475083afc3051342e141d6837 Mon Sep 17 00:00:00 2001 From: David Vujic Date: Sat, 18 Apr 2026 14:57:58 +0200 Subject: [PATCH 1/3] fix(poly sync): update pypackage.toml for PEP 621 project format when using a build backend that isn't hatchling or pdm --- components/polylith/sync/update.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/components/polylith/sync/update.py b/components/polylith/sync/update.py index a6e5c375..0f62863f 100644 --- a/components/polylith/sync/update.py +++ b/components/polylith/sync/update.py @@ -46,15 +46,7 @@ def generate_updated_pep_621_project(data: TOMLDocument, bricks_to_add: dict) -> return tomlkit.dumps(copy) -def generate_updated_pdm_project(data: TOMLDocument, packages: List[dict]) -> str: - bricks_to_add: dict = reduce(to_key_value_include, packages, {}) - - return generate_updated_pep_621_project(data, bricks_to_add) - - -def generate_updated_hatch_project(data: TOMLDocument, packages: List[dict]) -> str: - bricks_to_add: dict = reduce(to_key_value_include, packages, {}) - +def generate_updated_hatch_project(data: TOMLDocument, bricks_to_add: dict) -> str: has_polylith = data.get("tool", {}).get("polylith", {}).get("bricks") has_hatch = ( data.get("tool", {}).get("hatch", {}).get("build", {}).get("force-include") @@ -91,11 +83,13 @@ def generate_updated_project( if repo.is_poetry(data): return generate_updated_poetry_project(data, packages) + bricks_to_add: dict = reduce(to_key_value_include, packages, {}) + if repo.is_hatch(data): - return generate_updated_hatch_project(data, packages) + return generate_updated_hatch_project(data, bricks_to_add) - if repo.is_pdm(data): - return generate_updated_pdm_project(data, packages) + if repo.is_pep_621_ready(data): + return generate_updated_pep_621_project(data, bricks_to_add) return None From 6291f8896cfd7f54142074b849a6e5a2b89b97f3 Mon Sep 17 00:00:00 2001 From: David Vujic Date: Sat, 18 Apr 2026 14:59:17 +0200 Subject: [PATCH 2/3] bump Poetry plugin to 1.51.1 --- projects/poetry_polylith_plugin/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/poetry_polylith_plugin/pyproject.toml b/projects/poetry_polylith_plugin/pyproject.toml index 15b55300..ebdd4ad6 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.51.0" +version = "1.51.1" description = "A Poetry plugin that adds tooling support for the Polylith Architecture" authors = ["David Vujic"] homepage = "https://davidvujic.github.io/python-polylith-docs/" From b602062273fe2870878c619af2d79e9b20bb585b Mon Sep 17 00:00:00 2001 From: David Vujic Date: Sat, 18 Apr 2026 14:59:38 +0200 Subject: [PATCH 3/3] bump CLI to 1.45.1 --- projects/polylith_cli/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/polylith_cli/pyproject.toml b/projects/polylith_cli/pyproject.toml index 54a065af..34107eda 100644 --- a/projects/polylith_cli/pyproject.toml +++ b/projects/polylith_cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "polylith-cli" -version = "1.45.0" +version = "1.45.1" description = "Python tooling support for the Polylith Architecture" authors = ['David Vujic'] homepage = "https://davidvujic.github.io/python-polylith-docs/"