tinybird-cli 3.0.0.dev3__tar.gz → 3.0.0.dev5__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.
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/PKG-INFO +17 -6
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/__cli__.py +2 -2
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/datafile.py +1 -1
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/git_settings.py +10 -4
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/cicd.py +61 -7
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/common.py +3 -62
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird_cli.egg-info/PKG-INFO +17 -6
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird_cli.egg-info/requires.txt +1 -1
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/setup.cfg +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/check_pypi.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/client.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/config.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/connector_settings.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/connectors.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/context.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/datatypes.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/feedback_manager.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/sql.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/sql_template.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/sql_toolset.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/syncasync.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/token.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tornado_template.py +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird_cli.egg-info/SOURCES.txt +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird_cli.egg-info/dependency_links.txt +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird_cli.egg-info/entry_points.txt +0 -0
- {tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/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: 3.0.0.
|
|
3
|
+
Version: 3.0.0.dev5
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://docs.tinybird.co/cli.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -19,6 +19,17 @@ Changelog
|
|
|
19
19
|
|
|
20
20
|
---------
|
|
21
21
|
|
|
22
|
+
3.0.0.dev5
|
|
23
|
+
************
|
|
24
|
+
|
|
25
|
+
- `Fixed` Error while pushing Sink Pipes using IAM Role Connector for S3
|
|
26
|
+
|
|
27
|
+
3.0.0.dev4
|
|
28
|
+
************
|
|
29
|
+
|
|
30
|
+
- `Changed` Unify generation of ci/cd script resources
|
|
31
|
+
- `Changed` Update clickhouse-toolset to 0.29.dev0
|
|
32
|
+
|
|
22
33
|
3.0.0.dev3
|
|
23
34
|
************
|
|
24
35
|
|
|
@@ -67,7 +78,7 @@ Changelog
|
|
|
67
78
|
|
|
68
79
|
- `Changed` `tb init --git` update to get ready to use cicd with releases
|
|
69
80
|
- `Changed` Use `tb branch` instead of `tb env`. `tb env` is still usable but deprecated and will be removed in the next version.
|
|
70
|
-
- `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.
|
|
81
|
+
- `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.
|
|
71
82
|
- `Fixed` `tb deploy` fixes to work with `--dry-run` and push changes of new and modified files
|
|
72
83
|
- `Fixed` `tb check` doesn't exit with error when checking a `.incl` file.
|
|
73
84
|
- `Fixed` `tb fmt` adds empty quoted strings in .datasource connection section.
|
|
@@ -111,7 +122,7 @@ Released new version 2.0.0 with all these changes:
|
|
|
111
122
|
Released new version 1.3.0 with all these changes:
|
|
112
123
|
|
|
113
124
|
- `Added` Support for Copy pipes in `tb fmt`
|
|
114
|
-
- `Added` Support for `.datasource.incl` files in `tb fmt`
|
|
125
|
+
- `Added` Support for `.datasource.incl` files in `tb fmt`
|
|
115
126
|
- `Fixed` `tb auth use` to move between regions saved in the config file
|
|
116
127
|
- `Fixed` Skip `regression.yaml` in `tb test run` since it's reserved for regression tests
|
|
117
128
|
- `Fixed` Skip replacing `.incl` files in `tb fmt`
|
|
@@ -134,7 +145,7 @@ Released new version 1.2.0 with all these changes:
|
|
|
134
145
|
|
|
135
146
|
Released new version 1.1.0 with all these changes:
|
|
136
147
|
|
|
137
|
-
- `Added` Support `skip` individual regression tests through the regression.yaml configuration file. CI/CD guide at https://www.tinybird.co/docs/guides/continuous-integration.html
|
|
148
|
+
- `Added` Support `skip` individual regression tests through the regression.yaml configuration file. CI/CD guide at https://www.tinybird.co/docs/guides/continuous-integration.html
|
|
138
149
|
- `Added` Fail `tb env regression-tests` if no tests are run for any pipe, use `skip` to avoid the error
|
|
139
150
|
- `Added` Skip POST requests by default in `tb env regression-tests` until it's supported
|
|
140
151
|
- `Added` Support append `--fixtures` to shared Data Sources in Environments
|
|
@@ -147,7 +158,7 @@ Released new version 1.1.0 with all these changes:
|
|
|
147
158
|
- `Changed` Expose resources and ids when removing releases `tb release rm`
|
|
148
159
|
- `Changed` `--override-commit` option to not require needing to pass the `--git` option as well. Now, running `tb init --override-commit` should work as expected.
|
|
149
160
|
- `Changed` Copy and Sink on-demand jobs now return the job URL.
|
|
150
|
-
- `Changed` allow Workspace admin tokens for CI/CD workflows. Previously, you were asked for user admin token. You can update your TB_ADMIN_TOKEN to be the Workspace admin token instead the admin token from a specific user. CI/CD guide at https://www.tinybird.co/docs/guides/continuous-integration.html
|
|
161
|
+
- `Changed` allow Workspace admin tokens for CI/CD workflows. Previously, you were asked for user admin token. You can update your TB_ADMIN_TOKEN to be the Workspace admin token instead the admin token from a specific user. CI/CD guide at https://www.tinybird.co/docs/guides/continuous-integration.html
|
|
151
162
|
- `Changed` Improve CI/CD output. Added warning hint in custom deployments.
|
|
152
163
|
- `Fixed` `tb deploy` raises an error if it detects resources renamed in git
|
|
153
164
|
- `Fixed` On `tb push --force --yes` a BigQuery Data Source, it updates both the `SCHEMA` and connector settings.
|
|
@@ -473,7 +484,7 @@ Released new version 1.0.1 with all these changes:
|
|
|
473
484
|
1.0.0b393
|
|
474
485
|
*********
|
|
475
486
|
|
|
476
|
-
- `Changed` Upgrade version of generated cicd templates
|
|
487
|
+
- `Changed` Upgrade version of generated cicd templates
|
|
477
488
|
|
|
478
489
|
1.0.0b393
|
|
479
490
|
*********
|
|
@@ -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__ = '3.0.0.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '3.0.0.dev5'
|
|
8
|
+
__revision__ = 'd34f713'
|
|
@@ -2,7 +2,13 @@ from dataclasses import dataclass
|
|
|
2
2
|
from enum import Enum
|
|
3
3
|
from typing import NamedTuple, Optional
|
|
4
4
|
|
|
5
|
-
from tinybird.tb_cli_modules.cicd import
|
|
5
|
+
from tinybird.tb_cli_modules.cicd import (
|
|
6
|
+
APPEND_FIXTURES_SH,
|
|
7
|
+
EXEC_TEST_SH,
|
|
8
|
+
GITHUB_CD_YML,
|
|
9
|
+
GITHUB_CI_YML,
|
|
10
|
+
GITHUB_RELEASES_YML,
|
|
11
|
+
)
|
|
6
12
|
|
|
7
13
|
|
|
8
14
|
class GitProviders(Enum):
|
|
@@ -78,11 +84,11 @@ GITHUB_DEFAULT_EMPTY_TREE_HASH = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
|
|
|
78
84
|
|
|
79
85
|
WORKFLOW_VERSION = "main"
|
|
80
86
|
|
|
81
|
-
TB_DEPLOY = "true"
|
|
82
|
-
|
|
83
87
|
DEFAULT_INIT_FILES = {
|
|
84
|
-
".tinyenv": DEFAULT_TINYENV_FILE,
|
|
85
88
|
"requirements.txt": DEFAULT_REQUIREMENTS_FILE,
|
|
89
|
+
".tinyenv": DEFAULT_TINYENV_FILE,
|
|
90
|
+
"scripts/exec_test.sh": EXEC_TEST_SH,
|
|
91
|
+
"scripts/append_fixtures.sh": APPEND_FIXTURES_SH,
|
|
86
92
|
}
|
|
87
93
|
|
|
88
94
|
GITHUB_CI_YML_PATH = ".github/workflows/tinybird_ci.yml"
|
|
@@ -18,8 +18,6 @@ class Provider(Enum):
|
|
|
18
18
|
|
|
19
19
|
WORKFLOW_VERSION = "main"
|
|
20
20
|
|
|
21
|
-
TB_DEPLOY = "true"
|
|
22
|
-
|
|
23
21
|
GITHUB_CI_YML = """
|
|
24
22
|
##################################################
|
|
25
23
|
### Visit https://github.com/tinybirdco/ci ###
|
|
@@ -44,7 +42,6 @@ GITHUB_CI_YML = """
|
|
|
44
42
|
ci: # ci using branches from workspace '{{ workspace_name }}'
|
|
45
43
|
uses: tinybirdco/ci/.github/workflows/ci.yml@{{ workflow_version }}
|
|
46
44
|
with:
|
|
47
|
-
tb_deploy: {{ tb_deploy }}
|
|
48
45
|
data_project_dir: {{ data_project_dir }}
|
|
49
46
|
secrets:
|
|
50
47
|
tb_admin_token: ${{! secrets.TB_ADMIN_TOKEN }} # set the Workspace admin token in GitHub secrets
|
|
@@ -71,7 +68,6 @@ GITHUB_CD_YML = """
|
|
|
71
68
|
cd: # deploy changes to workspace '{{ workspace_name }}'
|
|
72
69
|
uses: tinybirdco/ci/.github/workflows/cd.yml@{{ workflow_version }}
|
|
73
70
|
with:
|
|
74
|
-
tb_deploy: {{ tb_deploy }}
|
|
75
71
|
data_project_dir: {{ data_project_dir }}
|
|
76
72
|
secrets:
|
|
77
73
|
tb_admin_token: ${{! secrets.TB_ADMIN_TOKEN }} # set the Workspace admin token in GitHub secrets
|
|
@@ -100,7 +96,6 @@ GITHUB_RELEASES_YML = """
|
|
|
100
96
|
with:
|
|
101
97
|
job_to_run: ${{! inputs.job_to_run }}
|
|
102
98
|
data_project_dir: {{ data_project_dir }}
|
|
103
|
-
tb_deploy: {{ tb_deploy }}
|
|
104
99
|
secrets:
|
|
105
100
|
tb_admin_token: ${{! secrets.TB_ADMIN_TOKEN }} # set the Workspace admin token in GitHub secrets
|
|
106
101
|
tb_host: {{ tb_host }}
|
|
@@ -145,7 +140,6 @@ GITLAB_YML = """
|
|
|
145
140
|
TB_HOST: "{{ tb_host }}"
|
|
146
141
|
TB_ADMIN_TOKEN: $TB_ADMIN_TOKEN # set the Workspace admin token in GitLab CI/CD Variables
|
|
147
142
|
DATA_PROJECT_DIR: "{{ data_project_dir }}"
|
|
148
|
-
TB_DEPLOY: "{{ tb_deploy }}"
|
|
149
143
|
|
|
150
144
|
deploy_ci: # ci using branches from workspace '{{ workspace_name }}'
|
|
151
145
|
extends: .tb_deploy_ci
|
|
@@ -208,6 +202,67 @@ GITLAB_YML = """
|
|
|
208
202
|
"""
|
|
209
203
|
|
|
210
204
|
|
|
205
|
+
EXEC_TEST_SH = """
|
|
206
|
+
#!/usr/bin/env bash
|
|
207
|
+
|
|
208
|
+
export TB_VERSION_WARNING=0
|
|
209
|
+
export VERSION=$1
|
|
210
|
+
|
|
211
|
+
run_test() {
|
|
212
|
+
t=$1
|
|
213
|
+
echo "** Running $t **"
|
|
214
|
+
# Check if VERSION is provided
|
|
215
|
+
if [[ -n $VERSION ]]; then
|
|
216
|
+
echo "VERSION found: $VERSION"
|
|
217
|
+
sed -i "s/tb/tb --semver $VERSION/" $t
|
|
218
|
+
else
|
|
219
|
+
echo "VERSION not found"
|
|
220
|
+
fi
|
|
221
|
+
echo "** $(cat $t)"
|
|
222
|
+
if res=$(bash $t $2 | diff -B ${t}.result -); then
|
|
223
|
+
echo 'OK';
|
|
224
|
+
else
|
|
225
|
+
echo "failed, diff:";
|
|
226
|
+
echo "$res";
|
|
227
|
+
return 1
|
|
228
|
+
fi
|
|
229
|
+
echo ""
|
|
230
|
+
}
|
|
231
|
+
export -f run_test
|
|
232
|
+
|
|
233
|
+
fail=0
|
|
234
|
+
find ./tests -name "*.test" -print0 | xargs -0 -I {} -P 4 bash -c 'run_test "$@"' _ {} $VERSION || fail=1
|
|
235
|
+
|
|
236
|
+
if [ $fail == 1 ]; then
|
|
237
|
+
exit -1;
|
|
238
|
+
fi
|
|
239
|
+
"""
|
|
240
|
+
|
|
241
|
+
APPEND_FIXTURES_SH = """
|
|
242
|
+
#!/usr/bin/env bash
|
|
243
|
+
|
|
244
|
+
VERSION=$1
|
|
245
|
+
|
|
246
|
+
directory="datasources/fixtures"
|
|
247
|
+
extensions=("csv" "ndjson")
|
|
248
|
+
|
|
249
|
+
absolute_directory=$(realpath "$directory")
|
|
250
|
+
|
|
251
|
+
for extension in "${extensions[@]}"; do
|
|
252
|
+
file_list=$(find "$absolute_directory" -type f -name "*.$extension")
|
|
253
|
+
|
|
254
|
+
for file_path in $file_list; do
|
|
255
|
+
file_name=$(basename "$file_path")
|
|
256
|
+
file_name_without_extension="${file_name%.*}"
|
|
257
|
+
|
|
258
|
+
command="tb --semver $VERSION datasource append $file_name_without_extension datasources/fixtures/$file_name"
|
|
259
|
+
echo $command
|
|
260
|
+
$command
|
|
261
|
+
done
|
|
262
|
+
done
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
|
|
211
266
|
@dataclass
|
|
212
267
|
class CICDFile:
|
|
213
268
|
template: str
|
|
@@ -323,7 +378,6 @@ async def init_cicd(
|
|
|
323
378
|
"token_id": token["id"],
|
|
324
379
|
"data_project_dir": data_project_dir,
|
|
325
380
|
"workflow_version": WORKFLOW_VERSION,
|
|
326
|
-
"tb_deploy": TB_DEPLOY,
|
|
327
381
|
}
|
|
328
382
|
warning_message = generator(path, params)
|
|
329
383
|
if warning_message:
|
|
@@ -57,6 +57,7 @@ if TYPE_CHECKING:
|
|
|
57
57
|
from tinybird.feedback_manager import FeedbackManager, warning_message
|
|
58
58
|
from tinybird.git_settings import DEFAULT_TINYENV_FILE
|
|
59
59
|
from tinybird.syncasync import async_to_sync
|
|
60
|
+
from tinybird.tb_cli_modules.cicd import APPEND_FIXTURES_SH, EXEC_TEST_SH
|
|
60
61
|
from tinybird.tb_cli_modules.config import CLIConfig
|
|
61
62
|
from tinybird.tb_cli_modules.exceptions import (
|
|
62
63
|
CLIAuthException,
|
|
@@ -406,74 +407,14 @@ async def folder_init(
|
|
|
406
407
|
f = base / ("exec_test.sh")
|
|
407
408
|
if not f.exists() or force:
|
|
408
409
|
with open(f"{f}", "w") as t_file:
|
|
409
|
-
t_file.write(
|
|
410
|
-
"""
|
|
411
|
-
#!/usr/bin/env bash
|
|
412
|
-
|
|
413
|
-
export TB_VERSION_WARNING=0
|
|
414
|
-
export VERSION=$1
|
|
415
|
-
|
|
416
|
-
run_test() {
|
|
417
|
-
t=$1
|
|
418
|
-
echo "** Running $t **"
|
|
419
|
-
# Check if VERSION is provided
|
|
420
|
-
if [[ -n $VERSION ]]; then
|
|
421
|
-
echo "VERSION found: $VERSION"
|
|
422
|
-
sed -i "s/tb/tb --semver $VERSION/" $t
|
|
423
|
-
else
|
|
424
|
-
echo "VERSION not found"
|
|
425
|
-
fi
|
|
426
|
-
echo "** $(cat $t)"
|
|
427
|
-
if res=$(bash $t $2 | diff -B ${t}.result -); then
|
|
428
|
-
echo 'OK';
|
|
429
|
-
else
|
|
430
|
-
echo "failed, diff:";
|
|
431
|
-
echo "$res";
|
|
432
|
-
return 1
|
|
433
|
-
fi
|
|
434
|
-
echo ""
|
|
435
|
-
}
|
|
436
|
-
export -f run_test
|
|
437
|
-
|
|
438
|
-
fail=0
|
|
439
|
-
find ./tests -name "*.test" -print0 | xargs -0 -I {} -P 4 bash -c 'run_test "$@"' _ {} $VERSION || fail=1
|
|
440
|
-
|
|
441
|
-
if [ $fail == 1 ]; then
|
|
442
|
-
exit -1;
|
|
443
|
-
fi
|
|
444
|
-
"""
|
|
445
|
-
)
|
|
410
|
+
t_file.write(EXEC_TEST_SH)
|
|
446
411
|
click.echo(FeedbackManager.info_file_created(file="scripts/exec_test.sh"))
|
|
447
412
|
chmod(f, 0o755)
|
|
448
413
|
|
|
449
414
|
f = base / ("append_fixtures.sh")
|
|
450
415
|
if not f.exists() or force:
|
|
451
416
|
with open(f"{f}", "w") as t_file:
|
|
452
|
-
t_file.write(
|
|
453
|
-
"""
|
|
454
|
-
#!/usr/bin/env bash
|
|
455
|
-
|
|
456
|
-
VERSION=$1
|
|
457
|
-
|
|
458
|
-
directory="datasources/fixtures"
|
|
459
|
-
extensions=("csv" "ndjson")
|
|
460
|
-
|
|
461
|
-
absolute_directory=$(realpath "$directory")
|
|
462
|
-
|
|
463
|
-
for extension in "${extensions[@]}"; do
|
|
464
|
-
file_list=$(find "$absolute_directory" -type f -name "*.$extension")
|
|
465
|
-
|
|
466
|
-
for file_path in $file_list; do
|
|
467
|
-
file_name=$(basename "$file_path")
|
|
468
|
-
file_name_without_extension="${file_name%.*}"
|
|
469
|
-
|
|
470
|
-
command="tb --semver $VERSION datasource append $file_name_without_extension datasources/fixtures/$file_name"
|
|
471
|
-
echo $command
|
|
472
|
-
$command
|
|
473
|
-
done
|
|
474
|
-
done
|
|
475
|
-
"""
|
|
476
|
-
)
|
|
417
|
+
t_file.write(APPEND_FIXTURES_SH)
|
|
477
418
|
click.echo(FeedbackManager.info_file_created(file="scripts/append_fixtures.sh"))
|
|
478
419
|
chmod(f, 0o755)
|
|
479
420
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinybird-cli
|
|
3
|
-
Version: 3.0.0.
|
|
3
|
+
Version: 3.0.0.dev5
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://docs.tinybird.co/cli.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -19,6 +19,17 @@ Changelog
|
|
|
19
19
|
|
|
20
20
|
---------
|
|
21
21
|
|
|
22
|
+
3.0.0.dev5
|
|
23
|
+
************
|
|
24
|
+
|
|
25
|
+
- `Fixed` Error while pushing Sink Pipes using IAM Role Connector for S3
|
|
26
|
+
|
|
27
|
+
3.0.0.dev4
|
|
28
|
+
************
|
|
29
|
+
|
|
30
|
+
- `Changed` Unify generation of ci/cd script resources
|
|
31
|
+
- `Changed` Update clickhouse-toolset to 0.29.dev0
|
|
32
|
+
|
|
22
33
|
3.0.0.dev3
|
|
23
34
|
************
|
|
24
35
|
|
|
@@ -67,7 +78,7 @@ Changelog
|
|
|
67
78
|
|
|
68
79
|
- `Changed` `tb init --git` update to get ready to use cicd with releases
|
|
69
80
|
- `Changed` Use `tb branch` instead of `tb env`. `tb env` is still usable but deprecated and will be removed in the next version.
|
|
70
|
-
- `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.
|
|
81
|
+
- `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.
|
|
71
82
|
- `Fixed` `tb deploy` fixes to work with `--dry-run` and push changes of new and modified files
|
|
72
83
|
- `Fixed` `tb check` doesn't exit with error when checking a `.incl` file.
|
|
73
84
|
- `Fixed` `tb fmt` adds empty quoted strings in .datasource connection section.
|
|
@@ -111,7 +122,7 @@ Released new version 2.0.0 with all these changes:
|
|
|
111
122
|
Released new version 1.3.0 with all these changes:
|
|
112
123
|
|
|
113
124
|
- `Added` Support for Copy pipes in `tb fmt`
|
|
114
|
-
- `Added` Support for `.datasource.incl` files in `tb fmt`
|
|
125
|
+
- `Added` Support for `.datasource.incl` files in `tb fmt`
|
|
115
126
|
- `Fixed` `tb auth use` to move between regions saved in the config file
|
|
116
127
|
- `Fixed` Skip `regression.yaml` in `tb test run` since it's reserved for regression tests
|
|
117
128
|
- `Fixed` Skip replacing `.incl` files in `tb fmt`
|
|
@@ -134,7 +145,7 @@ Released new version 1.2.0 with all these changes:
|
|
|
134
145
|
|
|
135
146
|
Released new version 1.1.0 with all these changes:
|
|
136
147
|
|
|
137
|
-
- `Added` Support `skip` individual regression tests through the regression.yaml configuration file. CI/CD guide at https://www.tinybird.co/docs/guides/continuous-integration.html
|
|
148
|
+
- `Added` Support `skip` individual regression tests through the regression.yaml configuration file. CI/CD guide at https://www.tinybird.co/docs/guides/continuous-integration.html
|
|
138
149
|
- `Added` Fail `tb env regression-tests` if no tests are run for any pipe, use `skip` to avoid the error
|
|
139
150
|
- `Added` Skip POST requests by default in `tb env regression-tests` until it's supported
|
|
140
151
|
- `Added` Support append `--fixtures` to shared Data Sources in Environments
|
|
@@ -147,7 +158,7 @@ Released new version 1.1.0 with all these changes:
|
|
|
147
158
|
- `Changed` Expose resources and ids when removing releases `tb release rm`
|
|
148
159
|
- `Changed` `--override-commit` option to not require needing to pass the `--git` option as well. Now, running `tb init --override-commit` should work as expected.
|
|
149
160
|
- `Changed` Copy and Sink on-demand jobs now return the job URL.
|
|
150
|
-
- `Changed` allow Workspace admin tokens for CI/CD workflows. Previously, you were asked for user admin token. You can update your TB_ADMIN_TOKEN to be the Workspace admin token instead the admin token from a specific user. CI/CD guide at https://www.tinybird.co/docs/guides/continuous-integration.html
|
|
161
|
+
- `Changed` allow Workspace admin tokens for CI/CD workflows. Previously, you were asked for user admin token. You can update your TB_ADMIN_TOKEN to be the Workspace admin token instead the admin token from a specific user. CI/CD guide at https://www.tinybird.co/docs/guides/continuous-integration.html
|
|
151
162
|
- `Changed` Improve CI/CD output. Added warning hint in custom deployments.
|
|
152
163
|
- `Fixed` `tb deploy` raises an error if it detects resources renamed in git
|
|
153
164
|
- `Fixed` On `tb push --force --yes` a BigQuery Data Source, it updates both the `SCHEMA` and connector settings.
|
|
@@ -473,7 +484,7 @@ Released new version 1.0.1 with all these changes:
|
|
|
473
484
|
1.0.0b393
|
|
474
485
|
*********
|
|
475
486
|
|
|
476
|
-
- `Changed` Upgrade version of generated cicd templates
|
|
487
|
+
- `Changed` Upgrade version of generated cicd templates
|
|
477
488
|
|
|
478
489
|
1.0.0b393
|
|
479
490
|
*********
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-3.0.0.dev3 → tinybird-cli-3.0.0.dev5}/tinybird_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|