sqlmesh 0.199.1.dev37__py3-none-any.whl → 0.199.1.dev38__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 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.199.1.dev37'
21
- __version_tuple__ = version_tuple = (0, 199, 1, 'dev37')
20
+ __version__ = version = '0.199.1.dev38'
21
+ __version_tuple__ = version_tuple = (0, 199, 1, 'dev38')
sqlmesh/core/console.py CHANGED
@@ -3107,7 +3107,9 @@ class MarkdownConsole(CaptureTerminalConsole):
3107
3107
  AUDIT_PADDING = 7
3108
3108
 
3109
3109
  def __init__(self, **kwargs: t.Any) -> None:
3110
- super().__init__(**{**kwargs, "console": RichConsole(no_color=True)})
3110
+ super().__init__(
3111
+ **{**kwargs, "console": RichConsole(no_color=True, width=kwargs.pop("width", None))}
3112
+ )
3111
3113
 
3112
3114
  def show_environment_difference_summary(
3113
3115
  self,
@@ -28,7 +28,9 @@ logger = logging.getLogger(__name__)
28
28
  @click.pass_context
29
29
  def github(ctx: click.Context, token: str) -> None:
30
30
  """Github Action CI/CD Bot. See https://sqlmesh.readthedocs.io/en/stable/integrations/github/ for details"""
31
- set_console(MarkdownConsole())
31
+ # set a larger width because if none is specified, it auto-detects 80 characters when running in GitHub Actions
32
+ # which can result in surprise newlines when outputting dates to backfill
33
+ set_console(MarkdownConsole(width=1000))
32
34
  ctx.obj["github"] = GithubController(
33
35
  paths=ctx.obj["paths"],
34
36
  token=token,
@@ -485,6 +485,12 @@ class GithubController:
485
485
  print(f"{key}={value}", file=fh)
486
486
 
487
487
  def get_plan_summary(self, plan: Plan) -> str:
488
+ # use Verbosity.VERY_VERBOSE to prevent the list of models from being truncated
489
+ # this is particularly important for the "Models needing backfill" list because
490
+ # there is no easy way to tell this otherwise
491
+ orig_verbosity = self._console.verbosity
492
+ self._console.verbosity = Verbosity.VERY_VERBOSE
493
+
488
494
  try:
489
495
  # Clear out any output that might exist from prior steps
490
496
  self._console.clear_captured_outputs()
@@ -517,7 +523,10 @@ class GithubController:
517
523
 
518
524
  return f"{difference_summary}\n{missing_dates}{plan_flags_section}"
519
525
  except PlanError as e:
526
+ logger.exception("Plan failed to generate")
520
527
  return f"Plan failed to generate. Check for pending or unresolved changes. Error: {e}"
528
+ finally:
529
+ self._console.verbosity = orig_verbosity
521
530
 
522
531
  def run_tests(self) -> t.Tuple[ModelTextTestResult, str]:
523
532
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlmesh
3
- Version: 0.199.1.dev37
3
+ Version: 0.199.1.dev38
4
4
  Summary: Next-generation data transformation framework
5
5
  Author-email: "TobikoData Inc." <engineering@tobikodata.com>
6
6
  License: Apache License
@@ -1,5 +1,5 @@
1
1
  sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
2
- sqlmesh/_version.py,sha256=4BjAKjZdT1H6rOtRN7W232ePy_cd_KQ7o-XISxLdukM,530
2
+ sqlmesh/_version.py,sha256=u56_WWQvlsIhySk9UleCHs6ctfzK9-iSGMzwpprC0c0,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
@@ -11,7 +11,7 @@ sqlmesh/cli/options.py,sha256=-4ZclMIeIg8tghLowtmQNmpEFlm0QtOVEh40NqRdFHA,2499
11
11
  sqlmesh/cli/project_init.py,sha256=5JmDmUK0WJs39hM-p76uzHYdo1Hnx6fKuJg_pR3Hn5A,16419
12
12
  sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
14
- sqlmesh/core/console.py,sha256=ObpdArJOXDOihWPXsWIUuwiQ64cMlroNWJHqQPkVqC0,160753
14
+ sqlmesh/core/console.py,sha256=mrh0oTT4kVesXbmbaPFgamhbEt8mE94FhUIubLvrLAQ,160808
15
15
  sqlmesh/core/constants.py,sha256=gUABXWYgH_XOSbaZAJsR5o1dmA61JDCvBDyxqqXX3LM,2630
16
16
  sqlmesh/core/context.py,sha256=9a8RqBBHQXjH7nMYiTcQRtp5_NYpk_9EFpPoBfDx94o,124321
17
17
  sqlmesh/core/context_diff.py,sha256=CeUmMBJzN__98YohrtAiIYPIZI9mrGBk6bVADWBLUw8,21692
@@ -160,9 +160,9 @@ sqlmesh/integrations/llm.py,sha256=URgp3JKr06HYv6hGlJ7DQ9m3QCc41xRWK23HzmGpbDI,1
160
160
  sqlmesh/integrations/slack.py,sha256=nxLxu5WztGbZH3JdqnzyPqmJUMfRdJ_49LQ7zR-u39Q,6801
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
- sqlmesh/integrations/github/cicd/command.py,sha256=neBs7BfuywRR_AnB8pXHMlEmgFe2-WPJka_KsE9YzkY,12097
163
+ sqlmesh/integrations/github/cicd/command.py,sha256=xMUMJmNT0z8nWb992SzgnFI2IOQu6HYrkN6_KAMnlqE,12301
164
164
  sqlmesh/integrations/github/cicd/config.py,sha256=tRhMZaLf1p6AWXvi67n85Q-lptJNGt1Wk_Jr61ytpiM,2104
165
- sqlmesh/integrations/github/cicd/controller.py,sha256=I8jnpS2hvYwa-dpki0Cly246eeBM9-9Qy9loxw4bMpI,52284
165
+ sqlmesh/integrations/github/cicd/controller.py,sha256=zSHFGktuWczHQC5k0q8NkEw7f1zKcxxovWOitirMJAY,52747
166
166
  sqlmesh/lsp/api.py,sha256=_lA_buSPZFIoLJuINbS53LbNOOaHp3orb0uFTE3aCqI,2328
167
167
  sqlmesh/lsp/completions.py,sha256=Nt1XpFL_-QAIRM8BBBC6Ia6YG0hMZriiNJra7nGfD4Q,6676
168
168
  sqlmesh/lsp/context.py,sha256=2aD_lH-GqAwCjTFHfCavH2fZz2T4IXQZVS7LDMAa2X4,12815
@@ -282,7 +282,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
282
282
  sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
283
283
  sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
284
284
  sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
285
- sqlmesh-0.199.1.dev37.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
285
+ sqlmesh-0.199.1.dev38.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
286
286
  web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
287
287
  web/client/dist/index.html,sha256=DAv6ABGogw4xRLb0T_92WP_S7XWyqVhwBgGKWtuQwU4,5472
288
288
  web/client/dist/assets/Audits-BuHAmFO8.js,sha256=zbYUF6WdUGMbnMm01GMNPb7xAJwj-o5wMdL56vPo2qE,1041
@@ -400,8 +400,8 @@ web/server/api/endpoints/models.py,sha256=kwj0s7uve3iZSMfmjkoPVMFMeY1sD0peTeyrWf
400
400
  web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
401
401
  web/server/api/endpoints/plan.py,sha256=bbbY50W_2MsZSTxOHWMKz0tbIm75nsRSlPy8GI2fg9Q,9306
402
402
  web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
403
- sqlmesh-0.199.1.dev37.dist-info/METADATA,sha256=IafNahlJRdo-nsvmo1JJRPn7ieCaY7kfRHuAEU1-gY0,26659
404
- sqlmesh-0.199.1.dev37.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
405
- sqlmesh-0.199.1.dev37.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
406
- sqlmesh-0.199.1.dev37.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
407
- sqlmesh-0.199.1.dev37.dist-info/RECORD,,
403
+ sqlmesh-0.199.1.dev38.dist-info/METADATA,sha256=0N6DkubXOnYzU0zxXylxo7WWCkAlmwqWQFiC8ULomuQ,26659
404
+ sqlmesh-0.199.1.dev38.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
405
+ sqlmesh-0.199.1.dev38.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
406
+ sqlmesh-0.199.1.dev38.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
407
+ sqlmesh-0.199.1.dev38.dist-info/RECORD,,