Skip to content

Commit

Permalink
Feature/bump plugin dependencies for pydantic 2.x (#102)
Browse files Browse the repository at this point in the history
* [feature] bump dependencies

* update lock

---------

Co-authored-by: Maxim Mityutko <[email protected]>
  • Loading branch information
maxim-mityutko and Maxim Mityutko authored Mar 25, 2024
1 parent 6ba515b commit c3bfa6c
Show file tree
Hide file tree
Showing 6 changed files with 485 additions and 355 deletions.
4 changes: 2 additions & 2 deletions brickflow/engine/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,8 @@ def get_brickflow_libraries(enable_plugins: bool = False) -> List[TaskLibrary]:
if settings.brickflow_enable_plugins is True or enable_plugins is True:
return [
bf_lib,
PypiTaskLibrary("apache-airflow==2.6.3"),
PypiTaskLibrary("snowflake==0.5.1"),
PypiTaskLibrary("apache-airflow==2.7.3"),
PypiTaskLibrary("snowflake==0.6.0"),
MavenTaskLibrary("com.cronutils:cron-utils:9.2.0"),
]
else:
Expand Down
6 changes: 3 additions & 3 deletions brickflow_plugins/databricks/uc_to_snowflake_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
at project level in entrypoint or at workflow level or at task level. Examples shown below
entrypoint:
with Project( ...
libraries=[PypiTaskLibrary(package="snowflake==0.5.1")]
libraries=[PypiTaskLibrary(package="snowflake==0.6.0")]
...)
workflow:
wf=Workflow( ...
libraries=[PypiTaskLibrary(package="snowflake==0.5.1")]
libraries=[PypiTaskLibrary(package="snowflake==0.6.0")]
...)
Task:
@wf.task(Library=[PypiTaskLibrary(package="snowflake==0.5.1")]
@wf.task(Library=[PypiTaskLibrary(package="snowflake==0.6.0")]
def run_snowflake_queries(*args):
...
"""
Expand Down
2 changes: 1 addition & 1 deletion examples/brickflow_examples/workflows/demo_wf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
can_view=[User("[email protected]")],
can_manage=[User("[email protected]")],
),
libraries=[PypiTaskLibrary(package="snowflake==0.5.1")],
libraries=[PypiTaskLibrary(package="snowflake==0.6.0")],
# replace <emails> with existing users' email on databricks
default_task_settings=TaskSettings(
email_notifications=EmailNotifications(
Expand Down
Loading

0 comments on commit c3bfa6c

Please sign in to comment.