tasktree 0.0.17__py3-none-any.whl → 0.0.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tasktree/parser.py +6 -1
- {tasktree-0.0.17.dist-info → tasktree-0.0.18.dist-info}/METADATA +1 -1
- {tasktree-0.0.17.dist-info → tasktree-0.0.18.dist-info}/RECORD +5 -5
- {tasktree-0.0.17.dist-info → tasktree-0.0.18.dist-info}/WHEEL +0 -0
- {tasktree-0.0.17.dist-info → tasktree-0.0.18.dist-info}/entry_points.txt +0 -0
tasktree/parser.py
CHANGED
|
@@ -237,9 +237,11 @@ class Recipe:
|
|
|
237
237
|
# Root task not found - fall back to eager evaluation
|
|
238
238
|
# This allows the recipe to be parsed even with invalid task names
|
|
239
239
|
# so the CLI can provide its own error message
|
|
240
|
+
reachable_tasks = self.tasks.keys()
|
|
240
241
|
variables_to_eval = set(self.raw_variables.keys())
|
|
241
242
|
else:
|
|
242
243
|
# Eager path: evaluate all variables (for --list command)
|
|
244
|
+
reachable_tasks = self.tasks.keys()
|
|
243
245
|
variables_to_eval = set(self.raw_variables.keys())
|
|
244
246
|
|
|
245
247
|
# Evaluate the selected variables using helper function
|
|
@@ -256,7 +258,10 @@ class Recipe:
|
|
|
256
258
|
# Substitute evaluated variables into all tasks
|
|
257
259
|
from tasktree.substitution import substitute_variables
|
|
258
260
|
|
|
259
|
-
for task in self.tasks.
|
|
261
|
+
for task_name, task in self.tasks.items():
|
|
262
|
+
if task_name not in reachable_tasks:
|
|
263
|
+
continue
|
|
264
|
+
|
|
260
265
|
task.cmd = substitute_variables(task.cmd, self.evaluated_variables)
|
|
261
266
|
task.desc = substitute_variables(task.desc, self.evaluated_variables)
|
|
262
267
|
task.working_dir = substitute_variables(task.working_dir, self.evaluated_variables)
|
|
@@ -4,11 +4,11 @@ tasktree/docker.py,sha256=qvja8G63uAcC73YMVY739egda1_CcBtoqzm0qIJU_Q8,14443
|
|
|
4
4
|
tasktree/executor.py,sha256=QQcABThmof0MLTtwpJKpyqh80hr3YRIqqs3NZ-Ry-Bk,44873
|
|
5
5
|
tasktree/graph.py,sha256=yITp71RfhJ7sdC-2zRf89SHYZqQyF3XVAnaqX-XnMdE,15821
|
|
6
6
|
tasktree/hasher.py,sha256=0GrnCfwAXnwq_kpnHFFb12B5_2VFNXx6Ng7hTdcCyXo,4415
|
|
7
|
-
tasktree/parser.py,sha256=
|
|
7
|
+
tasktree/parser.py,sha256=o2AQuk9xeM9JCtyMzDeM0uJBsbJEhzPDxsPg9GwmJt4,88940
|
|
8
8
|
tasktree/state.py,sha256=Cktl4D8iDZVd55aO2LqVyPrc-BnljkesxxkcMcdcfOY,3541
|
|
9
9
|
tasktree/substitution.py,sha256=qG7SyEHn1PAKteWA0AgA1dUNbJfwQTupCLRq9FvOBD0,10724
|
|
10
10
|
tasktree/types.py,sha256=R_YAyO5bMLB6XZnkMRT7VAtlkA_Xx6xu0aIpzQjrBXs,4357
|
|
11
|
-
tasktree-0.0.
|
|
12
|
-
tasktree-0.0.
|
|
13
|
-
tasktree-0.0.
|
|
14
|
-
tasktree-0.0.
|
|
11
|
+
tasktree-0.0.18.dist-info/METADATA,sha256=u70mwnKCeb3sQkn5_B4cf0AOc8mI-FhvdTUbW0hoB3A,37234
|
|
12
|
+
tasktree-0.0.18.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
13
|
+
tasktree-0.0.18.dist-info/entry_points.txt,sha256=lQINlvRYnimvteBbnhH84A9clTg8NnpEjCWqWkqg8KE,40
|
|
14
|
+
tasktree-0.0.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|