snowflake-cli 3.7.0__py3-none-any.whl → 3.7.1__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.
- snowflake/cli/__about__.py +1 -1
- snowflake/cli/_plugins/spcs/image_registry/manager.py +15 -6
- {snowflake_cli-3.7.0.dist-info → snowflake_cli-3.7.1.dist-info}/METADATA +2 -1
- {snowflake_cli-3.7.0.dist-info → snowflake_cli-3.7.1.dist-info}/RECORD +7 -7
- {snowflake_cli-3.7.0.dist-info → snowflake_cli-3.7.1.dist-info}/WHEEL +0 -0
- {snowflake_cli-3.7.0.dist-info → snowflake_cli-3.7.1.dist-info}/entry_points.txt +0 -0
- {snowflake_cli-3.7.0.dist-info → snowflake_cli-3.7.1.dist-info}/licenses/LICENSE +0 -0
snowflake/cli/__about__.py
CHANGED
|
@@ -74,12 +74,21 @@ class RegistryManager(SqlExecutionMixin):
|
|
|
74
74
|
return re.fullmatch(r"^.*//.+", url) is not None
|
|
75
75
|
|
|
76
76
|
def get_registry_url(self) -> str:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
images_query = "show image repositories in schema snowflake.images;"
|
|
78
|
+
images_result = self.execute_query(images_query, cursor_class=DictCursor)
|
|
79
|
+
|
|
80
|
+
results = images_result.fetchone()
|
|
81
|
+
|
|
82
|
+
if not results:
|
|
83
|
+
# fallback to account level query - slower one, so we try to avoid it if possible
|
|
84
|
+
repositories_query = "show image repositories in account"
|
|
85
|
+
result_set = self.execute_query(repositories_query, cursor_class=DictCursor)
|
|
86
|
+
results = result_set.fetchone()
|
|
87
|
+
|
|
88
|
+
if not results:
|
|
89
|
+
raise NoImageRepositoriesFoundError()
|
|
90
|
+
|
|
91
|
+
sample_repository_url = results["repository_url"]
|
|
83
92
|
if not self._has_url_scheme(sample_repository_url):
|
|
84
93
|
sample_repository_url = f"//{sample_repository_url}"
|
|
85
94
|
return urlparse(sample_repository_url).netloc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snowflake-cli
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.1
|
|
4
4
|
Summary: Snowflake CLI
|
|
5
5
|
Project-URL: Source code, https://github.com/snowflakedb/snowflake-cli
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/snowflakedb/snowflake-cli/issues
|
|
@@ -217,6 +217,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
217
217
|
Classifier: Programming Language :: SQL
|
|
218
218
|
Classifier: Topic :: Database
|
|
219
219
|
Requires-Python: >=3.10
|
|
220
|
+
Requires-Dist: certifi==2025.1.31
|
|
220
221
|
Requires-Dist: gitpython==3.1.44
|
|
221
222
|
Requires-Dist: jinja2==3.1.6
|
|
222
223
|
Requires-Dist: packaging
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
snowflake/cli/__about__.py,sha256=
|
|
1
|
+
snowflake/cli/__about__.py,sha256=i1ip30WKroHQVXiw4kJL2-wyInuhbCoTLzWQpdlzC9w,852
|
|
2
2
|
snowflake/cli/__init__.py,sha256=uGA_QRGW3iGwaegpFsLgOhup0zBliBSXh9ou8J439uU,578
|
|
3
3
|
snowflake/cli/_app/__init__.py,sha256=CR_uTgoqHnU1XdyRhm5iQsS86yWXGVx5Ht7aGSDNFmc,765
|
|
4
4
|
snowflake/cli/_app/__main__.py,sha256=ZmcFdFqAtk2mFMz-cqCFdGd0iYzc7UsLH1oT1U40S0k,858
|
|
@@ -151,7 +151,7 @@ snowflake/cli/_plugins/spcs/compute_pool/compute_pool_entity_model.py,sha256=XnI
|
|
|
151
151
|
snowflake/cli/_plugins/spcs/compute_pool/manager.py,sha256=pf8fXBf84Snw6grHE31Rdj0HYNYKAQHRxgGQ7cnSNlk,6013
|
|
152
152
|
snowflake/cli/_plugins/spcs/image_registry/__init__.py,sha256=uGA_QRGW3iGwaegpFsLgOhup0zBliBSXh9ou8J439uU,578
|
|
153
153
|
snowflake/cli/_plugins/spcs/image_registry/commands.py,sha256=W2FxH8ugY-LO8yOs5TWCNfi7DKmTmCOFTJwk-rpEsnw,2425
|
|
154
|
-
snowflake/cli/_plugins/spcs/image_registry/manager.py,sha256=
|
|
154
|
+
snowflake/cli/_plugins/spcs/image_registry/manager.py,sha256=2AWGhHmMih_yaTnoT25LN2Zja-Vq1SyFgFISEq-d40o,4312
|
|
155
155
|
snowflake/cli/_plugins/spcs/image_repository/__init__.py,sha256=uGA_QRGW3iGwaegpFsLgOhup0zBliBSXh9ou8J439uU,578
|
|
156
156
|
snowflake/cli/_plugins/spcs/image_repository/commands.py,sha256=rDcRWzyNAaWoUMgcoCd_jdiBwcNy9vkN-a8ve8L3bjw,6223
|
|
157
157
|
snowflake/cli/_plugins/spcs/image_repository/image_repository_entity.py,sha256=GT2h1xkefD6js38uYbZYN_NjBffJqBBZrz6-F5zyJPs,260
|
|
@@ -277,8 +277,8 @@ snowflake/cli/api/utils/naming_utils.py,sha256=uGA_QRGW3iGwaegpFsLgOhup0zBliBSXh
|
|
|
277
277
|
snowflake/cli/api/utils/path_utils.py,sha256=5-9_tMkhMMejR_vn7RiFN_VKx56Kw36TwgzPPmYD34E,1905
|
|
278
278
|
snowflake/cli/api/utils/templating_functions.py,sha256=zu2oK1BEC9yyWtDx17Hr-VAYHvCtagaOdxIrm70JQys,4955
|
|
279
279
|
snowflake/cli/api/utils/types.py,sha256=fVKuls8axKSsBzPqWwrkwkwoXXmedqxNJKqfXrrGyBM,1190
|
|
280
|
-
snowflake_cli-3.7.
|
|
281
|
-
snowflake_cli-3.7.
|
|
282
|
-
snowflake_cli-3.7.
|
|
283
|
-
snowflake_cli-3.7.
|
|
284
|
-
snowflake_cli-3.7.
|
|
280
|
+
snowflake_cli-3.7.1.dist-info/METADATA,sha256=hyn1pcbOpxGtwLv4Hda5qI6NWE_Vvr4t0ce9QGv3AXo,18099
|
|
281
|
+
snowflake_cli-3.7.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
282
|
+
snowflake_cli-3.7.1.dist-info/entry_points.txt,sha256=6QmSI0wUX6p7f-dGvrPdswlQyVAVGi1AtOUbE8X6bho,58
|
|
283
|
+
snowflake_cli-3.7.1.dist-info/licenses/LICENSE,sha256=mJMA3Uz2AbjU_kVggo1CAx01XhBsI7BSi2H7ggUg_-c,11344
|
|
284
|
+
snowflake_cli-3.7.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|