Skip to content

Commit b817b31

Browse files
Move gscli into codegen.gscli (#42)
# 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 <jiaxi.edwardli@gmail.com>
1 parent f316a6c commit b817b31

File tree

18 files changed

+12
-10
lines changed

18 files changed

+12
-10
lines changed

docs/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
from codegen.sdk.enums import ProgrammingLanguage
1212
from codegen.sdk.typescript.class_definition import TSClass
1313
from codegen.sdk.typescript.file import TSFile
14-
from gscli.generate.runner_imports import EXTERNAL_IMPORTS
14+
from codegen.gscli.generate.runner_imports import EXTERNAL_IMPORTS
15+
1516
SAMPLE_FILENAME = {
1617
ProgrammingLanguage.PYTHON: "sample.py",
1718
ProgrammingLanguage.TYPESCRIPT: "sample.tsx",
@@ -20,6 +21,7 @@
2021
language: Path(__file__).parent / "samples" / name for language, name in SAMPLE_FILENAME.items()}
2122
SAMPLE_INPUT = {language: path.read_text() for language, path in SAMPLE_INPUT_PATH.items()}
2223
DEFAULT_LANGUAGE = ProgrammingLanguage.TYPESCRIPT
24+
2325
@pytest.fixture(scope="function")
2426
def codebase(tmpdir):
2527
with get_codebase_session(tmpdir, programming_language=DEFAULT_LANGUAGE, files={SAMPLE_FILENAME[DEFAULT_LANGUAGE]: SAMPLE_INPUT[DEFAULT_LANGUAGE]}) as codebase:

hatch.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ macos-max-compat = false
7272
[build]
7373
packages = [
7474
"src/codegen/sdk",
75+
"src/codegen/gscli",
7576
"src/graph_visualization",
76-
"src/gscli",
7777
]
7878

7979
[metadata.hooks.vcs]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ classifiers = [
6262
"Intended Audience :: Developers", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Topic :: Software Development", "Development Status :: 4 - Beta", "Environment :: MacOS X", "Programming Language :: Python :: 3", "Programming Language :: Python", ]
6363

6464
[project.scripts]
65-
gs = "gscli.main:main"
65+
gs = "codegen.gscli.main:main"
6666
run_string = "codegen.sdk.core.main:main"
6767
[project.optional-dependencies]
6868
types = [
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)