Skip to content

Commit eb99a02

Browse files
authored
[Workflows] Add project setup script (#20)
1 parent 38699ad commit eb99a02

File tree

2 files changed

+43
-24
lines changed

2 files changed

+43
-24
lines changed

empty_workflow.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

project_setup.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright 2025 Iguazio
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
16+
import mlrun
17+
18+
19+
def setup(project: mlrun.projects.MlrunProject) -> mlrun.projects.MlrunProject:
20+
project.set_function(
21+
name="prep-data",
22+
func="prep_data.py",
23+
kind="job",
24+
handler="prep_data",
25+
)
26+
27+
project.set_function(
28+
name="gen-iris",
29+
func="gen_iris.py",
30+
kind="job",
31+
handler="iris_generator",
32+
)
33+
34+
project.set_function("hub://auto-trainer", "auto-trainer")
35+
project.set_function("hub://v2-model-server", "serving")
36+
project.set_function("hub://describe")
37+
38+
project.log_artifact(
39+
"data",
40+
target_path="https://s3.wasabisys.com/iguazio/data/iris/iris.data.raw.csv",
41+
)
42+
43+
return project

0 commit comments

Comments
 (0)