Skip to content

Commit 4887031

Browse files
authored
Merge branch 'develop' into jayhack-cg-10396-merge-cli-into-gs-repo
2 parents 1b02d81 + f316a6c commit 4887031

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+102
-283
lines changed

.circleci/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ commands:
9696
- run:
9797
command: |
9898
uv run --frozen cibuildwheel --output-dir dist
99-
if [[ "<<parameters.base_packages>>" == "true" ]]; then
100-
uv build --package codegen-git --wheel --sdist
101-
fi
10299
rm dist/.gitignore || true
103100
environment:
104101
HATCH_BUILD_HOOKS_ENABLE: "true"

.github/codecov.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ component_management:
2929
name: codegen-sdk-core
3030
paths:
3131
- src/codegen/sdk/**
32-
- component_id: codegen-git
33-
name: codegen-git
34-
paths:
35-
- codegen-git/**
36-
3732

3833
flag_management:
3934
default_rules:

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
- name: Build release distributions
3333
run: |
3434
uv build --wheel
35-
uv build --package codegen-git --wheel
3635
env:
3736
HATCH_BUILD_HOOKS_ENABLE: true
3837
- name: Upload distributions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ repos:
6969
- id: deptry
7070
pass_filenames: false
7171
always_run: true
72-
entry: bash -c "uv run --frozen --all-extras --dev deptry src codegen-git/src --ignore DEP001"
72+
entry: bash -c "uv run --frozen --all-extras --dev deptry src --ignore DEP001"
7373
- repo: "local"
7474
hooks:
7575
- id: disallowed-words-check

codegen-git/README.md

Whitespace-only changes.

codegen-git/pyproject.toml

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

codegen-git/src/codegen_git/clients/types.py

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

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ dependencies = [
3232
"docstring-parser<1.0,>=0.16",
3333
"plotly<6.0.0,>=5.24.0",
3434
"humanize<5.0.0,>=4.10.0",
35-
"codegen-git",
3635
"autoflake>=2.3.1",
3736
"black>=24.8.0",
3837
"pytest-snapshot>=0.9.0",
@@ -61,6 +60,8 @@ dependencies = [
6160
"unidiff>=0.7.5",
6261
"datamodel-code-generator>=0.26.5",
6362
"toml>=0.10.2",
63+
"PyGithub==2.5.0",
64+
"GitPython==3.1.44",
6465
]
6566
license = {file = "LICENSE"}
6667
classifiers = [
@@ -108,7 +109,7 @@ keyring-provider = "subprocess"
108109
#extra-index-url = ["https://[email protected]/pypi/codegen/simple/"]
109110
publish-url = "https://codegen-922078275900.d.codeartifact.us-east-1.amazonaws.com/pypi/codegen/"
110111
[tool.uv.workspace]
111-
members = ["codegen-git"]
112+
members = []
112113

113114
[tool.cython-lint]
114115
max-line-length = 200
@@ -154,7 +155,7 @@ lint.exclude = [
154155
] # disable just linting for notebooks (allow for formatting)
155156
lint.pydocstyle.convention = "google"
156157
[tool.ruff.lint.isort]
157-
known-first-party = ["app", "codegen_git"]
158+
known-first-party = ["app"]
158159
known-third-party = ["git"]
159160
#known-local-folder=[]
160161
[tool.coverage.run]
@@ -207,9 +208,6 @@ junit_logging = "all"
207208
requires = ["hatchling>=1.26.3", "hatch-vcs>=0.4.0", "setuptools-scm>=8.0.0"]
208209
build-backend = "hatchling.build"
209210

210-
[tool.uv.sources]
211-
codegen-git = { workspace = true }
212-
213211
[tool.deptry]
214212
extend_exclude = [".*/eval/test_files/.*.py", ".*conftest.py"]
215213
pep621_dev_dependency_groups = ["types"]
@@ -220,6 +218,7 @@ DEP004 = "pytest"
220218

221219
[tool.deptry.package_module_name_map]
222220
python-levenshtein = ["Levenshtein"]
221+
PyGithub = ["github"]
223222
[tool.cibuildwheel]
224223
build-frontend = "build[uv]"
225224
skip = ["*-musllinux_i686", "*-manylinux_i686", "*-musllinux_x86_64"]

codegen-git/src/codegen_git/clients/git_integration_client.py renamed to src/codegen/git/clients/git_integration_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from github.Installation import Installation
77
from github.InstallationAuthorization import InstallationAuthorization
88

9-
from codegen_git.schemas.github import GithubType
9+
from codegen.git.schemas.github import GithubType
1010

1111
logger = logging.getLogger(__name__)
1212

codegen-git/src/codegen_git/clients/git_repo_client.py renamed to src/codegen/git/clients/git_repo_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
from github.Tag import Tag
1515
from github.Workflow import Workflow
1616

17-
from codegen_git.clients.github_client_factory import GithubClientFactory
18-
from codegen_git.clients.types import GithubClientType
19-
from codegen_git.schemas.github import GithubScope, GithubType
20-
from codegen_git.schemas.repo_config import RepoConfig
21-
from codegen_git.utils.format import format_comparison
17+
from codegen.git.clients.github_client_factory import GithubClientFactory
18+
from codegen.git.clients.types import GithubClientType
19+
from codegen.git.schemas.github import GithubScope, GithubType
20+
from codegen.git.schemas.repo_config import RepoConfig
21+
from codegen.git.utils.format import format_comparison
2222

2323
logger = logging.getLogger(__name__)
2424

0 commit comments

Comments
 (0)