From 66633e107ca06a460877125f24148ebdc90feb41 Mon Sep 17 00:00:00 2001 From: David Vujic Date: Thu, 17 Nov 2022 07:06:36 +0100 Subject: [PATCH] fix: unpack sets with python 3.8-syntax (#35) * fix: unpack set with Python 3.8-compatible syntax * bump poetry plugin to 1.0.6 --- components/polylith/diff/report.py | 3 ++- projects/poetry_polylith_plugin/pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/polylith/diff/report.py b/components/polylith/diff/report.py index bd16ab93..098e97e0 100644 --- a/components/polylith/diff/report.py +++ b/components/polylith/diff/report.py @@ -90,8 +90,9 @@ def print_short_diff( a = _changed_projects(projects_data, "components", components) b = _changed_projects(projects_data, "bases", bases) + c = set(projects) - res = a | b | set(projects) + res = {*a, *b, *c} console = Console(theme=info_theme) console.print(",".join(res)) diff --git a/projects/poetry_polylith_plugin/pyproject.toml b/projects/poetry_polylith_plugin/pyproject.toml index 9f321529..1807ffb2 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.0.5" +version = "1.0.6" description = "A Poetry plugin that adds tooling support for the Polylith Architecture" authors = ["David Vujic"] homepage = "https://github.com/davidvujic/python-polylith"