tinybird-cli 3.9.1.dev3__py3-none-any.whl → 3.9.1.dev4__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.
tinybird/__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__ = '3.9.1.dev3'
8
- __revision__ = '0a0da3f'
7
+ __version__ = '3.9.1.dev4'
8
+ __revision__ = '6fbd338'
@@ -405,10 +405,15 @@ Ready? """
405
405
  prompt_s3_iamrole_connection_policy = prompt_message(
406
406
  """\n[2] Go to IAM > Policies. Create a new policy with the following permissions. Please, replace <bucket> with your bucket name:\n\n{access_policy}\n\n(The policy has been copied to your clipboard)\n\n"""
407
407
  )
408
+ prompt_s3_iamrole_connection_policy_not_copied = prompt_message(
409
+ """\n[2] Go to IAM > Policies. Create a new policy with the following permissions. Please, copy this policy and replace <bucket> with your bucket name:\n\n{access_policy}\n\n"""
410
+ )
408
411
  prompt_s3_iamrole_connection_role = prompt_message(
409
412
  """\n[3] Go to IAM > Roles. Create a new IAM Role using the following custom trust policy and attach the access policy you just created in the previous step:\n\n{trust_policy}\n\n(The policy has been copied to your clipboard)\n\n"""
410
413
  )
411
-
414
+ prompt_s3_iamrole_connection_role_not_copied = prompt_message(
415
+ """\n[3] Go to IAM > Roles. Create a new IAM Role using the following custom trust policy and attach the access policy you just created in the previous step:\n\n{trust_policy}\n\n"""
416
+ )
412
417
  prompt_init_git_release_pull = prompt_message(
413
418
  "❓ Download the Data Project to continue, otherwise you can't initialize Workspace with Git. Execute '{pull_command}'?"
414
419
  )
@@ -772,17 +772,35 @@ async def connection_create_s3_iamrole(
772
772
  ):
773
773
  sys.exit(1)
774
774
 
775
- pyperclip.copy(access_policy)
775
+ access_policy_copied = True
776
+ try:
777
+ pyperclip.copy(access_policy)
778
+ except Exception:
779
+ access_policy_copied = False
780
+
776
781
  if not click.confirm(
777
- FeedbackManager.prompt_s3_iamrole_connection_policy(access_policy=access_policy),
782
+ (
783
+ FeedbackManager.prompt_s3_iamrole_connection_policy(access_policy=access_policy)
784
+ if access_policy_copied
785
+ else FeedbackManager.prompt_s3_iamrole_connection_policy_not_copied(access_policy=access_policy)
786
+ ),
778
787
  show_default=False,
779
788
  prompt_suffix="Press y to continue:",
780
789
  ):
781
790
  sys.exit(1)
782
791
 
783
- pyperclip.copy(trust_policy)
792
+ trust_policy_copied = True
793
+ try:
794
+ pyperclip.copy(trust_policy)
795
+ except Exception:
796
+ trust_policy_copied = False
797
+
784
798
  if not click.confirm(
785
- FeedbackManager.prompt_s3_iamrole_connection_role(trust_policy=trust_policy),
799
+ (
800
+ FeedbackManager.prompt_s3_iamrole_connection_role(trust_policy=trust_policy)
801
+ if trust_policy_copied
802
+ else FeedbackManager.prompt_s3_iamrole_connection_role_not_copied(trust_policy=trust_policy)
803
+ ),
786
804
  show_default=False,
787
805
  prompt_suffix="Press y to continue:",
788
806
  ):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird-cli
3
- Version: 3.9.1.dev3
3
+ Version: 3.9.1.dev4
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -49,7 +49,13 @@ Tinybird CLI
49
49
  The Tinybird command-line tool allows you to use all the Tinybird functionality directly from the command line. Additionally, it includes several functions to create and manage data projects easily.
50
50
 
51
51
  Changelog
52
- ---------
52
+ ----------
53
+
54
+
55
+ 3.9.1.dev4
56
+ ************
57
+
58
+ - `Fixed` s3 iamrole connection creation will not fail when `pbcopy` dependency is not available
53
59
 
54
60
  3.9.1.dev3
55
61
  ************
@@ -1,4 +1,4 @@
1
- tinybird/__cli__.py,sha256=Q7nCgtE9SCrxl-LQwjPG4YlXNTsW20ugxSpLh5aSuUo,254
1
+ tinybird/__cli__.py,sha256=k79JQ_iAFXk9PG8us7DVlIqfa3URwgmNhI2vSZnCm1E,254
2
2
  tinybird/check_pypi.py,sha256=_4NkharLyR_ELrAdit-ftqIWvOf7jZNPt3i76frlo9g,975
3
3
  tinybird/client.py,sha256=bwcjq8RQDZvrrcKdkp0B72w2_AGMEo1rSUBvtF1udes,46735
4
4
  tinybird/config.py,sha256=E0jDwbFD1zhdijNhtF8fg6mqIyKbZ8xpNPP_3n2PFpE,2003
@@ -6,7 +6,7 @@ tinybird/connectors.py,sha256=lkpVSUmSuViEZBa4QjTK7YmPHUop0a5UFoTrSmlVq6k,15244
6
6
  tinybird/context.py,sha256=-abzcFxtsoPtUHbtsgdIaUZSUtS1At8_3gepjlO-GLQ,845
7
7
  tinybird/datafile.py,sha256=L_WeRYoy11HFERcS8VCkJDFmCXWZh1RFrmdeQKpDmdE,212510
8
8
  tinybird/datatypes.py,sha256=adYOQBTyfeBGVINIlaRex_81gTQQuqF2M9VTQpzq1H0,7060
9
- tinybird/feedback_manager.py,sha256=zfc0hibbq3lEARnogEVXNkr7Uxs3lENI7A1EQ6Axg7c,59114
9
+ tinybird/feedback_manager.py,sha256=MDgfmdoouQ7HfF-JX20796fDJv5y_sIAGqBsnqBcfaQ,59638
10
10
  tinybird/git_settings.py,sha256=vu8sWb3TAXeM8Tqy27aR0el8MnPm7kqQzTRV76xB0ro,4707
11
11
  tinybird/sql.py,sha256=hUnpfmkRkdyZV2ylIYflzxnwyv5Es7fLEv6cBc39OJA,41589
12
12
  tinybird/sql_template.py,sha256=zyayaz7jiXnPsY-dyiyW0HVXVSH6zkMVOo9ARceUei8,81435
@@ -23,7 +23,7 @@ tinybird/tb_cli_modules/cicd.py,sha256=_WrzM9fwwYE9ig41BvKjxx0Rawcv6jkXu-EXIWfKg
23
23
  tinybird/tb_cli_modules/cli.py,sha256=zwsdAi0J0zU6HlknpC_xiXua0BeAtJHjDv-E8a69zRs,64868
24
24
  tinybird/tb_cli_modules/common.py,sha256=SpwRhjrMhAWUdHDVgI3ZUbY64gf1nZWCY9H8lZPegaM,78344
25
25
  tinybird/tb_cli_modules/config.py,sha256=6NTgIdwf0X132A1j6G_YrdPep87ymZ9b5pABabKLzh4,11484
26
- tinybird/tb_cli_modules/connection.py,sha256=FoiyVmz8y7muJ8QDPQn00CK-y9wleKCOlGEIUdGzoaU,30927
26
+ tinybird/tb_cli_modules/connection.py,sha256=cbvGI4Tqbqd7YNXqKWyX5Elx1NsWwyw_jq9v3k0Ka8w,31660
27
27
  tinybird/tb_cli_modules/datasource.py,sha256=JyoiqPbfLnx37Ti2UdVJivr3rCtCVZ4lBMN_w8YelAE,31944
28
28
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
29
29
  tinybird/tb_cli_modules/job.py,sha256=AG69LPb9MbobA1awwJFZJvxqarDKfRlsBjw2V1zvYqc,2964
@@ -36,8 +36,8 @@ tinybird/tb_cli_modules/workspace.py,sha256=NDHINzW3SBo8FcWH8Bx-DCeUXQ8YUJX6FW8c
36
36
  tinybird/tb_cli_modules/workspace_members.py,sha256=3HzY43218fb35ZM81mtkwDQe7gAAf1zEFY6kIEhGvgE,8268
37
37
  tinybird/tb_cli_modules/tinyunit/tinyunit.py,sha256=0dYYmZMMJVubxSPls2e_a-fqtUYvgLfu2B0xwLfkbHw,11667
38
38
  tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py,sha256=j92za8QbXrv4eIPjKBZPn9ghR-nYQ2wZZ88MeXyMWXE,1868
39
- tinybird_cli-3.9.1.dev3.dist-info/METADATA,sha256=Vy9fEKhqb1thK971pbf5BhwvWOV_uKjvI_9H1X0PrG0,70144
40
- tinybird_cli-3.9.1.dev3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
41
- tinybird_cli-3.9.1.dev3.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
42
- tinybird_cli-3.9.1.dev3.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
43
- tinybird_cli-3.9.1.dev3.dist-info/RECORD,,
39
+ tinybird_cli-3.9.1.dev4.dist-info/METADATA,sha256=3XoKqNMbNI93Q1R4hds2gHLVXlWYzSqwfjZ75GLn08s,70269
40
+ tinybird_cli-3.9.1.dev4.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
41
+ tinybird_cli-3.9.1.dev4.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
42
+ tinybird_cli-3.9.1.dev4.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
43
+ tinybird_cli-3.9.1.dev4.dist-info/RECORD,,