tinybird-cli 5.5.1.dev1__tar.gz → 5.5.1.dev2__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-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/PKG-INFO +6 -1
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/__cli__.py +2 -2
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/datafile.py +12 -5
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/feedback_manager.py +3 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/cli.py +9 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird_cli.egg-info/PKG-INFO +6 -1
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/setup.cfg +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/check_pypi.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/client.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/config.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/connectors.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/context.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/datatypes.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/git_settings.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/sql.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/sql_template.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/sql_toolset.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/syncasync.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/token.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tornado_template.py +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird_cli.egg-info/SOURCES.txt +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird_cli.egg-info/dependency_links.txt +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird_cli.egg-info/entry_points.txt +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird_cli.egg-info/requires.txt +0 -0
- {tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/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: 5.5.1.
|
|
3
|
+
Version: 5.5.1.dev2
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -18,6 +18,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
18
18
|
Changelog
|
|
19
19
|
----------
|
|
20
20
|
|
|
21
|
+
5.5.1.dev2
|
|
22
|
+
**********
|
|
23
|
+
|
|
24
|
+
- `Changed` Internal change
|
|
25
|
+
|
|
21
26
|
5.5.0
|
|
22
27
|
**********
|
|
23
28
|
|
|
@@ -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__ = '5.5.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '5.5.1.dev2'
|
|
8
|
+
__revision__ = '8114ba1'
|
|
@@ -439,9 +439,12 @@ class CLIGitRelease:
|
|
|
439
439
|
raise CLIGitReleaseException(
|
|
440
440
|
FeedbackManager.error_commit_changes_to_release(path=self.path, git_output=self.status())
|
|
441
441
|
)
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
442
|
+
if not self.is_head_outdated(current_release["commit"]):
|
|
443
|
+
if check_outdated:
|
|
444
|
+
raise CLIGitReleaseException(FeedbackManager.error_head_outdated(commit=self.head_commit()))
|
|
445
|
+
else:
|
|
446
|
+
click.echo(FeedbackManager.warning_head_outdated(commit=self.head_commit()))
|
|
447
|
+
if not self.is_new_release(current_release["commit"]) and check_new:
|
|
445
448
|
raise CLIGitReleaseException(FeedbackManager.error_head_already_released(commit=current_release["commit"]))
|
|
446
449
|
|
|
447
450
|
def get_changes_from_diffs(self, diffs: List[Diff], filenames: List[str]):
|
|
@@ -557,13 +560,14 @@ class Deployment:
|
|
|
557
560
|
only_changes: bool = False,
|
|
558
561
|
config: Optional[Dict[str, Any]] = None,
|
|
559
562
|
use_main: bool = False,
|
|
563
|
+
check_outdated: bool = True,
|
|
560
564
|
):
|
|
561
565
|
if self.is_git_release:
|
|
562
566
|
if not self.current_release:
|
|
563
567
|
raise CLIGitReleaseException(FeedbackManager.error_init_release(workspace=self.current_ws["name"]))
|
|
564
568
|
self.cli_git_release = CLIGitRelease()
|
|
565
569
|
if not use_main:
|
|
566
|
-
self.cli_git_release.validate_local_for_release(self.current_release)
|
|
570
|
+
self.cli_git_release.validate_local_for_release(self.current_release, check_outdated=check_outdated)
|
|
567
571
|
click.echo(FeedbackManager.info_deployment_detecting_changes_header())
|
|
568
572
|
commit = self.cli_git_release.get_main_branch_commit() if use_main else self.current_release["commit"]
|
|
569
573
|
diffs = self.cli_git_release.diff_datafiles(commit)
|
|
@@ -3981,6 +3985,7 @@ async def folder_push(
|
|
|
3981
3985
|
auto_promote: Optional[bool] = False,
|
|
3982
3986
|
check_backfill_required: bool = False,
|
|
3983
3987
|
use_main: bool = False,
|
|
3988
|
+
check_outdated: bool = True,
|
|
3984
3989
|
): # noqa: C901
|
|
3985
3990
|
workspaces: List[Dict[str, Any]] = (await tb_client.user_workspaces_and_branches()).get("workspaces", [])
|
|
3986
3991
|
current_ws: Dict[str, Any] = next(
|
|
@@ -4023,7 +4028,9 @@ async def folder_push(
|
|
|
4023
4028
|
filenames = get_project_filenames(folder)
|
|
4024
4029
|
|
|
4025
4030
|
# get the list of changes
|
|
4026
|
-
changed, deleted = await deployment.detect_changes(
|
|
4031
|
+
changed, deleted = await deployment.detect_changes(
|
|
4032
|
+
filenames, only_changes, config, use_main, check_outdated=check_outdated
|
|
4033
|
+
)
|
|
4027
4034
|
|
|
4028
4035
|
deployment.check_changes(changed, pipes, release_created)
|
|
4029
4036
|
|
|
@@ -317,6 +317,9 @@ class FeedbackManager:
|
|
|
317
317
|
error_head_outdated = error_message(
|
|
318
318
|
"Current HEAD commit '{commit}' is outdated.\n\n 💡Hint: consider to rebase your Git branch with base branch."
|
|
319
319
|
)
|
|
320
|
+
warning_head_outdated = warning_message(
|
|
321
|
+
"Current HEAD commit '{commit}' is outdated.\n\n 💡Hint: consider to rebase your Git branch with base branch."
|
|
322
|
+
)
|
|
320
323
|
error_head_already_released = error_message("Current HEAD commit '{commit}' is already deployed")
|
|
321
324
|
error_in_git_ancestor_commits = error_message(
|
|
322
325
|
"Error checking relationship between HEAD '{head_commit}' and Workspace commit '{workspace_commit}'.\n\n Current Workspace commit needs to be an ancestor of the commit being deployed.\n\n 💡 Hint: consider to rebase your Git branch. If the problem persists, double check the Workspace commit exists in the git log, if it does not exist you can override the Workspace commit to an ancestor of the commit being deployed using `tb init --override-commit <commit>`"
|
|
@@ -1429,6 +1429,13 @@ async def prompt(_ctx: Context) -> None:
|
|
|
1429
1429
|
help="Use main commit instead of release commit",
|
|
1430
1430
|
hidden=True,
|
|
1431
1431
|
)
|
|
1432
|
+
@click.option(
|
|
1433
|
+
"--skip-head-outdated",
|
|
1434
|
+
is_flag=True,
|
|
1435
|
+
default=False,
|
|
1436
|
+
help="Allows to deploy any commit without checking if the branch is rebased to the workspace commit",
|
|
1437
|
+
hidden=True,
|
|
1438
|
+
)
|
|
1432
1439
|
@click.pass_context
|
|
1433
1440
|
@coro
|
|
1434
1441
|
async def deploy(
|
|
@@ -1449,6 +1456,7 @@ async def deploy(
|
|
|
1449
1456
|
fork_downstream: bool,
|
|
1450
1457
|
fork: bool,
|
|
1451
1458
|
use_main: bool,
|
|
1459
|
+
skip_head_outdated: bool,
|
|
1452
1460
|
) -> None:
|
|
1453
1461
|
"""Deploy in Tinybird pushing resources changed from last git commit deployed.
|
|
1454
1462
|
|
|
@@ -1591,6 +1599,7 @@ async def deploy(
|
|
|
1591
1599
|
auto_promote=auto_promote,
|
|
1592
1600
|
check_backfill_required=check_backfill_required,
|
|
1593
1601
|
use_main=use_main,
|
|
1602
|
+
check_outdated=not skip_head_outdated,
|
|
1594
1603
|
)
|
|
1595
1604
|
except Exception as e:
|
|
1596
1605
|
if release_created and not dry_run:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinybird-cli
|
|
3
|
-
Version: 5.5.1.
|
|
3
|
+
Version: 5.5.1.dev2
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -18,6 +18,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
18
18
|
Changelog
|
|
19
19
|
----------
|
|
20
20
|
|
|
21
|
+
5.5.1.dev2
|
|
22
|
+
**********
|
|
23
|
+
|
|
24
|
+
- `Changed` Internal change
|
|
25
|
+
|
|
21
26
|
5.5.0
|
|
22
27
|
**********
|
|
23
28
|
|
|
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-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-5.5.1.dev1 → tinybird-cli-5.5.1.dev2}/tinybird_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|