diff --git a/pyproject.toml b/pyproject.toml index 0f6926a..927fb69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ license = { text = "MIT" } name = "pyflowx" readme = "README.md" requires-python = ">=3.8" -version = "0.3.1" +version = "0.3.2" [project.scripts] autofmt = "pyflowx.cli.autofmt:main" diff --git a/src/pyflowx/__init__.py b/src/pyflowx/__init__.py index f06743b..d67aa70 100644 --- a/src/pyflowx/__init__.py +++ b/src/pyflowx/__init__.py @@ -100,7 +100,7 @@ from .task import ( task_template, ) -__version__ = "0.4.1" +__version__ = "0.4.2" __all__ = [ "IS_LINUX", diff --git a/tests/test_runner.py b/tests/test_runner.py index 6a3af40..8884bf5 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -561,7 +561,12 @@ class TestCliRunnerIntegration: runner = px.CliRunner(aliases={"diamond": graph}) exit_code = runner.run(["diamond"]) assert exit_code == CliExitCode.SUCCESS.value - assert order == ["a", "b", "c", "d"] + # dependency 策略并发调度独立任务,b 与 c 的相对顺序非确定; + # 仅校验拓扑约束:a 最先、d 最后、b/c 介于其间。 + assert set(order) == {"a", "b", "c", "d"} + assert order[0] == "a" + assert order[-1] == "d" + assert set(order[1:3]) == {"b", "c"} def test_mixed_fn_and_cmd_commands(self) -> None: """混合 fn 和 cmd 的命令应都能执行.""" diff --git a/uv.lock b/uv.lock index a345a1a..1bb4a70 100644 --- a/uv.lock +++ b/uv.lock @@ -2736,7 +2736,7 @@ wheels = [ [[package]] name = "pyflowx" -version = "0.3.0" +version = "0.3.1" source = { editable = "." } dependencies = [ { name = "graphlib-backport", marker = "python_full_version < '3.9'" },