sqlmesh 0.200.1.dev11__py3-none-any.whl → 0.200.1.dev13__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.
- sqlmesh/_version.py +2 -2
- sqlmesh/core/config/loader.py +8 -2
- sqlmesh/core/config/root.py +12 -0
- sqlmesh/integrations/github/cicd/config.py +26 -3
- {sqlmesh-0.200.1.dev11.dist-info → sqlmesh-0.200.1.dev13.dist-info}/METADATA +1 -1
- {sqlmesh-0.200.1.dev11.dist-info → sqlmesh-0.200.1.dev13.dist-info}/RECORD +10 -10
- {sqlmesh-0.200.1.dev11.dist-info → sqlmesh-0.200.1.dev13.dist-info}/WHEEL +0 -0
- {sqlmesh-0.200.1.dev11.dist-info → sqlmesh-0.200.1.dev13.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.200.1.dev11.dist-info → sqlmesh-0.200.1.dev13.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.200.1.dev11.dist-info → sqlmesh-0.200.1.dev13.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py
CHANGED
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '0.200.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 200, 1, '
|
|
20
|
+
__version__ = version = '0.200.1.dev13'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 200, 1, 'dev13')
|
sqlmesh/core/config/loader.py
CHANGED
|
@@ -184,8 +184,14 @@ def load_config_from_python_module(
|
|
|
184
184
|
module_path: Path,
|
|
185
185
|
config_name: str = "config",
|
|
186
186
|
) -> C:
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
try:
|
|
188
|
+
with sys_path(module_path.parent):
|
|
189
|
+
config_module = import_python_file(module_path, module_path.parent)
|
|
190
|
+
except Exception as e:
|
|
191
|
+
raise ConfigError(
|
|
192
|
+
f"Failed to load config file: {e}",
|
|
193
|
+
location=module_path,
|
|
194
|
+
)
|
|
189
195
|
|
|
190
196
|
try:
|
|
191
197
|
config_obj = getattr(config_module, config_name)
|
sqlmesh/core/config/root.py
CHANGED
|
@@ -260,6 +260,18 @@ class Config(BaseConfig):
|
|
|
260
260
|
|
|
261
261
|
return self
|
|
262
262
|
|
|
263
|
+
@model_validator(mode="after")
|
|
264
|
+
def _inherit_project_config_in_cicd_bot(self) -> Self:
|
|
265
|
+
if self.cicd_bot:
|
|
266
|
+
# inherit the project-level settings into the CICD bot if they have not been explicitly overridden
|
|
267
|
+
if self.cicd_bot.auto_categorize_changes_ is None:
|
|
268
|
+
self.cicd_bot.auto_categorize_changes_ = self.plan.auto_categorize_changes
|
|
269
|
+
|
|
270
|
+
if self.cicd_bot.pr_include_unmodified_ is None:
|
|
271
|
+
self.cicd_bot.pr_include_unmodified_ = self.plan.include_unmodified
|
|
272
|
+
|
|
273
|
+
return self
|
|
274
|
+
|
|
263
275
|
def get_default_test_connection(
|
|
264
276
|
self,
|
|
265
277
|
default_catalog: t.Optional[str] = None,
|
|
@@ -7,6 +7,7 @@ from sqlmesh.core.config import CategorizerConfig
|
|
|
7
7
|
from sqlmesh.core.config.base import BaseConfig
|
|
8
8
|
from sqlmesh.utils.date import TimeLike
|
|
9
9
|
from sqlmesh.utils.pydantic import model_validator
|
|
10
|
+
from sqlmesh.core.console import get_console
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
class MergeMethod(str, Enum):
|
|
@@ -22,10 +23,12 @@ class GithubCICDBotConfig(BaseConfig):
|
|
|
22
23
|
enable_deploy_command: bool = False
|
|
23
24
|
merge_method: t.Optional[MergeMethod] = None
|
|
24
25
|
command_namespace: t.Optional[str] = None
|
|
25
|
-
|
|
26
|
+
auto_categorize_changes_: t.Optional[CategorizerConfig] = Field(
|
|
27
|
+
default=None, alias="auto_categorize_changes"
|
|
28
|
+
)
|
|
26
29
|
default_pr_start: t.Optional[TimeLike] = None
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
skip_pr_backfill_: t.Optional[bool] = Field(default=None, alias="skip_pr_backfill")
|
|
31
|
+
pr_include_unmodified_: t.Optional[bool] = Field(default=None, alias="pr_include_unmodified")
|
|
29
32
|
run_on_deploy_to_prod: bool = False
|
|
30
33
|
pr_environment_name: t.Optional[str] = None
|
|
31
34
|
pr_min_intervals: t.Optional[int] = None
|
|
@@ -50,6 +53,26 @@ class GithubCICDBotConfig(BaseConfig):
|
|
|
50
53
|
return [self.prod_branch_names_]
|
|
51
54
|
return ["main", "master"]
|
|
52
55
|
|
|
56
|
+
@property
|
|
57
|
+
def auto_categorize_changes(self) -> CategorizerConfig:
|
|
58
|
+
return self.auto_categorize_changes_ or CategorizerConfig.all_off()
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def pr_include_unmodified(self) -> bool:
|
|
62
|
+
return self.pr_include_unmodified_ or False
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def skip_pr_backfill(self) -> bool:
|
|
66
|
+
if self.skip_pr_backfill_ is None:
|
|
67
|
+
get_console().log_warning(
|
|
68
|
+
"`skip_pr_backfill` is unset, defaulting it to `true` (no data will be backfilled).\n"
|
|
69
|
+
"Future versions of SQLMesh will default to `skip_pr_backfill: false` to align with the CLI default behaviour.\n"
|
|
70
|
+
"If you would like to preserve the current behaviour and remove this warning, please explicitly set `skip_pr_backfill: true` in the bot config.\n\n"
|
|
71
|
+
"For more information on configuring the bot, see: https://sqlmesh.readthedocs.io/en/stable/integrations/github/"
|
|
72
|
+
)
|
|
73
|
+
return True
|
|
74
|
+
return self.skip_pr_backfill_
|
|
75
|
+
|
|
53
76
|
FIELDS_FOR_ANALYTICS: t.ClassVar[t.Set[str]] = {
|
|
54
77
|
"invalidate_environment_after_deploy",
|
|
55
78
|
"enable_deploy_command",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=yhJg19wY--2G9eDcl6HjUhtkC073-1hJ4cV7LN8ZuN8,530
|
|
3
3
|
sqlmesh/magics.py,sha256=bEzYqXHcM0P3CjyUZ1O9arlmXAdLAhoglKbQ29fD9AE,41842
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -47,12 +47,12 @@ sqlmesh/core/config/format.py,sha256=6CXFbvnor56xbldKE-Vrm9k_ABRoY4v6vgIb3mCihiQ
|
|
|
47
47
|
sqlmesh/core/config/gateway.py,sha256=tYngyqwd_4Qr9lhcv2hlvLvb_2pgYYtKu6hdGsTr-4I,1931
|
|
48
48
|
sqlmesh/core/config/janitor.py,sha256=NP0i51V8XwMrHw8uuwQknivuudIleNiFBtBnMuXmfIY,362
|
|
49
49
|
sqlmesh/core/config/linter.py,sha256=4Fh6UgY5FrRD9tk_R41Y-M_r91Wh7EQW3Pc1IdRN9Cg,1287
|
|
50
|
-
sqlmesh/core/config/loader.py,sha256=
|
|
50
|
+
sqlmesh/core/config/loader.py,sha256=Cml5ei1Y1SVeXu4Q47Yu3JWeV7vy6Pu8_5i7DeU0scs,8560
|
|
51
51
|
sqlmesh/core/config/migration.py,sha256=3lZIlmIcQH3_hIEm3Y3jFtvpw0YXzRzAnk4OdiklO6M,408
|
|
52
52
|
sqlmesh/core/config/model.py,sha256=GIz9kAfKD2NEXNzCZCQ17-CK2OtqN6WgeG1fvibcChM,3650
|
|
53
53
|
sqlmesh/core/config/naming.py,sha256=KVGaxUgswoQajXR_cHFJvgkmEFcU1V182GkOH1SJxuE,326
|
|
54
54
|
sqlmesh/core/config/plan.py,sha256=wJEDfocMcKSMN0-5gVojjIcmJZ0376LJU3tkGMTm-Zc,1558
|
|
55
|
-
sqlmesh/core/config/root.py,sha256
|
|
55
|
+
sqlmesh/core/config/root.py,sha256=-ev6H4Qi0rlwiO8NyvgGXsunkvpVpaRZD6ZCuTDF4V4,16223
|
|
56
56
|
sqlmesh/core/config/run.py,sha256=rIK0QnN_vArrwps2TXGVEbvao2AnGZgzXo7EliJa42E,852
|
|
57
57
|
sqlmesh/core/config/scheduler.py,sha256=LVEHIln7dqv8ygo4uniji4j9-gfuJlk-WpQU9FAqILs,7031
|
|
58
58
|
sqlmesh/core/config/ui.py,sha256=jsO-S6_d9NkLZGG5pT4mgKgxMF34KzkDociZAMvCX3U,278
|
|
@@ -161,7 +161,7 @@ sqlmesh/integrations/slack.py,sha256=nxLxu5WztGbZH3JdqnzyPqmJUMfRdJ_49LQ7zR-u39Q
|
|
|
161
161
|
sqlmesh/integrations/github/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
162
162
|
sqlmesh/integrations/github/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
163
163
|
sqlmesh/integrations/github/cicd/command.py,sha256=yW0dmsnL-gFTzUvTX1RvCOXDcsOdi0M7IVCpsLR9IN8,12194
|
|
164
|
-
sqlmesh/integrations/github/cicd/config.py,sha256=
|
|
164
|
+
sqlmesh/integrations/github/cicd/config.py,sha256=Cnk1xClYZpYuyCjj1cJnAdlqe0RObd6bg75dnmStEBA,3351
|
|
165
165
|
sqlmesh/integrations/github/cicd/controller.py,sha256=8tFGVmPxdOl6rMj6X-50ZbzfgaQHVl2fa4QbVhr3WY4,53248
|
|
166
166
|
sqlmesh/lsp/api.py,sha256=_lA_buSPZFIoLJuINbS53LbNOOaHp3orb0uFTE3aCqI,2328
|
|
167
167
|
sqlmesh/lsp/completions.py,sha256=Nt1XpFL_-QAIRM8BBBC6Ia6YG0hMZriiNJra7nGfD4Q,6676
|
|
@@ -284,7 +284,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
|
|
|
284
284
|
sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
|
|
285
285
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
286
286
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
287
|
-
sqlmesh-0.200.1.
|
|
287
|
+
sqlmesh-0.200.1.dev13.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
288
288
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
289
289
|
web/client/dist/index.html,sha256=DAv6ABGogw4xRLb0T_92WP_S7XWyqVhwBgGKWtuQwU4,5472
|
|
290
290
|
web/client/dist/assets/Audits-BuHAmFO8.js,sha256=zbYUF6WdUGMbnMm01GMNPb7xAJwj-o5wMdL56vPo2qE,1041
|
|
@@ -402,8 +402,8 @@ web/server/api/endpoints/models.py,sha256=kwj0s7uve3iZSMfmjkoPVMFMeY1sD0peTeyrWf
|
|
|
402
402
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
403
403
|
web/server/api/endpoints/plan.py,sha256=bbbY50W_2MsZSTxOHWMKz0tbIm75nsRSlPy8GI2fg9Q,9306
|
|
404
404
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
405
|
-
sqlmesh-0.200.1.
|
|
406
|
-
sqlmesh-0.200.1.
|
|
407
|
-
sqlmesh-0.200.1.
|
|
408
|
-
sqlmesh-0.200.1.
|
|
409
|
-
sqlmesh-0.200.1.
|
|
405
|
+
sqlmesh-0.200.1.dev13.dist-info/METADATA,sha256=7VF0H9yE0701yrmaGkg9lSzJpR2qWjVLbtpvHV2cVDA,26679
|
|
406
|
+
sqlmesh-0.200.1.dev13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
407
|
+
sqlmesh-0.200.1.dev13.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
408
|
+
sqlmesh-0.200.1.dev13.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
409
|
+
sqlmesh-0.200.1.dev13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|