Skip to content

Commit 8b64344

Browse files
Move graph_sitter_build into codebase.gsbuild (#44)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed - [ ] I have read and agree to the [Contributor License Agreement](../CLA.md) --------- Co-authored-by: Edward Li <[email protected]>
1 parent 86a5448 commit 8b64344

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hatch.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ source_archive = "https://github.com/codegen-sh/codegen-sdk/archive/{commit_hash
8585

8686
[build.targets.wheel.hooks.custom]
8787
enable-by-default = false
88-
path = "src/graph_sitter_build/build.py"
88+
path = "src/codegen/gsbuild/build.py"
8989
require-runtime-dependencies = true
9090
[envs.default]
9191
installer = "uv"

src/graph_sitter_build/build.py renamed to src/codegen/gsbuild/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def update_init_file(file: Path) -> None:
9-
path = Path(__file__).parent.parent
9+
path = Path(__file__).parent.parent.parent
1010
sys.path.append(str(path))
1111
from codegen.gscli.generate.runner_imports import generate_exported_modules, get_runner_imports
1212

@@ -16,7 +16,7 @@ def update_init_file(file: Path) -> None:
1616

1717

1818
class SpecialBuildHook(BuildHookInterface):
19-
PLUGIN_NAME = "graph_sitter_build"
19+
PLUGIN_NAME = "codegen_build"
2020

2121
def initialize(self, version: str, build_data: dict[str, Any]) -> None:
2222
file = Path(self.root) / "src" / "codegen" / "sdk" / "__init__.py"

0 commit comments

Comments
 (0)