From 5cd92abd018bdb438c517fbafa781ce2df057c70 Mon Sep 17 00:00:00 2001 From: Jason Kai <21226986+kaitj@users.noreply.github.com> Date: Tue, 24 Feb 2026 10:58:05 -0500 Subject: [PATCH] Include PodmanRunner in templates.py Added support for PodmanRunner as a global runner. _More so we don't forget about this, not intended to be merged until published._ --- src/styx/backend/python/templates.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/styx/backend/python/templates.py b/src/styx/backend/python/templates.py index 4e3b7ac..0b8733b 100644 --- a/src/styx/backend/python/templates.py +++ b/src/styx/backend/python/templates.py @@ -20,6 +20,7 @@ def template_root_pyproject(project: ir.Project, dependencies: list[str]) -> str requires-python = ">=3.10" dependencies = [ "styxdocker", + "styxpodman", "styxsingularity", "styxgraph",{dependencies} ] @@ -80,6 +81,7 @@ def template_root_init_py(project: ir.Project, package_names: list[str]) -> str: return f'''{reexports} from styxdefs import * # Reexport styxdefs from styxdocker import DockerRunner +from styxpodman import PodmanRunner from styxsingularity import SingularityRunner from styxgraph import GraphRunner @@ -99,6 +101,11 @@ def use_docker(*args, **kwargs): set_global_runner(DockerRunner(*args, **kwargs)) +def use_podman(*args, **kwargs): + """Set the PodmanRunner as the global runner.""" + set_global_runner(PodmanRunner(*args, **kwargs)) + + def use_singularity(*args, **kwargs): """Set the SingularityRunner as the global runner.""" set_global_runner(SingularityRunner(*args, **kwargs))