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 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.dev187'
8
- __revision__ = 'c0fce61'
7
+ __version__ = '0.0.1.dev189'
8
+ __revision__ = 'd55a4dc'
@@ -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
  ]
@@ -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"Trying to connect to Docker-compatible runtime at {docker_host}\n\n"
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
  )
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev187
3
+ Version: 0.0.1.dev189
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -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=Eyh8kC3usUkNjLKZO9IlqfWPuBADLrW3yMwNUXqROS4,247
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=rRL5XKBdadMc9uVDEUt0GXm0h09Y6XXw199rdmRI1qo,19127
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=t6DDLJ1YdY3SJiTPbEG7CRblSLkbuqwzauQ9y65FWtY,27147
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=SUaGWH9TLDFFF9uCw4y7UW4NsKgnXG8uxTcxz1dbkCM,14230
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=_UWO79zhh2H0UA9F0wpKXYaylFPdjhGNmNAjIOSBvT8,3425
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.dev187.dist-info/METADATA,sha256=AOqXzg1cY5YL4r0AGt1Ux8WNrhAN3bwfXbo4GbP3Feg,1608
84
- tinybird-0.0.1.dev187.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
- tinybird-0.0.1.dev187.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
- tinybird-0.0.1.dev187.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
- tinybird-0.0.1.dev187.dist-info/RECORD,,
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,,