Skip to content

Commit 4be0850

Browse files
committed
feat(copier): adds a better readme where the sample.env was
1 parent 84a8095 commit 4be0850

7 files changed

Lines changed: 10 additions & 41 deletions

File tree

src/copier_template/src/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Setting up a development environment
2+
1. Build the dev container
3+
2. run "uv lock" to generate the uv.lock file
4+
3. Create .env in this folder (with the path src/.env) containing the following variables:
5+
HOST=https://argo-workflows.workflows.diamond.ac.uk/ (to submit to the production repo)
6+
IMAGE= (usually python 3.10)
7+
TOKEN=
8+
NAMESPACE= (the cluster you wish to run the templates on)
9+
AUTH=

src/copier_template/src/sample.env

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

src/copier_template/src/{{ project_name }}/submit_to_argo.py.jinja

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

src/copier_template/src/{{ project_name }}/workflow_definitions/create_example_template.py.jinja

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ from hera.workflows import (
1111
from hera.workflows import models as m
1212
from hera.workflows.archive import NoneArchiveStrategy
1313

14-
# from python_interface_to_workflows.prepare_to_submit import prepare_to_submit
15-
16-
# prepare_to_submit(True)
17-
1814

1915
@script(
2016
image=str(os.environ.get("IMAGE")),
@@ -191,6 +187,3 @@ with Workflow(
191187

192188
with open("example.yaml", "w") as div:
193189
div.write(w.to_yaml()) # pyright: ignore[reportUnknownMemberType]
194-
195-
196-
# w.create()

src/python_interface_to_workflows/templates/divisionyaml.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- name: json-output
3434
path: /output-dir/output.json
3535
script:
36-
image: None
36+
image: python:3.10
3737
source: |-
3838
import os
3939
import sys

src/python_interface_to_workflows/workflow_definitions/create_division_yaml.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
)
1111
from hera.workflows import models as m
1212

13-
# from python_interface_to_workflows.prepare_to_submit import prepare_to_submit
14-
15-
# prepare_to_submit(True)
16-
1713

1814
@script(
1915
volume_mounts=[m.VolumeMount(name="output-dir", mount_path="/output-dir/")],
@@ -53,6 +49,3 @@ def do_division(a: int, b: int):
5349

5450
with open("divisionyaml.yaml", "w") as div:
5551
div.write(w.to_yaml()) # pyright: ignore[reportUnknownMemberType]
56-
57-
58-
# w.create()

src/python_interface_to_workflows/workflow_definitions/create_example_template.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
from hera.workflows import models as m
1212
from hera.workflows.archive import NoneArchiveStrategy
1313

14-
# from python_interface_to_workflows.prepare_to_submit import prepare_to_submit
15-
16-
# prepare_to_submit(True)
17-
1814

1915
@script(
2016
image=str(os.environ.get("IMAGE")),
@@ -191,6 +187,3 @@ def to_hdf5(paths: str):
191187

192188
with open("example.yaml", "w") as div:
193189
div.write(w.to_yaml()) # pyright: ignore[reportUnknownMemberType]
194-
195-
196-
# w.create()

0 commit comments

Comments
 (0)