dv-flow-mgr 1.0.0.14458222178a1__py3-none-any.whl → 1.0.0.14482399855a1__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.
- dv_flow/mgr/__main__.py +6 -1
- dv_flow/mgr/cmds/cmd_graph.py +9 -1
- dv_flow/mgr/cmds/cmd_run.py +7 -1
- dv_flow/mgr/fileset.py +1 -0
- {dv_flow_mgr-1.0.0.14458222178a1.dist-info → dv_flow_mgr-1.0.0.14482399855a1.dist-info}/METADATA +1 -1
- {dv_flow_mgr-1.0.0.14458222178a1.dist-info → dv_flow_mgr-1.0.0.14482399855a1.dist-info}/RECORD +10 -10
- {dv_flow_mgr-1.0.0.14458222178a1.dist-info → dv_flow_mgr-1.0.0.14482399855a1.dist-info}/WHEEL +0 -0
- {dv_flow_mgr-1.0.0.14458222178a1.dist-info → dv_flow_mgr-1.0.0.14482399855a1.dist-info}/entry_points.txt +0 -0
- {dv_flow_mgr-1.0.0.14458222178a1.dist-info → dv_flow_mgr-1.0.0.14482399855a1.dist-info}/licenses/LICENSE +0 -0
- {dv_flow_mgr-1.0.0.14458222178a1.dist-info → dv_flow_mgr-1.0.0.14482399855a1.dist-info}/top_level.txt +0 -0
dv_flow/mgr/__main__.py
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
#****************************************************************************
|
22
22
|
import argparse
|
23
23
|
import logging
|
24
|
+
import os
|
24
25
|
from .cmds.cmd_graph import CmdGraph
|
25
26
|
from .cmds.cmd_run import CmdRun
|
26
27
|
from .cmds.cmd_show import CmdShow
|
@@ -45,6 +46,8 @@ def get_parser():
|
|
45
46
|
graph_parser.add_argument("task", nargs="?", help="task to graph")
|
46
47
|
graph_parser.add_argument("-f", "--format", help="Specifies the output format",
|
47
48
|
default="dot")
|
49
|
+
graph_parser.add_argument("--root",
|
50
|
+
help="Specifies the root directory for the flow")
|
48
51
|
graph_parser.add_argument("-o", "--output",
|
49
52
|
help="Specifies the output file",
|
50
53
|
default="-")
|
@@ -55,9 +58,11 @@ def get_parser():
|
|
55
58
|
run_parser.add_argument("-j",
|
56
59
|
help="Specifies degree of parallelism. Uses all cores by default",
|
57
60
|
type=int, default=-1)
|
58
|
-
run_parser.add_argument("
|
61
|
+
run_parser.add_argument("--clean",
|
59
62
|
action="store_true",
|
60
63
|
help="Cleans the rundir before running")
|
64
|
+
run_parser.add_argument("--root",
|
65
|
+
help="Specifies the root directory for the flow")
|
61
66
|
run_parser.set_defaults(func=CmdRun())
|
62
67
|
|
63
68
|
show_parser = subparsers.add_parser('show',
|
dv_flow/mgr/cmds/cmd_graph.py
CHANGED
@@ -35,8 +35,16 @@ class CmdGraph(object):
|
|
35
35
|
|
36
36
|
def __call__(self, args):
|
37
37
|
|
38
|
+
if args.root is not None:
|
39
|
+
rootdir = args.root
|
40
|
+
elif "DV_FLOW_ROOT" in os.environ.keys():
|
41
|
+
rootdir = os.environ["DV_FLOW_ROOT"]
|
42
|
+
else:
|
43
|
+
rootdir = os.getcwd()
|
44
|
+
|
45
|
+
|
38
46
|
# First, find the project we're working with
|
39
|
-
pkg = loadProjPkgDef(
|
47
|
+
pkg = loadProjPkgDef(rootdir)
|
40
48
|
|
41
49
|
if pkg is None:
|
42
50
|
raise Exception("Failed to find a 'flow.dv' file that defines a package in %s or its parent directories" % os.getcwd())
|
dv_flow/mgr/cmds/cmd_run.py
CHANGED
@@ -33,10 +33,16 @@ class CmdRun(object):
|
|
33
33
|
_log : ClassVar = logging.getLogger("CmdRun")
|
34
34
|
|
35
35
|
def __call__(self, args):
|
36
|
+
if args.root is not None:
|
37
|
+
rootdir = args.root
|
38
|
+
elif "DV_FLOW_ROOT" in os.environ.keys():
|
39
|
+
rootdir = os.environ["DV_FLOW_ROOT"]
|
40
|
+
else:
|
41
|
+
rootdir = os.getcwd()
|
36
42
|
|
37
43
|
# First, find the project we're working with
|
38
44
|
listener = TaskListenerLog()
|
39
|
-
pkg = loadProjPkgDef(
|
45
|
+
pkg = loadProjPkgDef(rootdir, listener=listener)
|
40
46
|
|
41
47
|
if pkg is None:
|
42
48
|
raise Exception("Failed to find a 'flow.dv' file that defines a package in %s or its parent directories" % os.getcwd())
|
dv_flow/mgr/fileset.py
CHANGED
{dv_flow_mgr-1.0.0.14458222178a1.dist-info → dv_flow_mgr-1.0.0.14482399855a1.dist-info}/RECORD
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
dv_flow/mgr/__init__.py,sha256=dsBbrdDvG4Y2ZlQIxU-0SuJMultZbIGLnvmpD0B0ICo,1235
|
2
|
-
dv_flow/mgr/__main__.py,sha256=
|
2
|
+
dv_flow/mgr/__main__.py,sha256=BogNdBkXhgg05E8_IumNkVoag6WwvfbpiI8346oOtPo,3844
|
3
3
|
dv_flow/mgr/cond_def.py,sha256=2ZkzPusqVkN1fFMTvkDl9O_OJLPdD_cK3xzX9J75RMw,343
|
4
4
|
dv_flow/mgr/config.py,sha256=nF_hM-RwJLvgfbwRe11a1wsAu_SihSd5qOxQi7I6lvU,108
|
5
5
|
dv_flow/mgr/config_def.py,sha256=_71YbjaHbSx7REWxG3uDw8lh8-k7UzEvSXlEFy2V1Rc,1121
|
@@ -9,7 +9,7 @@ dv_flow/mgr/expr_eval.py,sha256=N_8hRIgzJK9JVqhRt8F9rc4S7AAdKHMMltafqk6KhJs,3113
|
|
9
9
|
dv_flow/mgr/expr_parser.py,sha256=P6u2FdSXeZbdamC3zpEnYKLcK2RULQJfSoev2Ol75fE,6543
|
10
10
|
dv_flow/mgr/ext_rgy.py,sha256=BeHbTjB6KFcI5xhbl_O00YQW7MQ8efCFTD_Y8xf7I44,5651
|
11
11
|
dv_flow/mgr/extend_def.py,sha256=Ndh4z4XqqimtoS8-6ZNMDOvkVpVmEaWZsNEPM26PDZ0,653
|
12
|
-
dv_flow/mgr/fileset.py,sha256=
|
12
|
+
dv_flow/mgr/fileset.py,sha256=kSjz-RiuQdKGMVjmbGK5YlwY-vJKSHmgggu-1_H0DHU,1320
|
13
13
|
dv_flow/mgr/fragment_def.py,sha256=2qx6KWiHCDvnb9JXnqIOb4n6kemAClAYuBoM6ex6xJE,1696
|
14
14
|
dv_flow/mgr/listener_list.py,sha256=BfqvEO2AyJvyc4ClU-hPgDPqWSlqvSdG-yaFEHvUrMc,272
|
15
15
|
dv_flow/mgr/need_def.py,sha256=X52FJnhukwFsGCkIM-W6apZEdxqS5Gmm-rRO-TS83aU,173
|
@@ -51,8 +51,8 @@ dv_flow/mgr/task_runner.py,sha256=6wtaEh7iflnAtBZk73LNYNo6Kv4aOYKy-7bW5e5Zkxk,97
|
|
51
51
|
dv_flow/mgr/type.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
52
|
dv_flow/mgr/type_def.py,sha256=NDeyplKrPnWwEv4yHkhXEMK9d9j39b5MOeLB-1Mchqo,1095
|
53
53
|
dv_flow/mgr/yaml_srcinfo_loader.py,sha256=5ibJ9lpM7HYpgkRxozlZJx8hnUqjfq1cmYQm3ZhVgv8,1589
|
54
|
-
dv_flow/mgr/cmds/cmd_graph.py,sha256=
|
55
|
-
dv_flow/mgr/cmds/cmd_run.py,sha256=
|
54
|
+
dv_flow/mgr/cmds/cmd_graph.py,sha256=yg5KbNrGvm3dySiI0Qei_pMWZkOE9GtEyaQ4IdNVmoE,2852
|
55
|
+
dv_flow/mgr/cmds/cmd_run.py,sha256=cjEh9_HJIEDxUWjrhgwTtWQ6kTnARyACe8bY2W0pV7o,3497
|
56
56
|
dv_flow/mgr/cmds/cmd_show.py,sha256=UD4HEguZZomKBO-UyOCYyftINBPG1Ka1p_XQvkHBTkw,3743
|
57
57
|
dv_flow/mgr/share/flow.json,sha256=lNmZex9NXkYbyb2aZseQfUOkV9CMyfH0iLODEI7EPBw,5096
|
58
58
|
dv_flow/mgr/std/create_file.py,sha256=TAUhpXlTmUDUYw4Dw0cI9FPuYI84yCVkoadnWZxi_8U,2888
|
@@ -66,9 +66,9 @@ dv_flow/mgr/util/__main__.py,sha256=F0LXpCDpYTPalSo0dc1h_qZkip5v1AZYYh-vcYbh5s0,
|
|
66
66
|
dv_flow/mgr/util/util.py,sha256=cBNt3JJ0PGLlUQFTtBLi12i2j_9gNgSBtKdwS3VfF5Y,1566
|
67
67
|
dv_flow/mgr/util/cmds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
68
68
|
dv_flow/mgr/util/cmds/cmd_schema.py,sha256=IJzZdxCSEgIQ79LpYiM7UqJ9RJ-7yraqmBN2XVgAgXA,1752
|
69
|
-
dv_flow_mgr-1.0.0.
|
70
|
-
dv_flow_mgr-1.0.0.
|
71
|
-
dv_flow_mgr-1.0.0.
|
72
|
-
dv_flow_mgr-1.0.0.
|
73
|
-
dv_flow_mgr-1.0.0.
|
74
|
-
dv_flow_mgr-1.0.0.
|
69
|
+
dv_flow_mgr-1.0.0.14482399855a1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
70
|
+
dv_flow_mgr-1.0.0.14482399855a1.dist-info/METADATA,sha256=IgbV1eOM8Ur3Qe3n4xc5-4wmm0bvkMcCqu37lLkRtR4,13336
|
71
|
+
dv_flow_mgr-1.0.0.14482399855a1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
72
|
+
dv_flow_mgr-1.0.0.14482399855a1.dist-info/entry_points.txt,sha256=1roy8wAFM48LabOvr6jiOw0MUs-qE8X3Vf8YykPazxk,50
|
73
|
+
dv_flow_mgr-1.0.0.14482399855a1.dist-info/top_level.txt,sha256=amfVTkggzYPtWwLqNmRukfz1Buu0pGS2SrYBBLhXm04,8
|
74
|
+
dv_flow_mgr-1.0.0.14482399855a1.dist-info/RECORD,,
|
{dv_flow_mgr-1.0.0.14458222178a1.dist-info → dv_flow_mgr-1.0.0.14482399855a1.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|