File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed
Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 3838 python3 -m pip install --ignore-installed --verbose pip setuptools
3939 python3 -m pip install cmind
4040 python3 -m cmind
41+ # cmx pull repo mlcommons@ck --dir=cm4mlops/cm4mlops
42+ cmx pull repo mlcommons@ck --dir2=cm4mlops
4143 - name : Test
4244 run : |
4345 python tests/test_cm.py
Original file line number Diff line number Diff line change 1- ## CMX V4.1.3.1
1+ ## CMX V4.1.4
22 - fixed minor bug for "cmx --version"
3+ - added "cmx pull repo --dir2" to support "dir/dir" directories
34
45## CMX V4.1.3
56 - fixed a bug with "cmx -log" (#1410 )
Original file line number Diff line number Diff line change 99# White paper: https://arxiv.org/abs/2406.16791
1010# Project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md
1111
12- __version__ = "4.1.3.1 "
12+ __version__ = "4.1.4 "
1313
1414from cmind .core import access
1515from cmind .core import x
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ def pull(self, i):
4343 (checkout) (str): Git checkout
4444 (checkout_only) (bool): only checkout existing repo
4545 (dir) (str): use repository in this directory
46+ (dir2) (str): use repository in this "directory/directory"
4647 (depth) (int): Git depth
4748 (desc) (str): brief repository description (1 line)
4849 (prefix) (str): extra directory to keep CM artifacts
@@ -75,6 +76,11 @@ def pull(self, i):
7576 checkout_only = i .get ('checkout_only' , False )
7677 skip_zip_parent_dir = i .get ('skip_zip_parent_dir' , False )
7778
79+ dir2 = i .get ('dir2' , '' )
80+ if dir2 != '' :
81+ i ['dir' ] = dir2 + '/' + dir2
82+ del (i ['dir2' ])
83+
7884 # Check alias is URL
7985 if url == '' and (alias .startswith ('https://' ) or alias .startswith ('git@' )):
8086 url = alias
You can’t perform that action at this time.
0 commit comments