Skip to content

Commit 586c6c2

Browse files
authored
fix(poly sync): for Poetry with PEP-621 support (#439)
* fix(poly sync): Poetry, but with PEP-621 ready pyproject.toml * bump Poetry plugin to 1.51.2 * bump CLI to 1.45.2
1 parent 8f77e2e commit 586c6c2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/polylith/sync/update.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ def generate_updated_poetry_project(data: TOMLDocument, packages: List[dict]) ->
8080
def generate_updated_project(
8181
data: TOMLDocument, packages: List[dict]
8282
) -> Union[str, None]:
83-
if repo.is_poetry(data):
84-
return generate_updated_poetry_project(data, packages)
85-
8683
bricks_to_add: dict = reduce(to_key_value_include, packages, {})
8784

8885
if repo.is_hatch(data):
@@ -91,6 +88,9 @@ def generate_updated_project(
9188
if repo.is_pep_621_ready(data):
9289
return generate_updated_pep_621_project(data, bricks_to_add)
9390

91+
if repo.is_poetry(data):
92+
return generate_updated_poetry_project(data, packages)
93+
9494
return None
9595

9696

projects/poetry_polylith_plugin/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "poetry-polylith-plugin"
3-
version = "1.51.1"
3+
version = "1.51.2"
44
description = "A Poetry plugin that adds tooling support for the Polylith Architecture"
55
authors = ["David Vujic"]
66
homepage = "https://davidvujic.github.io/python-polylith-docs/"

projects/polylith_cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "polylith-cli"
3-
version = "1.45.1"
3+
version = "1.45.2"
44
description = "Python tooling support for the Polylith Architecture"
55
authors = ['David Vujic']
66
homepage = "https://davidvujic.github.io/python-polylith-docs/"

0 commit comments

Comments
 (0)