tinybird 0.0.1.dev11__py3-none-any.whl → 0.0.1.dev12__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.

@@ -80,19 +80,12 @@ class FileChangeHandler(FileSystemEventHandler):
80
80
  except Exception as e:
81
81
  click.echo(FeedbackManager.error_exception(error=e))
82
82
 
83
- def on_created(self, event: Any) -> None:
84
- if not event.is_directory and any(event.src_path.endswith(ext) for ext in [".datasource", ".pipe", ".ndjson"]):
85
- click.echo(FeedbackManager.highlight(message=f"\n\n⟲ Changes detected in {event.src_path}\n"))
86
- try:
87
- self.process([event.src_path])
88
- except Exception as e:
89
- click.echo(FeedbackManager.error_exception(error=e))
90
-
91
83
 
92
84
  def watch_files(
93
85
  filenames: List[str],
94
86
  process: Union[Callable[[List[str]], None], Callable[[List[str]], Awaitable[None]]],
95
87
  shell: BuildShell,
88
+ folder: str,
96
89
  ) -> None:
97
90
  # Handle both sync and async process functions
98
91
  async def process_wrapper(files: List[str]) -> None:
@@ -113,10 +106,7 @@ def watch_files(
113
106
  event_handler = FileChangeHandler(filenames, lambda f: asyncio.run(process_wrapper(f)))
114
107
  observer = Observer()
115
108
 
116
- # Watch each provided path
117
- for filename in filenames:
118
- path = filename if os.path.isdir(filename) else os.path.dirname(filename)
119
- observer.schedule(event_handler, path=path, recursive=True)
109
+ observer.schedule(event_handler, path=folder, recursive=True)
120
110
 
121
111
  observer.start()
122
112
 
@@ -238,7 +228,7 @@ async def build(
238
228
  if watch:
239
229
  shell = BuildShell(folder=folder)
240
230
  click.echo(FeedbackManager.highlight(message="◎ Watching for changes..."))
241
- watcher_thread = threading.Thread(target=watch_files, args=(filenames, process, shell), daemon=True)
231
+ watcher_thread = threading.Thread(target=watch_files, args=(filenames, process, shell, folder), daemon=True)
242
232
  watcher_thread.start()
243
233
  shell.cmdloop()
244
234
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird
3
- Version: 0.0.1.dev11
3
+ Version: 0.0.1.dev12
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -18,7 +18,7 @@ tinybird/ch_utils/engine.py,sha256=OXkBhlzGjZotjD0vaT-rFIbSGV4tpiHxE8qO_ip0SyQ,4
18
18
  tinybird/tb/cli.py,sha256=6Lu3wsCNepAxjJCWy4c6RhVPArBtm8TlUcSxX--TsBo,783
19
19
  tinybird/tb/modules/auth.py,sha256=hynZ-Temot8YBsySUWKSFzZlYadtFPxG3o6lCSu1n6E,9018
20
20
  tinybird/tb/modules/branch.py,sha256=R1tTUBGyI0p_dt2IAWbuyNOvemhjCIPwYxEmOxL3zOg,38468
21
- tinybird/tb/modules/build.py,sha256=aqVmey7jkb-ZDRaxl5h66u3g9bmI46_j-u3hXEPPVho,11746
21
+ tinybird/tb/modules/build.py,sha256=_kiloHo4cGdyQyp7TgCmXGHtmPP0cCL1gq1m-YcwNHQ,11181
22
22
  tinybird/tb/modules/cicd.py,sha256=KCFfywFfvGRh24GZwqrhICiTK_arHelPs_X4EB-pXIw,7331
23
23
  tinybird/tb/modules/cli.py,sha256=c-XNRu-idb2Hz43IT9ejd-QjsZy-xPQ3rnrdVIz0wxM,56568
24
24
  tinybird/tb/modules/common.py,sha256=Vubc2AIR8BfEupnT5e1Y8OYGEyvNoIcjo8th-SaUflw,80111
@@ -65,8 +65,8 @@ tinybird/tb_cli_modules/config.py,sha256=6NTgIdwf0X132A1j6G_YrdPep87ymZ9b5pABabK
65
65
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
66
66
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
67
67
  tinybird/tb_cli_modules/telemetry.py,sha256=iEGnMuCuNhvF6ln__j6X9MSTwL_0Hm-GgFHHHvhfknk,10466
68
- tinybird-0.0.1.dev11.dist-info/METADATA,sha256=F7NlFSAcq7ZbchPPjfnBdz5R-QohYQSy_MwXY3YWroI,2405
69
- tinybird-0.0.1.dev11.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
70
- tinybird-0.0.1.dev11.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
71
- tinybird-0.0.1.dev11.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
72
- tinybird-0.0.1.dev11.dist-info/RECORD,,
68
+ tinybird-0.0.1.dev12.dist-info/METADATA,sha256=ZwbPVXa3y_heMMrs0TuUbc94QtmsymDy_--2yL6kyS0,2405
69
+ tinybird-0.0.1.dev12.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
70
+ tinybird-0.0.1.dev12.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
71
+ tinybird-0.0.1.dev12.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
72
+ tinybird-0.0.1.dev12.dist-info/RECORD,,