tinybird-cli 5.12.1.dev0__tar.gz → 5.13.1.dev0__tar.gz

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.
Files changed (48) hide show
  1. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/PKG-INFO +9 -1
  2. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/__cli__.py +2 -2
  3. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/datafile.py +2 -5
  4. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/branch.py +20 -6
  5. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/common.py +4 -0
  6. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird_cli.egg-info/PKG-INFO +9 -1
  7. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird_cli.egg-info/requires.txt +2 -2
  8. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/setup.cfg +0 -0
  9. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/ch_utils/constants.py +0 -0
  10. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/ch_utils/engine.py +0 -0
  11. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/check_pypi.py +0 -0
  12. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/client.py +0 -0
  13. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/config.py +0 -0
  14. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/connectors.py +0 -0
  15. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/context.py +0 -0
  16. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/datatypes.py +0 -0
  17. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/feedback_manager.py +0 -0
  18. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/git_settings.py +0 -0
  19. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/sql.py +0 -0
  20. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/sql_template.py +0 -0
  21. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/sql_template_fmt.py +0 -0
  22. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/sql_toolset.py +0 -0
  23. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/syncasync.py +0 -0
  24. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli.py +0 -0
  25. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/auth.py +0 -0
  26. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/cicd.py +0 -0
  27. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/cli.py +0 -0
  28. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/config.py +0 -0
  29. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/connection.py +0 -0
  30. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/datasource.py +0 -0
  31. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/exceptions.py +0 -0
  32. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/fmt.py +0 -0
  33. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/job.py +0 -0
  34. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/pipe.py +0 -0
  35. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/regions.py +0 -0
  36. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/tag.py +0 -0
  37. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/telemetry.py +0 -0
  38. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/test.py +0 -0
  39. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
  40. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
  41. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/token.py +0 -0
  42. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/workspace.py +0 -0
  43. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  44. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird/tornado_template.py +0 -0
  45. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird_cli.egg-info/SOURCES.txt +0 -0
  46. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird_cli.egg-info/dependency_links.txt +0 -0
  47. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird_cli.egg-info/entry_points.txt +0 -0
  48. {tinybird-cli-5.12.1.dev0 → tinybird-cli-5.13.1.dev0}/tinybird_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird-cli
3
- Version: 5.12.1.dev0
3
+ Version: 5.13.1.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -18,6 +18,14 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
18
18
  Changelog
19
19
  ----------
20
20
 
21
+ 5.13.0
22
+ ***********
23
+
24
+ - `Addded` additional metadata to `tb branch ls` command
25
+ - `Changed` dependencies to be less restrictive:
26
+ - cryptography: from ``>=41.0.0`` to ``~=41.0.0``
27
+ - snowflake-connector-python: from ``==3.12.3`` to ``~=3.12.3``
28
+
21
29
  5.12.0
22
30
  ***********
23
31
 
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
4
4
  __url__ = 'https://www.tinybird.co/docs/cli/introduction.html'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '5.12.1.dev0'
8
- __revision__ = 'c411298'
7
+ __version__ = '5.13.1.dev0'
8
+ __revision__ = '086d6df'
@@ -252,7 +252,7 @@ class ExportReplacements:
252
252
  continue
253
253
  if datafile_key == "export_schedule" and node.get(datafile_key, None) == ON_DEMAND:
254
254
  node[datafile_key] = ""
255
- params[export_key] = node[datafile_key] if datafile_key in node else default_value
255
+ params[export_key] = node.get(datafile_key, default_value)
256
256
  return params
257
257
 
258
258
  @staticmethod
@@ -513,10 +513,7 @@ class CLIGitRelease:
513
513
 
514
514
  # 'D' deleted are ignored
515
515
  return {
516
- Path(filename).resolve().stem: changed[Path(filename).resolve().stem]
517
- if Path(filename).resolve().stem in changed
518
- else None
519
- for filename in filenames
516
+ Path(filename).resolve().stem: changed.get(Path(filename).resolve().stem, None) for filename in filenames
520
517
  }
521
518
 
522
519
  def get_deleted_from_diffs(self, diffs: List[Diff]) -> List[str]:
@@ -24,6 +24,7 @@ from tinybird.tb_cli_modules.common import (
24
24
  get_current_workspace,
25
25
  get_current_workspace_branches,
26
26
  get_oldest_rollback,
27
+ get_workspace_member_email,
27
28
  getenv_bool,
28
29
  print_branch_regression_tests_summary,
29
30
  print_current_branch,
@@ -289,18 +290,31 @@ async def branch_ls(sort: bool) -> None:
289
290
  if current_main_workspace["id"] != config["id"]:
290
291
  client = config.get_client(token=current_main_workspace["token"])
291
292
 
293
+ current_main_owner_email = get_workspace_member_email(current_main_workspace, current_main_workspace["owner"])
294
+
292
295
  response = await client.branches()
293
296
 
294
- columns = ["name", "id", "current"]
295
- table: List[Tuple[str, str, bool]] = [
296
- (MAIN_BRANCH, current_main_workspace["id"], config["id"] == current_main_workspace["id"])
297
+ columns = ["name", "id", "created_at", "owner", "current"]
298
+
299
+ table: List[Tuple[str, str, str, str, bool]] = [
300
+ (
301
+ MAIN_BRANCH,
302
+ current_main_workspace["id"],
303
+ current_main_workspace["created_at"],
304
+ current_main_owner_email,
305
+ config["id"] == current_main_workspace["id"],
306
+ )
297
307
  ]
298
308
 
299
309
  for branch in response["environments"]:
300
- table.append((branch["name"], branch["id"], config["id"] == branch["id"]))
310
+ branch_owner_email = get_workspace_member_email(branch, branch["owner"])
311
+
312
+ table.append(
313
+ (branch["name"], branch["id"], branch["created_at"], branch_owner_email, config["id"] == branch["id"])
314
+ )
301
315
 
302
- current_branch = [row for row in table if row[2]]
303
- other_branches = [row for row in table if not row[2]]
316
+ current_branch = [row for row in table if row[4]]
317
+ other_branches = [row for row in table if not row[4]]
304
318
 
305
319
  if sort:
306
320
  other_branches.sort(key=lambda x: x[0])
@@ -177,6 +177,10 @@ async def get_current_workspace(config: CLIConfig) -> Optional[Dict[str, Any]]:
177
177
  return _get_current_workspace_common(workspaces, config["id"])
178
178
 
179
179
 
180
+ def get_workspace_member_email(workspace, member_id) -> str:
181
+ return next((member["email"] for member in workspace["members"] if member["id"] == member_id), "-")
182
+
183
+
180
184
  def _get_current_workspace_common(
181
185
  workspaces: List[Dict[str, Any]], current_workspace_id: str
182
186
  ) -> Optional[Dict[str, Any]]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird-cli
3
- Version: 5.12.1.dev0
3
+ Version: 5.13.1.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -18,6 +18,14 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
18
18
  Changelog
19
19
  ----------
20
20
 
21
+ 5.13.0
22
+ ***********
23
+
24
+ - `Addded` additional metadata to `tb branch ls` command
25
+ - `Changed` dependencies to be less restrictive:
26
+ - cryptography: from ``>=41.0.0`` to ``~=41.0.0``
27
+ - snowflake-connector-python: from ``==3.12.3`` to ``~=3.12.3``
28
+
21
29
  5.12.0
22
30
  ***********
23
31
 
@@ -2,7 +2,7 @@ aiofiles==24.1.0
2
2
  click<8.2,>=8.1.6
3
3
  clickhouse-toolset==0.33.dev0
4
4
  colorama==0.4.6
5
- cryptography>=41.0.0
5
+ cryptography~=41.0.0
6
6
  croniter==1.3.8
7
7
  GitPython~=3.1.32
8
8
  humanfriendly~=8.2
@@ -27,7 +27,7 @@ google-cloud-storage==2.4.0
27
27
  google-cloud-bigquery==2.11.0
28
28
 
29
29
  [snowflake]
30
- snowflake-connector-python==3.12.3
30
+ snowflake-connector-python~=3.12.3
31
31
  gsutil==4.58
32
32
  google-api-python-client==2.0.2
33
33
  google-auth==1.27.1