rhdl 0.1.0.post1729689838__tar.gz → 0.1.0.post1730710521__tar.gz

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.

Files changed (28) hide show
  1. {rhdl-0.1.0.post1729689838/rhdl.egg-info → rhdl-0.1.0.post1730710521}/PKG-INFO +1 -1
  2. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521/rhdl.egg-info}/PKG-INFO +1 -1
  3. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/cli.py +3 -2
  4. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/options.py +4 -3
  5. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/tests/test_cli.py +1 -1
  6. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/LICENSE +0 -0
  7. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/MANIFEST.in +0 -0
  8. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/requirements.txt +0 -0
  9. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdl.egg-info/SOURCES.txt +0 -0
  10. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdl.egg-info/dependency_links.txt +0 -0
  11. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdl.egg-info/entry_points.txt +0 -0
  12. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdl.egg-info/requires.txt +0 -0
  13. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdl.egg-info/top_level.txt +0 -0
  14. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/__init__.py +0 -0
  15. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/api.py +0 -0
  16. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/downloader.py +0 -0
  17. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/files.py +0 -0
  18. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/fs.py +0 -0
  19. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/main.py +0 -0
  20. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/stats.py +0 -0
  21. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/validator.py +0 -0
  22. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/rhdlcli/version.py +0 -0
  23. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/setup.cfg +0 -0
  24. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/setup.py +0 -0
  25. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/tests/test_files.py +0 -0
  26. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/tests/test_options.py +0 -0
  27. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/tests/test_stats.py +0 -0
  28. {rhdl-0.1.0.post1729689838 → rhdl-0.1.0.post1730710521}/tests/test_validator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rhdl
3
- Version: 0.1.0.post1729689838
3
+ Version: 0.1.0.post1730710521
4
4
  Summary: RHDL CLI module
5
5
  Home-page: https://gitlab.cee.redhat.com/rhdl/rhdl
6
6
  Author: Distributed CI team
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rhdl
3
- Version: 0.1.0.post1729689838
3
+ Version: 0.1.0.post1730710521
4
4
  Summary: RHDL CLI module
5
5
  Home-page: https://gitlab.cee.redhat.com/rhdl/rhdl
6
6
  Author: Distributed CI team
@@ -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(
@@ -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,
@@ -3,7 +3,7 @@ from rhdlcli.cli import parse_arguments
3
3
 
4
4
  def test_parse_arguments_when_no_options():
5
5
  args = parse_arguments(["download", "RHEL-9.4"])
6
- assert args["destination"] == "."
6
+ assert args["destination"] == "./RHEL-9.4"
7
7
  assert args["tag"] == "milestone"
8
8
  assert args["include_and_exclude"] == [
9
9
  {"pattern": ".composeinfo", "type": "include"},