Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
*.csv
data
data
__pycache__/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
]
requires-python = ">=3.12"
dependencies = [
"flyte==2.0.0b26",
"flyte@git+https://github.com/flyteorg/flyte-sdk.git@7fb7d693c99ae44fc720ee78ad11ad533c5447de",
]

[build-system]
Expand Down
Binary file modified src/uv_project_example/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 8 additions & 5 deletions src/uv_project_example/main_wfs.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import flyte
from flyte import Image

from src.uv_project_example.library_a.utils import some_test
from uv_project_example.library_a.utils import some_test

from src.core.config import ROOT_DIR
from core.config import ROOT_DIR

image = (
Image.from_debian_base(python_version=(3, 12))
Image.from_base("python:3.12-slim-bookworm").clone(name="flyte")
.with_apt_packages("git")
.with_apt_packages("ca-certificates", "build-essential")
.with_uv_project(pyproject_file=ROOT_DIR / "pyproject.toml")
# .with_source_folder(ROOT_DIR / "src" / "data_loading")
.with_commands("mkdir -p ./src/data_loading")
.with_source_folder(ROOT_DIR / "src" / "data_loading", dst="./src/data_loading")
.with_pip_packages("git+https://github.com/flyteorg/flyte-sdk.git@7fb7d693c99ae44fc720ee78ad11ad533c5447de")
)


Expand Down Expand Up @@ -39,6 +42,6 @@ async def t1(data: str = "hello") -> str:
if __name__ == "__main__":
# Works with and without root_dir
flyte.init_from_config(root_dir=ROOT_DIR) # should we make this work?
run = flyte.with_runcontext(mode="remote", copy_style="all").run(t1, data="world")
run = flyte.with_runcontext(mode="remote").run(t1, data="world")
print(run.name)
print(run.url)
16 changes: 5 additions & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.