dvsim 1.7.3__py3-none-any.whl → 1.7.4__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.
- dvsim/cli/admin.py +2 -0
- dvsim/cli/run.py +2 -7
- {dvsim-1.7.3.dist-info → dvsim-1.7.4.dist-info}/METADATA +1 -1
- {dvsim-1.7.3.dist-info → dvsim-1.7.4.dist-info}/RECORD +7 -7
- {dvsim-1.7.3.dist-info → dvsim-1.7.4.dist-info}/WHEEL +0 -0
- {dvsim-1.7.3.dist-info → dvsim-1.7.4.dist-info}/entry_points.txt +0 -0
- {dvsim-1.7.3.dist-info → dvsim-1.7.4.dist-info}/licenses/LICENSE +0 -0
dvsim/cli/admin.py
CHANGED
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
"""DVSim CLI main entry point."""
|
|
6
6
|
|
|
7
|
+
from importlib.metadata import version
|
|
7
8
|
from pathlib import Path
|
|
8
9
|
|
|
9
10
|
import click
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@click.group()
|
|
14
|
+
@click.version_option(version("dvsim"))
|
|
13
15
|
def cli() -> None:
|
|
14
16
|
"""DVSim Administration tool.
|
|
15
17
|
|
dvsim/cli/run.py
CHANGED
|
@@ -28,6 +28,7 @@ import shlex
|
|
|
28
28
|
import subprocess
|
|
29
29
|
import sys
|
|
30
30
|
import textwrap
|
|
31
|
+
from importlib.metadata import version
|
|
31
32
|
from pathlib import Path
|
|
32
33
|
|
|
33
34
|
from dvsim.flow.factory import make_cfg
|
|
@@ -43,9 +44,6 @@ from dvsim.launcher.slurm import SlurmLauncher
|
|
|
43
44
|
from dvsim.logging import configure_logging, log
|
|
44
45
|
from dvsim.utils import TS_FORMAT, TS_FORMAT_LONG, Timer, rm_path, run_cmd_with_timeout
|
|
45
46
|
|
|
46
|
-
# TODO: add dvsim_cfg.hjson to retrieve this info
|
|
47
|
-
version = 0.1
|
|
48
|
-
|
|
49
47
|
# The different categories that can be passed to the --list argument.
|
|
50
48
|
_LIST_CATEGORIES = ["build_modes", "run_modes", "tests", "regressions"]
|
|
51
49
|
|
|
@@ -298,7 +296,7 @@ def parse_args():
|
|
|
298
296
|
|
|
299
297
|
parser.add_argument("cfg", metavar=cfg_metavar, help="""Configuration hjson file.""")
|
|
300
298
|
|
|
301
|
-
parser.add_argument("--version", action="
|
|
299
|
+
parser.add_argument("--version", action="version", version=version("dvsim"))
|
|
302
300
|
|
|
303
301
|
parser.add_argument(
|
|
304
302
|
"--tool",
|
|
@@ -794,9 +792,6 @@ def parse_args():
|
|
|
794
792
|
|
|
795
793
|
args = parser.parse_args()
|
|
796
794
|
|
|
797
|
-
if args.version:
|
|
798
|
-
sys.exit()
|
|
799
|
-
|
|
800
795
|
# Check conflicts
|
|
801
796
|
# interactive and remote, r
|
|
802
797
|
if args.interactive and args.remote:
|
|
@@ -10,8 +10,8 @@ dvsim/test.py,sha256=lMTieXHFIGEYQRJGJFsh_cP4bZ1_EadUolRWzIVmBvs,5610
|
|
|
10
10
|
dvsim/testplan.py,sha256=Qhne2FqlU8R9UGB5o3QOufMVh1xdbKFMhtLvjvyGyts,28389
|
|
11
11
|
dvsim/testplanner.py,sha256=kvgb6iAbmfaKmOLem1crKm49eygvOQX1q79Jv5UAHe0,1326
|
|
12
12
|
dvsim/cli/__init__.py,sha256=vggha7pCXj7dUK4VZChIR37MhKONBcJqt3j8l9xKM_U,238
|
|
13
|
-
dvsim/cli/admin.py,sha256=
|
|
14
|
-
dvsim/cli/run.py,sha256=
|
|
13
|
+
dvsim/cli/admin.py,sha256=wyN1WAmsJUTAZwCL-aGC_1ILrCyRdYZGeXCWmxy0An0,1261
|
|
14
|
+
dvsim/cli/run.py,sha256=sgf0Qa8UJLU7kPUAUbOi6-t3sHTGAmPmWBmf607rjnI,27893
|
|
15
15
|
dvsim/examples/testplanner/common_testplan.hjson,sha256=IDkf3AYleDdbuEarj8FItBhg5lMgoVrfgnAMzTU9_IM,806
|
|
16
16
|
dvsim/examples/testplanner/foo_dv_doc.md,sha256=AZkreUFyAehr2-6xh6Z7eRo4Eok9HFUH4TrDnByDor0,331
|
|
17
17
|
dvsim/examples/testplanner/foo_sim_results.hjson,sha256=WAx9FIwS11oybfw1BU7AmY_14tRDXWtoLBxAL0ZDh8I,1642
|
|
@@ -80,8 +80,8 @@ dvsim/utils/status_printer.py,sha256=azwNWS83rI-h7OfOYPIj-Sy46aIz35L3y_Yiwkx60ZE
|
|
|
80
80
|
dvsim/utils/subprocess.py,sha256=8jje9hmwZ_JH0zQ8JNwhsNldntgI3_SF6L5SUHQ9luo,1829
|
|
81
81
|
dvsim/utils/timer.py,sha256=jD4R3wB_rBxaefiMr-k34aH325xdcoqtHHRCtSczSC8,1604
|
|
82
82
|
dvsim/utils/wildcards.py,sha256=5WkByZLHyPlo5lD4rIXPuDjjrhrWqNpcTYxmQ5k294o,11701
|
|
83
|
-
dvsim-1.7.
|
|
84
|
-
dvsim-1.7.
|
|
85
|
-
dvsim-1.7.
|
|
86
|
-
dvsim-1.7.
|
|
87
|
-
dvsim-1.7.
|
|
83
|
+
dvsim-1.7.4.dist-info/METADATA,sha256=54RR4UKrC5rDrQjZdddXYgCnT10beId7HvPt8_uYhzM,5882
|
|
84
|
+
dvsim-1.7.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
85
|
+
dvsim-1.7.4.dist-info/entry_points.txt,sha256=6A-YOJ6XYbedSfSJ5dP56lRkoHYrLanJt0AYNH9w3r0,75
|
|
86
|
+
dvsim-1.7.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
87
|
+
dvsim-1.7.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|