From 31be477c92a2c7c750eae77caa3dbc8b9434c348 Mon Sep 17 00:00:00 2001 From: hud Date: Mon, 14 Aug 2023 21:43:06 +0800 Subject: [PATCH] requirements flytekit 1.8.3 Signed-off-by: hud --- examples/basics/basics/hello_world.py | 16 ++++++++++++++-- examples/basics/requirements.in | 2 +- examples/basics/requirements.txt | 11 ++++++----- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/examples/basics/basics/hello_world.py b/examples/basics/basics/hello_world.py index 19e4cfac5..911d30a8a 100644 --- a/examples/basics/basics/hello_world.py +++ b/examples/basics/basics/hello_world.py @@ -9,13 +9,24 @@ # This simple workflow calls a task that returns "Hello World" and then just sets that as the final output of the workflow. # %% -from flytekit import task, workflow +from flytekit import task, workflow, ImageSpec + +# %% [markdown] + +# Defining ImageSpec using `flyteorg/flyte` commit with buildkit, e.g. `flytectl demo start --image=ghcr.io/flyteorg/flyte-sandbox-bundled:sha-` + +image = ImageSpec( + name="imagespec", + registry="localhost:30000", +) + # %% [markdown] # You can change the signature of the workflow to take in an argument like this: + # %% -@task +@task(container_image=image) def say_hello() -> str: return "hello world" @@ -25,6 +36,7 @@ def say_hello() -> str: # and use them in subsequent tasks as normal. See {py:func}`flytekit.workflow` # You can change the signature of the workflow to take in an argument like this: + # %% @workflow def my_wf() -> str: diff --git a/examples/basics/requirements.in b/examples/basics/requirements.in index 185454f64..4d8c878ab 100644 --- a/examples/basics/requirements.in +++ b/examples/basics/requirements.in @@ -1,4 +1,4 @@ -flytekit>=1.7.0 +flytekit>=1.8.3 wheel matplotlib flytekitplugins-deck-standard diff --git a/examples/basics/requirements.txt b/examples/basics/requirements.txt index 90df52a86..69579124d 100644 --- a/examples/basics/requirements.txt +++ b/examples/basics/requirements.txt @@ -111,14 +111,15 @@ docstring-parser==0.15 # via flytekit executing==1.2.0 # via stack-data -flyteidl==1.5.12 +flyteidl==1.5.14 # via flytekit -flytekit==1.7.0 +flytekit==1.8.3 # via # -r requirements.in # flytekitplugins-deck-standard flytekitplugins-deck-standard==1.7.0 # via -r requirements.in +flytekitplugins-envd==1.8.3 fonttools==4.40.0 # via matplotlib frozenlist==1.3.3 @@ -165,11 +166,11 @@ googleapis-common-protos==1.59.1 # flytekit # google-api-core # grpcio-status -grpcio==1.56.0 +grpcio==1.53.0 # via # flytekit # grpcio-status -grpcio-status==1.56.0 +grpcio-status==1.53.0 # via flytekit htmlmin==0.1.12 # via ydata-profiling @@ -405,7 +406,7 @@ pytz==2023.3 # pandas pywavelets==1.4.1 # via imagehash -pyyaml==6.0 +pyyaml==6.0.1 # via # cookiecutter # flytekit