tinybird-cli 2.1.1.dev8__tar.gz → 2.2.1.dev1__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 (46) hide show
  1. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/PKG-INFO +8 -30
  2. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/__cli__.py +2 -2
  3. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/branch.py +1 -0
  4. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/common.py +1 -1
  5. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird_cli.egg-info/PKG-INFO +8 -30
  6. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/setup.cfg +0 -0
  7. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/ch_utils/constants.py +0 -0
  8. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/ch_utils/engine.py +0 -0
  9. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/check_pypi.py +0 -0
  10. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/client.py +0 -0
  11. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/config.py +0 -0
  12. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/connector_settings.py +0 -0
  13. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/connectors.py +0 -0
  14. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/context.py +0 -0
  15. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/datafile.py +0 -0
  16. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/datatypes.py +0 -0
  17. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/feedback_manager.py +0 -0
  18. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/sql.py +0 -0
  19. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/sql_template.py +0 -0
  20. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/sql_template_fmt.py +0 -0
  21. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/sql_toolset.py +0 -0
  22. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/syncasync.py +0 -0
  23. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli.py +0 -0
  24. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/auth.py +0 -0
  25. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/cicd.py +0 -0
  26. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/cli.py +0 -0
  27. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/config.py +0 -0
  28. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/connection.py +0 -0
  29. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/datasource.py +0 -0
  30. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/exceptions.py +0 -0
  31. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/job.py +0 -0
  32. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/pipe.py +0 -0
  33. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/regions.py +0 -0
  34. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/telemetry.py +0 -0
  35. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/test.py +0 -0
  36. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
  37. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
  38. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/token.py +0 -0
  39. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/workspace.py +0 -0
  40. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  41. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird/tornado_template.py +0 -0
  42. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird_cli.egg-info/SOURCES.txt +0 -0
  43. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird_cli.egg-info/dependency_links.txt +0 -0
  44. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird_cli.egg-info/entry_points.txt +0 -0
  45. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/tinybird_cli.egg-info/requires.txt +0 -0
  46. {tinybird-cli-2.1.1.dev8 → tinybird-cli-2.2.1.dev1}/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: 2.1.1.dev8
3
+ Version: 2.2.1.dev1
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://docs.tinybird.co/cli.html
6
6
  Author: Tinybird
@@ -19,40 +19,18 @@ Changelog
19
19
 
20
20
  ---------
21
21
 
22
- 2.1.1.dev8
22
+ 2.2.0
23
23
  ************
24
24
 
25
+ - `Changed` `tb init --git` update to get ready to use cicd with releases
25
26
  - `Changed` Use `tb branch` instead of `tb env`. `tb env` is still usable but deprecated and will be removed in the next version.
26
-
27
- 2.1.1.dev7
28
- ************
29
-
30
- - `Fixed` Be smarter in `tb fmt` when detecting if `.incl` file contains Data Source or Pipe definitions.
31
-
32
- 2.1.1.dev6
33
- ************
34
-
35
- - `Fixed` `tb fmt` adds empty quoted strings in .datasource connection section.
36
-
37
- 2.1.1.dev5
38
- ************
39
-
40
- - `Fixed` `tb check` doesn't exit with error when checking a `.incl` file.
41
-
42
- 2.1.1.dev4
43
- ************
44
-
27
+ - `Fixed` command `tb pipe regression-tests` to handle the edge case when all the requests to the endpoint that we want to check fails as the value returned is no what we expect.
45
28
  - `Fixed` `tb deploy` fixes to work with `--dry-run` and push changes of new and modified files
29
+ - `Fixed` `tb check` doesn't exit with error when checking a `.incl` file.
30
+ - `Fixed` `tb fmt` adds empty quoted strings in .datasource connection section.
31
+ - `Fixed` Be smarter in `tb fmt` when detecting if `.incl` file contains Data Source or Pipe definitions.
32
+ - `Fixed` `tb env use` when using a token directly, without a `.tinyb` file.
46
33
 
47
- 2.1.1.dev3
48
- ************
49
-
50
- - `Changed` `tb init --git` update to get ready to use cicd with releases
51
-
52
- 2.1.1.dev2
53
- ************
54
-
55
- - `Fixed` command `tb pipe regression-tests` to handle the edge case when all the requests to the endpoint that we want to check fails as the value returned is no what we expect.
56
34
 
57
35
  2.1.0
58
36
  ************
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
4
4
  __url__ = 'https://docs.tinybird.co/cli.html'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '2.1.1.dev8'
8
- __revision__ = '96a93ca'
7
+ __version__ = '2.2.1.dev1'
8
+ __revision__ = '63dd034'
@@ -310,6 +310,7 @@ async def branch_use(branch_name_or_id: str) -> None:
310
310
  """Switch to another Branch (requires an admin token associated with a user). Use 'tb branch ls' to list the Branches you can access"""
311
311
 
312
312
  config = CLIConfig.get_project_config()
313
+ _ = await try_update_config_with_remote(config, only_if_needed=True)
313
314
 
314
315
  if branch_name_or_id == MAIN_BRANCH:
315
316
  current_main_workspace = await get_current_main_workspace_temp(config)
@@ -1914,7 +1914,7 @@ async def get_current_main_workspace_temp(config: CLIConfig) -> Optional[Dict[st
1914
1914
  Please, don't work with the previous version any more and make any changes here
1915
1915
  """
1916
1916
  current_workspace = await config.get_client().user_workspaces_and_branches()
1917
- return _get_current_main_workspace_common(current_workspace, config["id"])
1917
+ return _get_current_main_workspace_common(current_workspace, config.get("id", current_workspace["id"]))
1918
1918
 
1919
1919
 
1920
1920
  async def get_current_main_workspace(client: TinyB, config: Dict[str, Any]) -> Optional[Dict[str, Any]]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird-cli
3
- Version: 2.1.1.dev8
3
+ Version: 2.2.1.dev1
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://docs.tinybird.co/cli.html
6
6
  Author: Tinybird
@@ -19,40 +19,18 @@ Changelog
19
19
 
20
20
  ---------
21
21
 
22
- 2.1.1.dev8
22
+ 2.2.0
23
23
  ************
24
24
 
25
+ - `Changed` `tb init --git` update to get ready to use cicd with releases
25
26
  - `Changed` Use `tb branch` instead of `tb env`. `tb env` is still usable but deprecated and will be removed in the next version.
26
-
27
- 2.1.1.dev7
28
- ************
29
-
30
- - `Fixed` Be smarter in `tb fmt` when detecting if `.incl` file contains Data Source or Pipe definitions.
31
-
32
- 2.1.1.dev6
33
- ************
34
-
35
- - `Fixed` `tb fmt` adds empty quoted strings in .datasource connection section.
36
-
37
- 2.1.1.dev5
38
- ************
39
-
40
- - `Fixed` `tb check` doesn't exit with error when checking a `.incl` file.
41
-
42
- 2.1.1.dev4
43
- ************
44
-
27
+ - `Fixed` command `tb pipe regression-tests` to handle the edge case when all the requests to the endpoint that we want to check fails as the value returned is no what we expect.
45
28
  - `Fixed` `tb deploy` fixes to work with `--dry-run` and push changes of new and modified files
29
+ - `Fixed` `tb check` doesn't exit with error when checking a `.incl` file.
30
+ - `Fixed` `tb fmt` adds empty quoted strings in .datasource connection section.
31
+ - `Fixed` Be smarter in `tb fmt` when detecting if `.incl` file contains Data Source or Pipe definitions.
32
+ - `Fixed` `tb env use` when using a token directly, without a `.tinyb` file.
46
33
 
47
- 2.1.1.dev3
48
- ************
49
-
50
- - `Changed` `tb init --git` update to get ready to use cicd with releases
51
-
52
- 2.1.1.dev2
53
- ************
54
-
55
- - `Fixed` command `tb pipe regression-tests` to handle the edge case when all the requests to the endpoint that we want to check fails as the value returned is no what we expect.
56
34
 
57
35
  2.1.0
58
36
  ************