tinybird 0.0.1.dev81__py3-none-any.whl → 0.0.1.dev82__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/cli/introduction.html'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '0.0.1.dev81'
8
- __revision__ = 'd577324'
7
+ __version__ = '0.0.1.dev82'
8
+ __revision__ = '6ef6586'
@@ -108,7 +108,8 @@ async def cli(
108
108
 
109
109
  config = await get_config(host, token, config_file=config_temp._path)
110
110
  client = _get_tb_client(config.get("token", None), config["host"])
111
-
111
+ project = Project(folder=config.get("cwd", os.getcwd()))
112
+ config["path"] = str(project.path)
112
113
  # If they have passed a token or host as paramter and it's different that record in .tinyb, refresh the workspace id
113
114
  if token or host:
114
115
  try:
@@ -131,7 +132,6 @@ async def cli(
131
132
  if client:
132
133
  ctx.ensure_object(dict)["client"] = client
133
134
 
134
- project = Project(folder=config.get("cwd", os.getcwd()))
135
135
  ctx.ensure_object(dict)["project"] = project
136
136
  ctx.ensure_object(dict)["env"] = get_target_env(cloud, build)
137
137
 
@@ -399,8 +399,8 @@ async def create_ctx_client(ctx: Context, config: Dict[str, Any], cloud: bool, b
399
399
  return None
400
400
 
401
401
  commands_always_cloud = ["pull", "playground"]
402
- commands_always_build = ["build", "test", "dev"]
403
- commands_always_local = ["create"]
402
+ commands_always_build = ["build", "test", "dev", "create"]
403
+ commands_always_local: List[str] = []
404
404
  if (
405
405
  (cloud or command in commands_always_cloud)
406
406
  and command not in commands_always_local
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev81
3
+ Version: 0.0.1.dev82
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -15,12 +15,12 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
15
15
  tinybird/tornado_template.py,sha256=KmW_VD7y-NVqrc8YZKwIaxoJB0XpCcB2izdmxmtmApM,41944
16
16
  tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
17
17
  tinybird/ch_utils/engine.py,sha256=AUAww-KjGOZg9h0IBlKA3FeacJYB4rOtqcTGJhFM-g8,40392
18
- tinybird/tb/__cli__.py,sha256=dU1Kn0U90zqjd2kzngJFUui0LkGht8JpNvoS74D6vfU,251
18
+ tinybird/tb/__cli__.py,sha256=ezu8vf-QOzUbTt44Gb65yoYa0VsoKoBZ5vj7XkSjB6Y,251
19
19
  tinybird/tb/cli.py,sha256=KpJ_-V6xVEzcdPRPnHhEdh2EgRPCyhZnfJVqeqMsftI,964
20
20
  tinybird/tb/modules/auth.py,sha256=L1IatO2arRSzys3t8px8xVt8uPWUL5EVD0sFzAV_uVU,9022
21
21
  tinybird/tb/modules/build.py,sha256=46ZTxubughaq8QDV6yq9thatSVVY4yNqyzbfxRBcgDA,10446
22
22
  tinybird/tb/modules/cicd.py,sha256=T0lb9u_bDdTUVe8TwNNb1qQ5KnSPHMVjqPfKF4BBNBw,5347
23
- tinybird/tb/modules/cli.py,sha256=7orwCSigoOpE2kPIjKm9xS-YmCsyn9stUxlys6ZGAcU,16311
23
+ tinybird/tb/modules/cli.py,sha256=ldy1_sxQx6hwJYsMtJm_epHljIrfHXI6E2PgoDKZpVc,16362
24
24
  tinybird/tb/modules/common.py,sha256=f5yKjb1dgUzR-SrC4UHnpHXYIu6INcTHwNO96jW8A9w,73201
25
25
  tinybird/tb/modules/config.py,sha256=wIsoIf2yMCT2JQ5f6nZr-WzB7Uuah9EqXf6Glxe_p-Q,11353
26
26
  tinybird/tb/modules/copy.py,sha256=MAVqKip8_QhOYq99U_XuqSO6hCLJEh5sFtbhcXtI3SI,5802
@@ -76,8 +76,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
76
76
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
77
77
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
78
78
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
79
- tinybird-0.0.1.dev81.dist-info/METADATA,sha256=CKNK7oNqsTpA0-BuRZ9KmXPRLmYqofMTsJICygWMqUQ,2585
80
- tinybird-0.0.1.dev81.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
81
- tinybird-0.0.1.dev81.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
82
- tinybird-0.0.1.dev81.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
83
- tinybird-0.0.1.dev81.dist-info/RECORD,,
79
+ tinybird-0.0.1.dev82.dist-info/METADATA,sha256=bcfHRBRtdZrTNN6KIzNtv3-Vrsj5wiHl_bLKfZByU88,2585
80
+ tinybird-0.0.1.dev82.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
81
+ tinybird-0.0.1.dev82.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
82
+ tinybird-0.0.1.dev82.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
83
+ tinybird-0.0.1.dev82.dist-info/RECORD,,