tinybird 0.0.1.dev207__py3-none-any.whl → 0.0.1.dev208__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.
Potentially problematic release.
This version of tinybird might be problematic. Click here for more details.
- tinybird/tb/__cli__.py +2 -2
- tinybird/tb/modules/datafile/parse_pipe.py +8 -4
- tinybird/tb/modules/deployment.py +4 -1
- {tinybird-0.0.1.dev207.dist-info → tinybird-0.0.1.dev208.dist-info}/METADATA +1 -1
- {tinybird-0.0.1.dev207.dist-info → tinybird-0.0.1.dev208.dist-info}/RECORD +8 -8
- {tinybird-0.0.1.dev207.dist-info → tinybird-0.0.1.dev208.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev207.dist-info → tinybird-0.0.1.dev208.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev207.dist-info → tinybird-0.0.1.dev208.dist-info}/top_level.txt +0 -0
tinybird/tb/__cli__.py
CHANGED
|
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
|
|
|
4
4
|
__url__ = 'https://www.tinybird.co/docs/forward/commands'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev208'
|
|
8
|
+
__revision__ = 'b7f2001'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import os
|
|
2
|
-
from typing import Dict, Optional
|
|
2
|
+
from typing import Dict, List, Optional
|
|
3
3
|
|
|
4
4
|
import click
|
|
5
5
|
|
|
6
|
-
from tinybird.sql_template import get_template_and_variables, render_sql_template
|
|
6
|
+
from tinybird.sql_template import get_template_and_variables, render_sql_template, secret_template_key
|
|
7
7
|
from tinybird.tb.modules.datafile.common import (
|
|
8
8
|
DatafileKind,
|
|
9
9
|
DatafileSyntaxError,
|
|
@@ -52,11 +52,15 @@ def parse_pipe(
|
|
|
52
52
|
node["type"] = node["type"].lower()
|
|
53
53
|
sql = node.get("sql", "")
|
|
54
54
|
if sql.strip()[0] == "%":
|
|
55
|
-
|
|
55
|
+
secrets_list: Optional[List[str]] = None
|
|
56
|
+
if secrets:
|
|
57
|
+
secrets_list = [f"{secret_template_key(secret)}" for secret in secrets.keys()]
|
|
58
|
+
# Setting test_mode=True to ignore errors on required parameters and
|
|
59
|
+
# secrets_in_test_mode=False to raise errors on missing secrets
|
|
56
60
|
sql, _, variable_warnings = render_sql_template(
|
|
57
61
|
sql[1:],
|
|
58
62
|
name=node["name"],
|
|
59
|
-
secrets=
|
|
63
|
+
secrets=secrets_list,
|
|
60
64
|
test_mode=True,
|
|
61
65
|
secrets_in_test_mode=False,
|
|
62
66
|
)
|
|
@@ -591,7 +591,10 @@ def create_deployment(
|
|
|
591
591
|
sys.exit(0)
|
|
592
592
|
|
|
593
593
|
click.echo(FeedbackManager.error(message="\n✗ Deployment is not valid"))
|
|
594
|
-
sys_exit(
|
|
594
|
+
sys_exit(
|
|
595
|
+
"deployment_error",
|
|
596
|
+
f"Deployment is not valid: {str(deployment.get('errors') + deployment.get('feedback', []))}",
|
|
597
|
+
)
|
|
595
598
|
|
|
596
599
|
status = result.get("result")
|
|
597
600
|
if status == "success":
|
|
@@ -12,7 +12,7 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
|
|
|
12
12
|
tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
|
|
13
13
|
tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
|
|
14
14
|
tinybird/ch_utils/engine.py,sha256=X4tE9OrfaUy6kO9cqVEzyI9cDcmOF3IAssRRzsTsfEQ,40781
|
|
15
|
-
tinybird/tb/__cli__.py,sha256=
|
|
15
|
+
tinybird/tb/__cli__.py,sha256=8vEtZ-rXUcgIU2_jSHd8nHyo7d03XFzJcnlvW71sxlM,247
|
|
16
16
|
tinybird/tb/check_pypi.py,sha256=i3l2L8IajeB7sreikR7oPlYJki9MtS3c_M4crnmbByc,760
|
|
17
17
|
tinybird/tb/cli.py,sha256=u3eGOhX0MHkuT6tiwaZ0_3twqLmqKXDAOxF7yV_Nn9Q,1075
|
|
18
18
|
tinybird/tb/client.py,sha256=0zUAi9Lclo2JusQKlQnSnSP1XCiCK9I03XtLqmk8e04,56487
|
|
@@ -26,7 +26,7 @@ tinybird/tb/modules/connection.py,sha256=FJZHTAR6sf5VbPIotxbyMgO-6UCCbnsKj6I0Eje
|
|
|
26
26
|
tinybird/tb/modules/copy.py,sha256=2Mm4FWKehOG7CoOhiF1m9UZJgJn0W1_cMolqju8ONYg,5805
|
|
27
27
|
tinybird/tb/modules/create.py,sha256=sncG6iaeS_AApY1EmmfYEdj9B6-1CPZJzvTmfJQj_Rc,22112
|
|
28
28
|
tinybird/tb/modules/datasource.py,sha256=TxQyTJucpPbLBov-5gbWmJLlz07ZbqfCyvva__WO6p4,39373
|
|
29
|
-
tinybird/tb/modules/deployment.py,sha256=
|
|
29
|
+
tinybird/tb/modules/deployment.py,sha256=FsziPNJ1qotkChHOGYQmwC2fFczOqahBYkEp-Mz0xUA,28242
|
|
30
30
|
tinybird/tb/modules/deprecations.py,sha256=rrszC1f_JJeJ8mUxGoCxckQTJFBCR8wREf4XXXN-PRc,4507
|
|
31
31
|
tinybird/tb/modules/dev_server.py,sha256=57FCKuWpErwYUYgHspYDkLWEm9F4pbvVOtMrFXX1fVU,10129
|
|
32
32
|
tinybird/tb/modules/endpoint.py,sha256=XySDt3pk66vxOZ0egUfz4bY8bEk3BjOXkv-L0OIJ3sc,12083
|
|
@@ -68,7 +68,7 @@ tinybird/tb/modules/datafile/format_common.py,sha256=1V1ZQuphp8EH2hT-IfZQEgz_0b9
|
|
|
68
68
|
tinybird/tb/modules/datafile/format_datasource.py,sha256=iWbeXruxC7OBmjNgurWt6ymcJlYzxfKwkGnhpcoSKEo,6190
|
|
69
69
|
tinybird/tb/modules/datafile/format_pipe.py,sha256=DUGdmlzI146YDqTwW-7kSIOXocz4AH-md_LFGUm9hrc,7436
|
|
70
70
|
tinybird/tb/modules/datafile/parse_datasource.py,sha256=jposrAHVebgDTzlr2rzSooj05NX7jJQc8P3xvHdUiek,1847
|
|
71
|
-
tinybird/tb/modules/datafile/parse_pipe.py,sha256=
|
|
71
|
+
tinybird/tb/modules/datafile/parse_pipe.py,sha256=fl-4gBZqdARF7ZU2lQX_EAkLzgsS9JciVjqzxPU9gLw,3902
|
|
72
72
|
tinybird/tb/modules/datafile/pipe_checker.py,sha256=xv7vyjN5dPc2hcw9RnLBq2VkR4nte-8bhYDT10qceQY,24620
|
|
73
73
|
tinybird/tb/modules/datafile/playground.py,sha256=f2b3QCF_En116XV4QzEoriHroatQKHjQ8v0GoJn8bFY,56639
|
|
74
74
|
tinybird/tb/modules/datafile/pull.py,sha256=CP6-TVZ9ErrEOAFajn9HSEdq-GgYnOPHEIUAuReQGaM,4508
|
|
@@ -80,8 +80,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
|
|
|
80
80
|
tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
|
|
81
81
|
tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
82
82
|
tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
|
|
83
|
-
tinybird-0.0.1.
|
|
84
|
-
tinybird-0.0.1.
|
|
85
|
-
tinybird-0.0.1.
|
|
86
|
-
tinybird-0.0.1.
|
|
87
|
-
tinybird-0.0.1.
|
|
83
|
+
tinybird-0.0.1.dev208.dist-info/METADATA,sha256=zt7NMb69BvySkcoOm8qb3vmJ1WnncN41XI-uimHm4HU,1682
|
|
84
|
+
tinybird-0.0.1.dev208.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
85
|
+
tinybird-0.0.1.dev208.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
86
|
+
tinybird-0.0.1.dev208.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
87
|
+
tinybird-0.0.1.dev208.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|