From 968015729b4721666ead22ccd129f8ed17572c8a Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Fri, 25 Jul 2025 16:39:07 +0200 Subject: [PATCH 1/3] Don't exit early to detect missing files. --- CHANGELOG.md | 5 +++++ src/_pytask/execute.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28802ec1..6d6d0b9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ chronological order. Releases follow [semantic versioning](https://semver.org/) releases are available on [PyPI](https://pypi.org/project/pytask) and [Anaconda.org](https://anaconda.org/conda-forge/pytask). +## 0.5.5 - 2025-07-25 + +- {pull}`692` documents how to use pytask with workspaces. +- {pull}`694` fixes {issue}`693` so that missing dependencies are detected in some cases. Thanks to {user}`timmens` for the report! + ## 0.5.4 - 2025-06-08 - {pull}`676` ensures compatibility with click >8.2.0. diff --git a/src/_pytask/execute.py b/src/_pytask/execute.py index 1cc9f167..d52b6fa0 100644 --- a/src/_pytask/execute.py +++ b/src/_pytask/execute.py @@ -162,7 +162,6 @@ def pytask_execute_task_setup(session: Session, task: PTask) -> None: # noqa: C has_changed = has_node_changed(task=task, node=node, state=node_state) if has_changed: needs_to_be_executed = True - break if not needs_to_be_executed: collect_provisional_products(session, task) From f4fc6b314b5ca29d67c5e941829963a26411a363 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Fri, 25 Jul 2025 16:51:58 +0200 Subject: [PATCH 2/3] Fix. --- tests/test_execute.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_execute.py b/tests/test_execute.py index a6af4df4..e4172517 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -637,6 +637,9 @@ def task2() -> None: pass assert result.exit_code == ExitCode.OK +@pytest.mark.xfail( + sys.platform == "linux" and sys.version_info == (3, 9), reason="flakey" +) def test_pytask_on_a_module_that_uses_the_functional_api(tmp_path): source = """ from pytask import task, ExitCode, build From 198b75ad9a6c109471f472d4b5a859e576566595 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Fri, 25 Jul 2025 16:59:12 +0200 Subject: [PATCH 3/3] Fix. --- tests/test_execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_execute.py b/tests/test_execute.py index e4172517..e1be71a8 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -638,7 +638,7 @@ def task2() -> None: pass @pytest.mark.xfail( - sys.platform == "linux" and sys.version_info == (3, 9), reason="flakey" + sys.platform == "linux" and sys.version_info[:2] == (3, 9), reason="flakey" ) def test_pytask_on_a_module_that_uses_the_functional_api(tmp_path): source = """