From d054fd86b637f0b7367952c5fe310103eb8df8f3 Mon Sep 17 00:00:00 2001 From: ZeroBone Date: Tue, 13 Feb 2024 14:14:54 +0100 Subject: [PATCH] Release 1.2.2 --- docs/dev/changelog.md | 7 +++++++ src/officialeye/_cli/ui.py | 2 +- src/tests/unit/api/test_detect.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/dev/changelog.md b/docs/dev/changelog.md index 1753b0b..c608d02 100644 --- a/docs/dev/changelog.md +++ b/docs/dev/changelog.md @@ -1,5 +1,12 @@ # Changelog +## Release 1.2.2 + +* Improved the way in which the result of the `run` and `test` commands gets outputted, it now also includes the chosen template. +* Significantly improved performance by implementing a better system for graceful IPC-based interrupting of the thread listening for messages from child processes. + +[View on GitHub](https://github.com/ZeroBone/OfficialEye/releases/tag/1.2.2){ .md-button } + ## Release 1.2.1 * Bug fixes & minor improvements. diff --git a/src/officialeye/_cli/ui.py b/src/officialeye/_cli/ui.py index 258a7fe..71784a1 100644 --- a/src/officialeye/_cli/ui.py +++ b/src/officialeye/_cli/ui.py @@ -110,7 +110,7 @@ def _child_listener(listener: _ChildrenListener, /): assert len(connections) >= 1 - wait(connections, timeout=1.0) + wait(connections, timeout=4.0) messages_to_handle: List[Tuple[Any, _Child]] = [] diff --git a/src/tests/unit/api/test_detect.py b/src/tests/unit/api/test_detect.py index 30891e3..04188a1 100644 --- a/src/tests/unit/api/test_detect.py +++ b/src/tests/unit/api/test_detect.py @@ -1,6 +1,6 @@ from difflib import SequenceMatcher -from officialeye import Context, IImage, Image, ISupervisionResult, Template, IInterpretationResult +from officialeye import Context, IImage, IInterpretationResult, Image, ISupervisionResult, Template from officialeye.detection import detect