arcade-core 2.5.0rc1__py3-none-any.whl → 2.5.0rc2__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.
arcade_core/config_model.py
CHANGED
|
@@ -99,19 +99,24 @@ class Config(BaseConfig):
|
|
|
99
99
|
config_file_path = cls.get_config_file_path()
|
|
100
100
|
|
|
101
101
|
if not config_file_path.exists():
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
raise FileNotFoundError(
|
|
103
|
+
f"Configuration file not found at {config_file_path}. "
|
|
104
|
+
"Please run 'arcade login' to create your configuration."
|
|
105
|
+
)
|
|
105
106
|
|
|
106
107
|
config_data = yaml.safe_load(config_file_path.read_text())
|
|
107
108
|
|
|
108
109
|
if config_data is None:
|
|
109
110
|
raise ValueError(
|
|
110
|
-
"Invalid credentials.yaml file. Please ensure it is a valid YAML file
|
|
111
|
+
"Invalid credentials.yaml file. Please ensure it is a valid YAML file or"
|
|
112
|
+
"run `arcade logout`, then `arcade login` to start from a clean slate."
|
|
111
113
|
)
|
|
112
114
|
|
|
113
115
|
if "cloud" not in config_data:
|
|
114
|
-
raise ValueError(
|
|
116
|
+
raise ValueError(
|
|
117
|
+
"Invalid credentials.yaml file. Expected a 'cloud' key."
|
|
118
|
+
"Run `arcade logout`, then `arcade login` to start from a clean slate."
|
|
119
|
+
)
|
|
115
120
|
|
|
116
121
|
try:
|
|
117
122
|
return cls(**config_data["cloud"])
|
|
@@ -3,7 +3,7 @@ arcade_core/annotations.py,sha256=Nst6aejLWXlpTu7GwzWETu1gQCG1XVAUR_qcFbNvyRc,19
|
|
|
3
3
|
arcade_core/auth.py,sha256=On9sJPOxvHjKBxgKC1yqp7oijF6KYBsG6fG8KUw-9OY,5882
|
|
4
4
|
arcade_core/catalog.py,sha256=QD7PLaKBW8eBaelj3_ax7s_pgKNnOYWEIsMLtqmbtjI,41819
|
|
5
5
|
arcade_core/config.py,sha256=e98XQAkYySGW9T_yrJg54BB8Wuq06GPVHp7xqe2d1vU,572
|
|
6
|
-
arcade_core/config_model.py,sha256=
|
|
6
|
+
arcade_core/config_model.py,sha256=78BR6Ch9BDuG4ddWGfpuEKqWcb1fyOF6kxiF4qLFogM,4481
|
|
7
7
|
arcade_core/context.py,sha256=J2MgbVznhJC2qarHq3dTL72W4NGYOM1pjXdI_YwgkA4,3316
|
|
8
8
|
arcade_core/discovery.py,sha256=PluKGhNtJ7RYjJuPDMB8LCNinQLKzlqoAtc3dwKb6IA,8397
|
|
9
9
|
arcade_core/errors.py,sha256=fsi7m6TQQSsdSNHl4rBoSN_YH3ZV910gjvBFqB207f4,13326
|
|
@@ -16,6 +16,6 @@ arcade_core/toolkit.py,sha256=UcZ151pC8zfIFzVMYxaq31H7M0f-2qprU0PkVAzfRtI,13815
|
|
|
16
16
|
arcade_core/utils.py,sha256=RxVIzURTtZ4nAWYB3FYGngqMMPmBBxf330Ez9eEoXaw,3109
|
|
17
17
|
arcade_core/version.py,sha256=CpXi3jGlx23RvRyU7iytOMZrnspdWw4yofS8lpP1AJU,18
|
|
18
18
|
arcade_core/converters/openai.py,sha256=4efdgTkvdwT44VGStBhdUmzCnoP5dysceIqPVVPG-vk,7408
|
|
19
|
-
arcade_core-2.5.
|
|
20
|
-
arcade_core-2.5.
|
|
21
|
-
arcade_core-2.5.
|
|
19
|
+
arcade_core-2.5.0rc2.dist-info/METADATA,sha256=Xhw3pQjQjiBkqMHcMpOkxCttm-vXQnAUi-gJTEJcEiI,2373
|
|
20
|
+
arcade_core-2.5.0rc2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
21
|
+
arcade_core-2.5.0rc2.dist-info/RECORD,,
|
|
File without changes
|