snowflake-cli 3.8.0__py3-none-any.whl → 3.8.2__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/_app/version_check.py +4 -3
- snowflake/cli/_plugins/nativeapp/entities/application_package.py +12 -9
- {snowflake_cli-3.8.0.dist-info → snowflake_cli-3.8.2.dist-info}/METADATA +2 -2
- {snowflake_cli-3.8.0.dist-info → snowflake_cli-3.8.2.dist-info}/RECORD +8 -8
- {snowflake_cli-3.8.0.dist-info → snowflake_cli-3.8.2.dist-info}/WHEEL +0 -0
- {snowflake_cli-3.8.0.dist-info → snowflake_cli-3.8.2.dist-info}/entry_points.txt +0 -0
- {snowflake_cli-3.8.0.dist-info → snowflake_cli-3.8.2.dist-info}/licenses/LICENSE +0 -0
snowflake/cli/__about__.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import time
|
|
3
|
+
from warnings import warn
|
|
3
4
|
|
|
4
5
|
import requests
|
|
5
6
|
from packaging.version import Version
|
|
6
7
|
from snowflake.cli.__about__ import VERSION
|
|
7
|
-
from snowflake.cli.api.
|
|
8
|
+
from snowflake.cli.api.cli_global_context import get_cli_context
|
|
8
9
|
from snowflake.cli.api.secure_path import SecurePath
|
|
9
10
|
from snowflake.connector.config_manager import CONFIG_MANAGER
|
|
10
11
|
|
|
@@ -21,8 +22,8 @@ def get_new_version_msg() -> str | None:
|
|
|
21
22
|
|
|
22
23
|
def show_new_version_banner_callback(msg):
|
|
23
24
|
def _callback(*args, **kwargs):
|
|
24
|
-
if msg:
|
|
25
|
-
|
|
25
|
+
if msg and not get_cli_context().silent:
|
|
26
|
+
warn(msg)
|
|
26
27
|
|
|
27
28
|
return _callback
|
|
28
29
|
|
|
@@ -190,9 +190,9 @@ class ApplicationPackageEntityModel(EntityModelBaseWithArtifacts):
|
|
|
190
190
|
title="Entities that will be bundled and deployed as part of this application package",
|
|
191
191
|
default=[],
|
|
192
192
|
)
|
|
193
|
-
enable_release_channels: bool = Field(
|
|
193
|
+
enable_release_channels: Optional[bool] = Field(
|
|
194
194
|
title="Enable release channels for this application package",
|
|
195
|
-
default=
|
|
195
|
+
default=None,
|
|
196
196
|
)
|
|
197
197
|
|
|
198
198
|
@field_validator("children")
|
|
@@ -1559,13 +1559,16 @@ class ApplicationPackageEntity(EntityBase[ApplicationPackageEntityModel]):
|
|
|
1559
1559
|
If return value is None, it means do not explicitly set the flag.
|
|
1560
1560
|
"""
|
|
1561
1561
|
value_from_snowflake_yml = self.model.enable_release_channels
|
|
1562
|
-
feature_flag_from_config = FeatureFlag.ENABLE_RELEASE_CHANNELS.
|
|
1563
|
-
if
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1562
|
+
feature_flag_from_config = FeatureFlag.ENABLE_RELEASE_CHANNELS.get_value()
|
|
1563
|
+
if value_from_snowflake_yml is not None:
|
|
1564
|
+
enable_release_channels = value_from_snowflake_yml
|
|
1565
|
+
else:
|
|
1566
|
+
enable_release_channels = feature_flag_from_config
|
|
1567
|
+
if feature_flag_from_config is not None:
|
|
1568
|
+
self._workspace_ctx.console.warning(
|
|
1569
|
+
f"{FeatureFlag.ENABLE_RELEASE_CHANNELS.name} value in config.toml is deprecated."
|
|
1570
|
+
f" Set [enable_release_channels] for the application package in snowflake.yml instead."
|
|
1571
|
+
)
|
|
1569
1572
|
|
|
1570
1573
|
feature_enabled_in_account = (
|
|
1571
1574
|
get_snowflake_facade().get_ui_parameter(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snowflake-cli
|
|
3
|
-
Version: 3.8.
|
|
3
|
+
Version: 3.8.2
|
|
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
|
|
@@ -231,7 +231,7 @@ Requires-Dist: requirements-parser==0.11.0
|
|
|
231
231
|
Requires-Dist: rich==14.0.0
|
|
232
232
|
Requires-Dist: setuptools==80.3.1
|
|
233
233
|
Requires-Dist: snowflake-connector-python[secure-local-storage]==3.15.0
|
|
234
|
-
Requires-Dist: snowflake-core==1.4.0
|
|
234
|
+
Requires-Dist: snowflake-core==1.4.0
|
|
235
235
|
Requires-Dist: snowflake-snowpark-python<1.26.0,>=1.15.0; python_version < '3.12'
|
|
236
236
|
Requires-Dist: tomlkit==0.13.2
|
|
237
237
|
Requires-Dist: typer==0.15.2
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
snowflake/cli/__about__.py,sha256=
|
|
1
|
+
snowflake/cli/__about__.py,sha256=mhNhCoCLJcfBJgE3CHSDoO2i67GJGbXO4YXY7sq80wQ,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
|
|
@@ -9,7 +9,7 @@ snowflake/cli/_app/main_typer.py,sha256=v2n7moen3CkP-SfsGrTh-MzFgqG6Ak8bJa8E2dGK
|
|
|
9
9
|
snowflake/cli/_app/printing.py,sha256=Q2EKlkd7dbEiGrOaOIr0EgK_C0EUidTfIY3uRlRqSo0,5834
|
|
10
10
|
snowflake/cli/_app/snow_connector.py,sha256=-YjzGz3etmdKQSMkaOOuz3oR6gBRGXM0Zh09eqpSB78,12111
|
|
11
11
|
snowflake/cli/_app/telemetry.py,sha256=BilrctjAesRQh7NqLfaLbCiXV2tcgLhvWXCgoBcU0zk,9771
|
|
12
|
-
snowflake/cli/_app/version_check.py,sha256=
|
|
12
|
+
snowflake/cli/_app/version_check.py,sha256=UCBnDGtNfiT0I9kpGubJdJeBOyUycJ4ULiKZjVhGXzY,2438
|
|
13
13
|
snowflake/cli/_app/commands_registration/__init__.py,sha256=HhP1c8GDRqUtZMeYVNuYwc1_524q9jH18bxJJk1JKWU,918
|
|
14
14
|
snowflake/cli/_app/commands_registration/builtin_plugins.py,sha256=jprTW2Z4LbSJQ4Z80B6zaKfeeBqz1u04aaeH2y-Nsq0,2778
|
|
15
15
|
snowflake/cli/_app/commands_registration/command_plugins_loader.py,sha256=4pRKUYBmIVsBxDvaztgFbIBZKSaGseAMJMEHSkg0Nag,6297
|
|
@@ -89,7 +89,7 @@ snowflake/cli/_plugins/nativeapp/codegen/snowpark/python_processor.py,sha256=Ltw
|
|
|
89
89
|
snowflake/cli/_plugins/nativeapp/codegen/templates/templates_processor.py,sha256=ycaMiMfJuyW8QntKlfXOrKOxfGsk4zngGbTFuwZDfVU,4704
|
|
90
90
|
snowflake/cli/_plugins/nativeapp/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
91
91
|
snowflake/cli/_plugins/nativeapp/entities/application.py,sha256=p5DrEKoO5ojvBSm0LB13ubFLMCM4MV1rbX5wZqbTO-s,40473
|
|
92
|
-
snowflake/cli/_plugins/nativeapp/entities/application_package.py,sha256=
|
|
92
|
+
snowflake/cli/_plugins/nativeapp/entities/application_package.py,sha256=slb1K5EJdQJPK_YJiUQX1JYnQYGw5XI6qZM10D1VzdQ,70510
|
|
93
93
|
snowflake/cli/_plugins/nativeapp/entities/application_package_child_interface.py,sha256=tN5UmU6wD_P14k7_MtOFNJwNUi6LfwFAUdnyZ4_O9hk,1527
|
|
94
94
|
snowflake/cli/_plugins/nativeapp/entities/models/event_sharing_telemetry.py,sha256=ASfuzBheevYrKzP8_mvbq1SR1gSaui1xlZVg4dD0hpg,2364
|
|
95
95
|
snowflake/cli/_plugins/nativeapp/release_channel/__init__.py,sha256=uGA_QRGW3iGwaegpFsLgOhup0zBliBSXh9ou8J439uU,578
|
|
@@ -285,8 +285,8 @@ snowflake/cli/api/utils/path_utils.py,sha256=OgR7cwbHXqP875RgPJGrAvDC1RRTU-2-Yss
|
|
|
285
285
|
snowflake/cli/api/utils/python_api_utils.py,sha256=wTNxXrma78wPvBz-Jo-ixNtP8ZjDCDh4TvciEnhYIAM,300
|
|
286
286
|
snowflake/cli/api/utils/templating_functions.py,sha256=zu2oK1BEC9yyWtDx17Hr-VAYHvCtagaOdxIrm70JQys,4955
|
|
287
287
|
snowflake/cli/api/utils/types.py,sha256=fVKuls8axKSsBzPqWwrkwkwoXXmedqxNJKqfXrrGyBM,1190
|
|
288
|
-
snowflake_cli-3.8.
|
|
289
|
-
snowflake_cli-3.8.
|
|
290
|
-
snowflake_cli-3.8.
|
|
291
|
-
snowflake_cli-3.8.
|
|
292
|
-
snowflake_cli-3.8.
|
|
288
|
+
snowflake_cli-3.8.2.dist-info/METADATA,sha256=Y67_Em62B6KSwPR5LO0NFjoAvvoHiV6GtCSj5xvNq_E,18316
|
|
289
|
+
snowflake_cli-3.8.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
290
|
+
snowflake_cli-3.8.2.dist-info/entry_points.txt,sha256=6QmSI0wUX6p7f-dGvrPdswlQyVAVGi1AtOUbE8X6bho,58
|
|
291
|
+
snowflake_cli-3.8.2.dist-info/licenses/LICENSE,sha256=mJMA3Uz2AbjU_kVggo1CAx01XhBsI7BSi2H7ggUg_-c,11344
|
|
292
|
+
snowflake_cli-3.8.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|