File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
python_modules/libraries/dagster-components/dagster_components Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def generate_component_command(
40
40
)
41
41
sys .exit (1 )
42
42
43
- context = CodeLocationProjectContext .from_root_path (
43
+ context = CodeLocationProjectContext .from_code_location_path (
44
44
find_enclosing_code_location_root_path (Path .cwd ()),
45
45
ComponentRegistry .from_entry_point_discovery (builtin_component_lib = builtin_component_lib ),
46
46
)
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def list_component_types_command(ctx: click.Context) -> None:
32
32
)
33
33
sys .exit (1 )
34
34
35
- context = CodeLocationProjectContext .from_root_path (
35
+ context = CodeLocationProjectContext .from_code_location_path (
36
36
find_enclosing_code_location_root_path (Path .cwd ()),
37
37
ComponentRegistry .from_entry_point_discovery (builtin_component_lib = builtin_component_lib ),
38
38
)
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def build_component_defs(
138
138
"""
139
139
from dagster ._core .definitions .definitions_class import Definitions
140
140
141
- context = CodeLocationProjectContext .from_root_path (
141
+ context = CodeLocationProjectContext .from_code_location_path (
142
142
code_location_path , registry or ComponentRegistry .from_entry_point_discovery ()
143
143
)
144
144
Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ def _is_code_location_root(path: Path) -> bool:
46
46
47
47
class CodeLocationProjectContext :
48
48
@classmethod
49
- def from_root_path (cls , root_path : Path , component_registry : "ComponentRegistry" ) -> Self :
50
- if not _is_code_location_root (root_path ):
49
+ def from_code_location_path (cls , path : Path , component_registry : "ComponentRegistry" ) -> Self :
50
+ if not _is_code_location_root (path ):
51
51
raise DagsterError (
52
- f"Path { root_path } is not a code location root. Must have a pyproject.toml with a [tool.dagster] section."
52
+ f"Path { path } is not a code location root. Must have a pyproject.toml with a [tool.dagster] section."
53
53
)
54
54
55
55
return cls (
56
- root_path = str (root_path ),
57
- name = os .path .basename (root_path ),
56
+ root_path = str (path ),
57
+ name = os .path .basename (path ),
58
58
component_registry = component_registry ,
59
59
)
60
60
You can’t perform that action at this time.
0 commit comments