cook-build 0.7.0__py3-none-any.whl → 0.7.1__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.
- cook/task.py +4 -4
- {cook_build-0.7.0.dist-info → cook_build-0.7.1.dist-info}/METADATA +1 -1
- {cook_build-0.7.0.dist-info → cook_build-0.7.1.dist-info}/RECORD +7 -7
- {cook_build-0.7.0.dist-info → cook_build-0.7.1.dist-info}/WHEEL +1 -1
- {cook_build-0.7.0.dist-info → cook_build-0.7.1.dist-info}/entry_points.txt +0 -0
- {cook_build-0.7.0.dist-info → cook_build-0.7.1.dist-info}/licenses/LICENSE +0 -0
- {cook_build-0.7.0.dist-info → cook_build-0.7.1.dist-info}/top_level.txt +0 -0
cook/task.py
CHANGED
|
@@ -34,12 +34,12 @@ class Task:
|
|
|
34
34
|
location: tuple[str, int] | None = None,
|
|
35
35
|
) -> None:
|
|
36
36
|
self.dependencies = dependencies or []
|
|
37
|
+
self.targets = [Path(path) for path in (targets or [])]
|
|
37
38
|
if name is None:
|
|
38
|
-
if not self.
|
|
39
|
-
raise ValueError("name is required if there are no
|
|
40
|
-
name = str(self.
|
|
39
|
+
if not self.targets:
|
|
40
|
+
raise ValueError("'name' is required if there are no targets.")
|
|
41
|
+
name = str(self.targets[0])
|
|
41
42
|
self.name = name
|
|
42
|
-
self.targets = [Path(path) for path in (targets or [])]
|
|
43
43
|
self.action = action
|
|
44
44
|
self.task_dependencies = task_dependencies or []
|
|
45
45
|
self.location = location or util.get_location()
|
|
@@ -4,11 +4,11 @@ cook/actions.py,sha256=1VLyWL-pACuWpAjIyNWPBeu6wlKkoqi6t3lHr6hV0EQ,7399
|
|
|
4
4
|
cook/contexts.py,sha256=AMKO7Uz-nI52OsdPQ_zCLXjOf77V4pgzvDyj6-N8Ods,10705
|
|
5
5
|
cook/controller.py,sha256=vpF3QhiM3HImaI0rHJ58T8i5AQi5_P4Z2p42qFvG1po,13426
|
|
6
6
|
cook/manager.py,sha256=Y-QGVw9x8ZpSBMRALJIHgcMmIZulAV9KxwtBJz35Gpw,6241
|
|
7
|
-
cook/task.py,sha256
|
|
7
|
+
cook/task.py,sha256=-LNMwHdFlTUG45DF_QyWlIHw55_n_u2Xf5beKB7LrdY,2308
|
|
8
8
|
cook/util.py,sha256=15MMG07CYZZ-YdFE_2jzRRTaqHMsw83UFg0s7e72MhI,2435
|
|
9
|
-
cook_build-0.7.
|
|
10
|
-
cook_build-0.7.
|
|
11
|
-
cook_build-0.7.
|
|
12
|
-
cook_build-0.7.
|
|
13
|
-
cook_build-0.7.
|
|
14
|
-
cook_build-0.7.
|
|
9
|
+
cook_build-0.7.1.dist-info/licenses/LICENSE,sha256=3Nuj_WTTcz7JDg4-9EzNf6vHlKRWpdLUccg-pvoZ3WE,1500
|
|
10
|
+
cook_build-0.7.1.dist-info/METADATA,sha256=8CK_rxir23FBjEo5H3IhxB1tkzXlMrolpAuhwqYLP4g,4586
|
|
11
|
+
cook_build-0.7.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
12
|
+
cook_build-0.7.1.dist-info/entry_points.txt,sha256=5UP0ZmmxSNKevTVISUJxmdXEQsKrI4n54OQYkjrdX2c,48
|
|
13
|
+
cook_build-0.7.1.dist-info/top_level.txt,sha256=ewNQIn2oRSYV98vAsUnw88u2Q8XHKhAz70ed2PEdR2c,5
|
|
14
|
+
cook_build-0.7.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|