tinybird 0.0.1.dev106__py3-none-any.whl → 0.0.1.dev107__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 +2 -2
- tinybird/tb/modules/cicd.py +49 -0
- tinybird/tb/modules/local.py +3 -0
- {tinybird-0.0.1.dev106.dist-info → tinybird-0.0.1.dev107.dist-info}/METADATA +1 -1
- {tinybird-0.0.1.dev106.dist-info → tinybird-0.0.1.dev107.dist-info}/RECORD +8 -8
- {tinybird-0.0.1.dev106.dist-info → tinybird-0.0.1.dev107.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev106.dist-info → tinybird-0.0.1.dev107.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev106.dist-info → tinybird-0.0.1.dev107.dist-info}/top_level.txt +0 -0
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.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev107'
|
|
8
|
+
__revision__ = '76708c2'
|
tinybird/tb/modules/cicd.py
CHANGED
|
@@ -58,6 +58,33 @@ jobs:
|
|
|
58
58
|
run: tb --cloud --host ${{! env.TINYBIRD_HOST }} --token ${{! env.TINYBIRD_TOKEN }} deploy --check
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
|
+
GITHUB_CD_YML = """
|
|
62
|
+
name: Tinybird - CD Workflow
|
|
63
|
+
|
|
64
|
+
on:
|
|
65
|
+
push:
|
|
66
|
+
branches:
|
|
67
|
+
- main
|
|
68
|
+
- master{% if data_project_dir != '.' %}
|
|
69
|
+
paths:
|
|
70
|
+
- '{{ data_project_dir }}/**'{% end %}
|
|
71
|
+
|
|
72
|
+
concurrency: ${{! github.workflow }}-${{! github.event.ref }}
|
|
73
|
+
|
|
74
|
+
env:
|
|
75
|
+
TINYBIRD_HOST: ${{! secrets.TINYBIRD_HOST }}
|
|
76
|
+
TINYBIRD_TOKEN: ${{! secrets.TINYBIRD_TOKEN }}
|
|
77
|
+
|
|
78
|
+
jobs:
|
|
79
|
+
cd:
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
steps:
|
|
82
|
+
- uses: actions/checkout@v3
|
|
83
|
+
- name: Install Tinybird CLI
|
|
84
|
+
run: curl -LsSf https://api.tinybird.co/static/install.sh | sh
|
|
85
|
+
- name: Deploy project
|
|
86
|
+
run: tb --cloud --host ${{! env.TINYBIRD_HOST }} --token ${{! env.TINYBIRD_TOKEN }} deploy
|
|
87
|
+
"""
|
|
61
88
|
|
|
62
89
|
GITLAB_YML = """
|
|
63
90
|
include:
|
|
@@ -65,6 +92,7 @@ include:
|
|
|
65
92
|
|
|
66
93
|
stages:
|
|
67
94
|
- tests
|
|
95
|
+
- deploy
|
|
68
96
|
"""
|
|
69
97
|
|
|
70
98
|
|
|
@@ -92,6 +120,22 @@ tinybird_ci_workflow:
|
|
|
92
120
|
services:
|
|
93
121
|
- name: tinybirdco/tinybird-local:beta
|
|
94
122
|
alias: tinybird-local
|
|
123
|
+
|
|
124
|
+
tinybird_cd_workflow:
|
|
125
|
+
image: ubuntu:latest
|
|
126
|
+
stage: deploy
|
|
127
|
+
resource_group: production
|
|
128
|
+
needs: []
|
|
129
|
+
rules:
|
|
130
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
131
|
+
changes:
|
|
132
|
+
- .gitlab/tinybird/*{% if data_project_dir != '.' %}
|
|
133
|
+
- {{ data_project_dir }}/*
|
|
134
|
+
- {{ data_project_dir }}/**/*{% end %}
|
|
135
|
+
script:
|
|
136
|
+
- export PATH="$HOME/.local/bin:$PATH"
|
|
137
|
+
- cd $CI_PROJECT_DIR/{{ data_project_dir }}
|
|
138
|
+
- tb --cloud --host ${{! TINYBIRD_HOST }} --token ${{! TINYBIRD_TOKEN }} deploy
|
|
95
139
|
"""
|
|
96
140
|
|
|
97
141
|
|
|
@@ -153,6 +197,11 @@ class GitHubCICDGenerator(CICDGeneratorBase):
|
|
|
153
197
|
file_name="tinybird-ci.yml",
|
|
154
198
|
dir_path=".github/workflows",
|
|
155
199
|
),
|
|
200
|
+
CICDFile(
|
|
201
|
+
template=GITHUB_CD_YML,
|
|
202
|
+
file_name="tinybird-cd.yml",
|
|
203
|
+
dir_path=".github/workflows",
|
|
204
|
+
),
|
|
156
205
|
]
|
|
157
206
|
|
|
158
207
|
|
tinybird/tb/modules/local.py
CHANGED
|
@@ -147,6 +147,9 @@ def update_cli():
|
|
|
147
147
|
)
|
|
148
148
|
stdout, stderr = process.communicate()
|
|
149
149
|
if "Nothing to upgrade" not in stdout + stderr:
|
|
150
|
+
for line in stdout.split("\n") + stderr.split("\n"):
|
|
151
|
+
if "Updated tinybird" in line:
|
|
152
|
+
click.echo(FeedbackManager.info(message=f"» {line}"))
|
|
150
153
|
click.echo(FeedbackManager.success(message="✓ Tinybird CLI updated"))
|
|
151
154
|
else:
|
|
152
155
|
click.echo(FeedbackManager.info(message="✓ Tinybird CLI is already up-to-date"))
|
|
@@ -15,11 +15,11 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
|
|
|
15
15
|
tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
|
|
16
16
|
tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
|
|
17
17
|
tinybird/ch_utils/engine.py,sha256=BZuPM7MFS7vaEKK5tOMR2bwSAgJudPrJt27uVEwZmTY,40512
|
|
18
|
-
tinybird/tb/__cli__.py,sha256
|
|
18
|
+
tinybird/tb/__cli__.py,sha256=t8MFy2-t9fuw6aYIBOtbd_R7b7PF-LjKaUPwssmRWnA,252
|
|
19
19
|
tinybird/tb/cli.py,sha256=H_HaZhkimKgkryYXpBjHfY9Qtg-ZORiONU3psDNpzDk,1135
|
|
20
20
|
tinybird/tb/modules/auth.py,sha256=L1IatO2arRSzys3t8px8xVt8uPWUL5EVD0sFzAV_uVU,9022
|
|
21
21
|
tinybird/tb/modules/build.py,sha256=h5drdmDFX8NHts9dA2Zepao7KSgMAl3DZGyFufVZP78,11085
|
|
22
|
-
tinybird/tb/modules/cicd.py,sha256=
|
|
22
|
+
tinybird/tb/modules/cicd.py,sha256=F0hQw-TExU9W3NpUSY-msNZ4tlaPeTXjRDpFZ2B2STU,7023
|
|
23
23
|
tinybird/tb/modules/cli.py,sha256=XtdwMI5uPoKfhlpSuCuhzODRJfTCx1oXHz_bn3x1OBg,16047
|
|
24
24
|
tinybird/tb/modules/common.py,sha256=6AmvMe8Uj-5A46aUlM3wJg7AilkJEAmHt1hTOb5IH2w,82957
|
|
25
25
|
tinybird/tb/modules/config.py,sha256=FqdLpLaKpYubqw3xkB4EX06ufZYDgGRxONR_9i-y-KE,11416
|
|
@@ -36,7 +36,7 @@ tinybird/tb/modules/infra.py,sha256=GA5xnYLlVItPfJu_3_5NIdHQDuyfk2Z71wtcn9NncGA,
|
|
|
36
36
|
tinybird/tb/modules/job.py,sha256=956Pj8BEEsiD2GZsV9RKKVM3I_CveOLgS82lykO5ukk,2963
|
|
37
37
|
tinybird/tb/modules/llm.py,sha256=AC0VSphTOM2t-v1_3NLvNN_FIbgMo4dTyMqIv5nniPo,835
|
|
38
38
|
tinybird/tb/modules/llm_utils.py,sha256=nS9r4FAElJw8yXtmdYrx-rtI2zXR8qXfi1QqUDCfxvg,3469
|
|
39
|
-
tinybird/tb/modules/local.py,sha256=
|
|
39
|
+
tinybird/tb/modules/local.py,sha256=ju4pckNbtCUD9eQpvxEKP_YsVIny8WPidoCxqXEyh3Y,7111
|
|
40
40
|
tinybird/tb/modules/local_common.py,sha256=RN5OEncHdq7ua4AZ--WgKtaFuEsLvIhq_ROHJadRXXA,3188
|
|
41
41
|
tinybird/tb/modules/login.py,sha256=dAaBBn_ZIQRm9BFl6Uw_HgZa2qoLuAO6mBOxob_17ms,6253
|
|
42
42
|
tinybird/tb/modules/logout.py,sha256=ULooy1cDBD02-r7voZmhV7udA0ML5tVuflJyShrh56Y,1022
|
|
@@ -81,8 +81,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
|
|
|
81
81
|
tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
|
|
82
82
|
tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
83
83
|
tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
|
|
84
|
-
tinybird-0.0.1.
|
|
85
|
-
tinybird-0.0.1.
|
|
86
|
-
tinybird-0.0.1.
|
|
87
|
-
tinybird-0.0.1.
|
|
88
|
-
tinybird-0.0.1.
|
|
84
|
+
tinybird-0.0.1.dev107.dist-info/METADATA,sha256=O5fKB-GC4H563pOpRl3NOiRPDOjoCcE661OrM-gzza4,1612
|
|
85
|
+
tinybird-0.0.1.dev107.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
86
|
+
tinybird-0.0.1.dev107.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
87
|
+
tinybird-0.0.1.dev107.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
88
|
+
tinybird-0.0.1.dev107.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|