Skip to content

Commit 096e3df

Browse files
committed
Path bugfixing
1 parent 10f3c1a commit 096e3df

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "codeflare-sdk"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
description = "Python SDK for codeflare client"
55

66
license = "GPL-3.0-only"
@@ -21,4 +21,5 @@ keywords = ['codeflare', 'python', 'sdk', 'client', 'batch', 'scale']
2121

2222
[tool.poetry.dependencies]
2323
python = "^3.6"
24-
openshift = ">= 0.12.0"
24+
openshift-client = "1.0.18"
25+
rich = "^12.5"

src/codeflare_sdk/cluster/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from dataclasses import dataclass, field
2+
import pathlib
3+
4+
dir = pathlib.Path(__file__).parent.parent.resolve()
25

36
@dataclass
47
class ClusterConfiguration:
@@ -12,8 +15,7 @@ class ClusterConfiguration:
1215
min_memory: int = 2
1316
max_memory: int = 2
1417
gpu: int = 0
15-
template: str = "src/codeflare_sdk/templates/new-template.yaml"
18+
template: str = f"{dir}/templates/new-template.yaml"
1619
instascale: bool = False
1720
envs: dict = field(default_factory=dict)
1821
image: str = "ghcr.io/ibm-ai-foundation/base:ray1.13.0-py38-gpu-pytorch1.12.0cu116-20220826-202124"
19-

0 commit comments

Comments
 (0)