From 9cad451a88f27afe80f41499029a3268dd1dddff Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Tue, 25 Jul 2023 16:43:36 +0100 Subject: [PATCH 001/110] Bump dev version 8.3.0.dev --- cylc/flow/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cylc/flow/__init__.py b/cylc/flow/__init__.py index ac1743a704f..bc9f24aa573 100644 --- a/cylc/flow/__init__.py +++ b/cylc/flow/__init__.py @@ -53,7 +53,7 @@ def environ_init(): environ_init() -__version__ = '8.2.1.dev' +__version__ = '8.3.0.dev' def iter_entry_points(entry_point_name): From 69e08792d86a4dd40f4d85f37e5fd88908bc9680 Mon Sep 17 00:00:00 2001 From: Hilary James Oliver Date: Wed, 7 Jun 2023 11:33:58 +1200 Subject: [PATCH 002/110] Add CYLC_ variables to template engine globals. --- cylc/flow/parsec/empysupport.py | 7 +++ cylc/flow/parsec/fileparse.py | 24 +++++++++- cylc/flow/parsec/jinja2support.py | 23 ++++------ cylc/flow/scripts/view.py | 37 ++++++++++------ tests/unit/test_config.py | 73 +++++++++++++++++++++++++++++++ 5 files changed, 133 insertions(+), 31 deletions(-) diff --git a/cylc/flow/parsec/empysupport.py b/cylc/flow/parsec/empysupport.py index 7bc8a69e3c4..b4164894e0f 100644 --- a/cylc/flow/parsec/empysupport.py +++ b/cylc/flow/parsec/empysupport.py @@ -24,6 +24,7 @@ import typing as t from cylc.flow.parsec.exceptions import EmPyError +from cylc.flow.parsec.fileparse import get_cylc_env_vars def empyprocess( @@ -52,6 +53,12 @@ def empyprocess( ftempl = StringIO('\n'.join(flines)) xtempl = StringIO() interpreter = em.Interpreter(output=em.UncloseableFile(xtempl)) + + # Add `CYLC_` environment variables to the global namespace. + interpreter.updateGlobals( + get_cylc_env_vars() + ) + try: interpreter.file(ftempl, '