tinybird 0.0.1.dev187__py3-none-any.whl → 0.0.1.dev189__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/build.py +9 -0
- tinybird/tb/modules/deployment.py +8 -0
- tinybird/tb/modules/local.py +5 -1
- tinybird/tb/modules/project.py +11 -0
- {tinybird-0.0.1.dev187.dist-info → tinybird-0.0.1.dev189.dist-info}/METADATA +1 -1
- {tinybird-0.0.1.dev187.dist-info → tinybird-0.0.1.dev189.dist-info}/RECORD +10 -10
- {tinybird-0.0.1.dev187.dist-info → tinybird-0.0.1.dev189.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev187.dist-info → tinybird-0.0.1.dev189.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev187.dist-info → tinybird-0.0.1.dev189.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.dev189'
|
|
8
|
+
__revision__ = 'd55a4dc'
|
tinybird/tb/modules/build.py
CHANGED
|
@@ -38,6 +38,15 @@ def build(ctx: click.Context, watch: bool) -> None:
|
|
|
38
38
|
"""
|
|
39
39
|
project: Project = ctx.ensure_object(dict)["project"]
|
|
40
40
|
tb_client: TinyB = ctx.ensure_object(dict)["client"]
|
|
41
|
+
|
|
42
|
+
if project.has_deeper_level():
|
|
43
|
+
click.echo(
|
|
44
|
+
FeedbackManager.warning(
|
|
45
|
+
message="Default max_depth is 2, but project has deeper level. "
|
|
46
|
+
"You can change max_depth by running `tb --max-depth <depth> <cmd>`"
|
|
47
|
+
)
|
|
48
|
+
)
|
|
49
|
+
|
|
41
50
|
click.echo(FeedbackManager.highlight_building_project())
|
|
42
51
|
process(project=project, tb_client=tb_client, watch=False)
|
|
43
52
|
if watch:
|
|
@@ -521,6 +521,14 @@ def create_deployment(
|
|
|
521
521
|
TINYBIRD_API_URL = f"{client.host}/v1/deploy"
|
|
522
522
|
TINYBIRD_API_KEY = client.token
|
|
523
523
|
|
|
524
|
+
if project.has_deeper_level():
|
|
525
|
+
click.echo(
|
|
526
|
+
FeedbackManager.warning(
|
|
527
|
+
message="\nDefault max_depth is 2, but project has deeper level. "
|
|
528
|
+
"You can change max_depth by running `tb --max-depth <depth> <cmd>`"
|
|
529
|
+
)
|
|
530
|
+
)
|
|
531
|
+
|
|
524
532
|
files = [
|
|
525
533
|
("context://", ("cli-version", "1.0.0", "text/plain")),
|
|
526
534
|
]
|
tinybird/tb/modules/local.py
CHANGED
|
@@ -190,11 +190,15 @@ def get_docker_client() -> DockerClient:
|
|
|
190
190
|
raise e
|
|
191
191
|
return client
|
|
192
192
|
except Exception:
|
|
193
|
+
docker_location_message = ""
|
|
194
|
+
if docker_host:
|
|
195
|
+
docker_location_message = f"Trying to connect to Docker-compatible runtime at {docker_host}"
|
|
196
|
+
|
|
193
197
|
raise CLILocalException(
|
|
194
198
|
FeedbackManager.error(
|
|
195
199
|
message=(
|
|
196
200
|
f"No container runtime is running. Make sure a Docker-compatible runtime is installed and running. "
|
|
197
|
-
f"
|
|
201
|
+
f"{docker_location_message}\n\n"
|
|
198
202
|
"If you're using a custom location, please provide it using the DOCKER_HOST environment variable."
|
|
199
203
|
)
|
|
200
204
|
)
|
tinybird/tb/modules/project.py
CHANGED
|
@@ -30,6 +30,17 @@ class Project:
|
|
|
30
30
|
project_files.extend(glob.glob(f"{self.path}{'/*' * level}/*.{extension}", recursive=True))
|
|
31
31
|
return project_files
|
|
32
32
|
|
|
33
|
+
def has_deeper_level(self) -> bool:
|
|
34
|
+
"""Check if there are folders with depth greater than max_depth in project path.
|
|
35
|
+
|
|
36
|
+
Returns:
|
|
37
|
+
bool: True if there are folders deeper than max_depth, False otherwise
|
|
38
|
+
"""
|
|
39
|
+
for obj in glob.glob(f"{self.path}{'/*' * (self.max_depth - 1)}/*", recursive=False):
|
|
40
|
+
if Path(obj).is_dir():
|
|
41
|
+
return True
|
|
42
|
+
return False
|
|
43
|
+
|
|
33
44
|
def get_project_files(self) -> List[str]:
|
|
34
45
|
project_files: List[str] = []
|
|
35
46
|
for extension in self.extensions:
|
|
@@ -12,12 +12,12 @@ 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=Jw96cYl5Uk5poOJYvRJJfYGQbYLgCXUaCwjiBxNu3Zg,247
|
|
16
16
|
tinybird/tb/check_pypi.py,sha256=rW4QmDRbtgKdUUwJCnBkVjmTjZSZGN-XgZhx7vMkC0w,1009
|
|
17
17
|
tinybird/tb/cli.py,sha256=u3eGOhX0MHkuT6tiwaZ0_3twqLmqKXDAOxF7yV_Nn9Q,1075
|
|
18
18
|
tinybird/tb/client.py,sha256=59GH0IoYSV_KUG0eEbDDYHSWH4OlkVnSRFXE3mYAM0s,56571
|
|
19
19
|
tinybird/tb/config.py,sha256=jT9xndpeCY_g0HdB5qE2EquC0TFRRnkPnQFWZWd04jo,3998
|
|
20
|
-
tinybird/tb/modules/build.py,sha256=
|
|
20
|
+
tinybird/tb/modules/build.py,sha256=KvF0s8hGgY_rZs7jSqYiauCk3MAlCmW_gQtnsJDJWBk,19411
|
|
21
21
|
tinybird/tb/modules/cicd.py,sha256=Njb6eZOHHbUkoJJx6KoixO9PsfA_T-3Ybkya9-50Ca8,7328
|
|
22
22
|
tinybird/tb/modules/cli.py,sha256=dXZs-MuqYPvxStVj7aLg36LwXtEB8NzTobDmHV9nzZI,15508
|
|
23
23
|
tinybird/tb/modules/common.py,sha256=DYCjpj0iBaCDZ8BJ0MNG_6m6NyFMCrpQShIajHKLIfM,83373
|
|
@@ -26,7 +26,7 @@ tinybird/tb/modules/connection.py,sha256=7oOR7x4PhBcm1ETFFCH2YJ_3oeGXjAbmx1cnZX9
|
|
|
26
26
|
tinybird/tb/modules/copy.py,sha256=2Mm4FWKehOG7CoOhiF1m9UZJgJn0W1_cMolqju8ONYg,5805
|
|
27
27
|
tinybird/tb/modules/create.py,sha256=sfIOcN3tujt7O1r9RNWqhhI-gQTDnO6zEgMwZHH2D8s,20201
|
|
28
28
|
tinybird/tb/modules/datasource.py,sha256=0_6Cn07p5GoNBBGdu88pSeLvTWojln1-k23FsS8jTDs,17801
|
|
29
|
-
tinybird/tb/modules/deployment.py,sha256=
|
|
29
|
+
tinybird/tb/modules/deployment.py,sha256=OGJdriqywhCtsG7rKLFtVSLjoEbbva1Nb29-jQBk3wM,27432
|
|
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
|
|
@@ -37,7 +37,7 @@ tinybird/tb/modules/infra.py,sha256=fve30Gj3mG9zbquGxS2e4ipcOYOxviWQCpNFfEzJN_Q,
|
|
|
37
37
|
tinybird/tb/modules/job.py,sha256=AsUCRNzy7HG5oJ4fyk9NpIm5NtNJgBZSy8MtJdXBe5A,3167
|
|
38
38
|
tinybird/tb/modules/llm.py,sha256=KfsCYmKeW1VQz0iDZhGKCRkQv_Y3kTHh6JuxvofOguE,1076
|
|
39
39
|
tinybird/tb/modules/llm_utils.py,sha256=nS9r4FAElJw8yXtmdYrx-rtI2zXR8qXfi1QqUDCfxvg,3469
|
|
40
|
-
tinybird/tb/modules/local.py,sha256=
|
|
40
|
+
tinybird/tb/modules/local.py,sha256=9riA3PrCTUXWeDTWMhd14M2-9pFHI6fedpjY4m_lRpU,14359
|
|
41
41
|
tinybird/tb/modules/local_common.py,sha256=msAZDNPPVenNyL9Dqfb0Z5uFC_1O809xdAi7j1iKmJA,17066
|
|
42
42
|
tinybird/tb/modules/login.py,sha256=7Wax0hzuUpGPOxTz7ef1w3olSy_4cRrHycKbh9hofJI,8344
|
|
43
43
|
tinybird/tb/modules/logout.py,sha256=sniI4JNxpTrVeRCp0oGJuQ3yRerG4hH5uz6oBmjv724,1009
|
|
@@ -45,7 +45,7 @@ tinybird/tb/modules/materialization.py,sha256=QJX5kCPhhm6IXBO1JsalVfbQdypCe_eOUD
|
|
|
45
45
|
tinybird/tb/modules/mock.py,sha256=IyHweMUM6bUH8IhyiX2tTMpdVpTFUeAJ41lZ5P42-HQ,5303
|
|
46
46
|
tinybird/tb/modules/open.py,sha256=OuctINN77oexpSjth9uoIZPCelKO4Li-yyVxeSnk1io,1371
|
|
47
47
|
tinybird/tb/modules/pipe.py,sha256=AQKEDagO6e3psPVjJkS_MDbn8aK-apAiLp26k7jgAV0,2432
|
|
48
|
-
tinybird/tb/modules/project.py,sha256=
|
|
48
|
+
tinybird/tb/modules/project.py,sha256=wOL0vmkbM6Jhxbv0zYwt3JjAoRQDvkbbus01bpzfhA0,3846
|
|
49
49
|
tinybird/tb/modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
50
50
|
tinybird/tb/modules/secret.py,sha256=WsqzxxLh9W_jkuHL2JofMXdIJy0lT5WEI-7bQSIDgAc,2921
|
|
51
51
|
tinybird/tb/modules/shell.py,sha256=Zd_4Ak_5tKVX-cw6B4ag36xZeEGHeh-jZpAsIXkoMoE,14116
|
|
@@ -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.dev189.dist-info/METADATA,sha256=fz7av4cjpbqq8H_bP6CsG5NpL3Dg9iBRFHEG1U7luSs,1608
|
|
84
|
+
tinybird-0.0.1.dev189.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
85
|
+
tinybird-0.0.1.dev189.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
86
|
+
tinybird-0.0.1.dev189.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
87
|
+
tinybird-0.0.1.dev189.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|