rhdl 0.1.0.post1729615558__py3-none-any.whl → 0.1.0.post1729715499__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.

Potentially problematic release.


This version of rhdl might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rhdl
3
- Version: 0.1.0.post1729615558
3
+ Version: 0.1.0.post1729715499
4
4
  Summary: RHDL CLI module
5
5
  Home-page: https://gitlab.cee.redhat.com/rhdl/rhdl
6
6
  Author: Distributed CI team
@@ -1,17 +1,17 @@
1
1
  rhdlcli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  rhdlcli/api.py,sha256=nyTh8uso5KeLW6GYK3kY76UVNWBhYomBml_dMYNd2cU,4054
3
- rhdlcli/cli.py,sha256=T3vP-7zKstOWAVtbd-vZknSZogvgxImkoOSc0aUrQak,3271
3
+ rhdlcli/cli.py,sha256=pFILpfTFON-5q89ZDVZWa4DfGiypvB-9lM5Ob_L_H08,3379
4
4
  rhdlcli/downloader.py,sha256=MQQ2w_xbb69iw_0cTJ7EiGa66edzB1sqgJfUrfL-8e8,1330
5
5
  rhdlcli/files.py,sha256=SMYUn0aI4V9yueV6S-ymmbIrFf_gVQa0VSWVC_vqxBg,1560
6
6
  rhdlcli/fs.py,sha256=tEO-5EujnTLmKN-IsH6Vj6ePISGOgHvgyUTQG0wYR7M,544
7
7
  rhdlcli/main.py,sha256=nb6HJu0-0duVlDtp9T6H6cYMcau8Bt9AcX6-4oLWivo,1110
8
- rhdlcli/options.py,sha256=-I9WWUvjbNTcDvVxIQ-oxJeGDBkfizNtLPe4rp8LKZs,1875
8
+ rhdlcli/options.py,sha256=RBumOmOnytI_niEjyXHcbJzM9IseQsg_zmKL6fhhxyw,1887
9
9
  rhdlcli/stats.py,sha256=MvwxMr4LAm3PM5qiEnuB8thUgzBolWPLKg6ql53QU_Y,786
10
10
  rhdlcli/validator.py,sha256=tuxTiqmDn84QFFfk95Wq54tNtAQQmhNvQGRsWJGdzww,874
11
11
  rhdlcli/version.py,sha256=kUR5RAFc7HCeiqdlX36dZOHkUI5wI6V_43RpEcD8b-0,22
12
- rhdl-0.1.0.post1729615558.dist-info/LICENSE,sha256=RVVnHNsitM_UrrOOZTEpvbjNHs-IZ4wgkeaWaYeNXRE,11337
13
- rhdl-0.1.0.post1729615558.dist-info/METADATA,sha256=BwPu51A7Xv_RxnWwcbgCAwDjpXs2lttudDCCet_u4UE,456
14
- rhdl-0.1.0.post1729615558.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
15
- rhdl-0.1.0.post1729615558.dist-info/entry_points.txt,sha256=JWiBdHm5nD1m3_XZR0QtIuPmuvsJKE-43YhQxCINb8w,43
16
- rhdl-0.1.0.post1729615558.dist-info/top_level.txt,sha256=1kLkHuRFxHGxPUkrCL28sF6wqXmu3IGhJT858T4XRaI,8
17
- rhdl-0.1.0.post1729615558.dist-info/RECORD,,
12
+ rhdl-0.1.0.post1729715499.dist-info/LICENSE,sha256=RVVnHNsitM_UrrOOZTEpvbjNHs-IZ4wgkeaWaYeNXRE,11337
13
+ rhdl-0.1.0.post1729715499.dist-info/METADATA,sha256=gaW_gBl7bihZxjq0j63KxL2n5MxCzOGVEorLnTKaRzk,456
14
+ rhdl-0.1.0.post1729715499.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
15
+ rhdl-0.1.0.post1729715499.dist-info/entry_points.txt,sha256=JWiBdHm5nD1m3_XZR0QtIuPmuvsJKE-43YhQxCINb8w,43
16
+ rhdl-0.1.0.post1729715499.dist-info/top_level.txt,sha256=1kLkHuRFxHGxPUkrCL28sF6wqXmu3IGhJT858T4XRaI,8
17
+ rhdl-0.1.0.post1729715499.dist-info/RECORD,,
rhdlcli/cli.py CHANGED
@@ -9,7 +9,7 @@ examples:
9
9
  # Login to RHDL
10
10
  rhdl login
11
11
 
12
- # download lastest RHEL-10 compose in the current folder
12
+ # download lastest RHEL-10 compose in <cwd>/RHEL-10 folder
13
13
  rhdl download RHEL-10
14
14
 
15
15
  # download latest RHEL-10 in /tmp/repo folder
@@ -39,6 +39,8 @@ def clean_with_default_values(parsed_arguments):
39
39
  setattr(parsed_arguments, "include_and_exclude", DEFAULT_INCLUDE_EXCLUDE_LIST)
40
40
  del parsed_arguments.include
41
41
  del parsed_arguments.exclude
42
+ if parsed_arguments.destination is None:
43
+ setattr(parsed_arguments, "destination", f"./{parsed_arguments.compose}")
42
44
  return vars(parsed_arguments)
43
45
 
44
46
 
@@ -71,7 +73,6 @@ def parse_arguments(arguments):
71
73
  "-d",
72
74
  "--destination",
73
75
  metavar="DESTINATION",
74
- default=".",
75
76
  help="Destination folder where rhdl will download the compose",
76
77
  )
77
78
  parser.add_argument(
rhdlcli/options.py CHANGED
@@ -1,3 +1,4 @@
1
+ import getpass
1
2
  import json
2
3
  import os
3
4
  import pathlib
@@ -44,10 +45,10 @@ def login(options):
44
45
  if not os.path.exists(app_config_path):
45
46
  os.makedirs(app_config_path)
46
47
 
47
- access_key = input("RHDL Access Key [None]: ")
48
- secret_key = input("RHDL Secret Key [None]:")
48
+ access_key = input("RHDL Access Key: ")
49
+ secret_key = getpass.getpass("RHDL Secret Key: ")
49
50
  default_base_url = "https://api.rhdl.distributed-ci.io"
50
- base_url = input(f"RHDL server host [{default_base_url}]:") or default_base_url
51
+ base_url = input(f"RHDL server host ({default_base_url}):") or default_base_url
51
52
  credentials = {
52
53
  "base_url": base_url,
53
54
  "access_key": access_key,