Skip to content

Commit 4e8b89b

Browse files
committed
standardize naming
Signed-off-by: Peeter Piegaze <[email protected]>
1 parent 9383ff7 commit 4e8b89b

File tree

28 files changed

+28
-3876
lines changed

28 files changed

+28
-3876
lines changed

union-hello-world/cookiecutter.json

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

union-hello-world/{{cookiecutter.project_name}}/uv.lock

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

union-production/cookiecutter.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"project_name": "Union production",
3+
"project_slug": "union_production"
4+
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# {{ cookiecutter.project_name }}
22

3-
A basic code template for Union.
3+
A production Union project.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Union production
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "basic-union-template"
2+
name = "union-production"
33
version = "0.1.0"
4-
description = "Basic Union template"
4+
description = "A Union production project"
55
readme = "README.md"
66
requires-python = ">=3.9,<3.13"
77
dependencies = ["union"]
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Tasks"""
1+
"""Say Hello"""
22

33
import union
44

@@ -7,13 +7,13 @@
77
# Build the image using Union's built-in cloud builder (not locally on your machine)
88
builder="union",
99

10-
# The name of the image.
11-
name="union-standard-image",
10+
# The name of the image. This image will be used by the say_hello task
11+
name="say-hello-image",
1212

1313
# List of packages to install on the image
1414
packages=-["union"],
1515
)
1616

1717
@union.task(container_image=image_spec)
18-
def task_1(name: str) -> str:
18+
def say_hello(name: str) -> str:
1919
return f"Hello, {name}!"
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
"""Workflows"""
1+
"""Hello World"""
22

33
import union
44

55
@union.workflow
6-
def wf_1(name: str = "world") -> str:
6+
def hello_world_wf(name: str = "world") -> str:
77
greeting = say_hello(name=name)
88
return greeting

union-simple/cookiecutter.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"project_name": "Union simple",
3+
"project_slug": "union_simple"
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# {{ cookiecutter.project_name }}
2+
3+
A simple Union project.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "first-project"
2+
name = "union-simple"
33
version = "0.1.0"
4-
description = "First project"
4+
description = "A simple Union project"
55
readme = "README.md"
66
requires-python = ">=3.9,<3.13"
77
dependencies = ["union"]

union-hello-world/{{cookiecutter.project_name}}/workflow/hello-world.py renamed to union-simple/{{cookiecutter.project_name}}/src/hello-world.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
"""Hello World"""
2+
13
import union
24

35
image_spec = union.ImageSpec(
46

57
# Build the image using Union's built-in cloud builder (not locally on your machine)
68
builder="union",
79

8-
# The name of the image.
9-
name="union-hello-world-image",
10+
# The name of the image. This image will be used byt he say_hello task
11+
name="say-hello-image",
1012

1113
# List of packages to install on the image
1214
packages=-["union"],
1315
)
1416

1517
@union.task(container_image=image_spec)
16-
def hello_world_task(name: str) -> str:
18+
def say_hello(name: str) -> str:
1719
return f"Hello, {name}!"
1820

1921
@union.workflow

union-standard/cookiecutter.json

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

union-standard/{{cookiecutter.project_name}}/README.md

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

union-standard/{{cookiecutter.project_name}}/docs/docs.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

union-standard/{{cookiecutter.project_name}}/uv.lock

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

0 commit comments

Comments
 (0)