Skip to content

Commit f316a6c

Browse files
Move codegen-git into codegen.git (#41)
# 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 7916928 commit f316a6c

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

+103
-257
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",
@@ -54,6 +53,8 @@ dependencies = [
5453
"pyinstrument>=5.0.0",
5554
"pip>=24.3.1", # This is needed for some NPM/YARN/PNPM post-install scripts to work!
5655
"emoji>=2.14.0",
56+
"PyGithub==2.5.0",
57+
"GitPython==3.1.44",
5758
]
5859
license = {file = "LICENSE"}
5960
classifiers = [
@@ -101,7 +102,7 @@ keyring-provider = "subprocess"
101102
#extra-index-url = ["https://aws@codegen-922078275900.d.codeartifact.us-east-1.amazonaws.com/pypi/codegen/simple/"]
102103
publish-url = "https://codegen-922078275900.d.codeartifact.us-east-1.amazonaws.com/pypi/codegen/"
103104
[tool.uv.workspace]
104-
members = ["codegen-git"]
105+
members = []
105106

106107
[tool.cython-lint]
107108
max-line-length = 200
@@ -147,7 +148,7 @@ lint.exclude = [
147148
] # disable just linting for notebooks (allow for formatting)
148149
lint.pydocstyle.convention = "google"
149150
[tool.ruff.lint.isort]
150-
known-first-party = ["app", "codegen_git"]
151+
known-first-party = ["app"]
151152
known-third-party = ["git"]
152153
#known-local-folder=[]
153154
[tool.coverage.run]
@@ -200,9 +201,6 @@ junit_logging = "all"
200201
requires = ["hatchling>=1.26.3", "hatch-vcs>=0.4.0", "setuptools-scm>=8.0.0"]
201202
build-backend = "hatchling.build"
202203

203-
[tool.uv.sources]
204-
codegen-git = { workspace = true }
205-
206204
[tool.deptry]
207205
extend_exclude = [".*/eval/test_files/.*.py", ".*conftest.py"]
208206
pep621_dev_dependency_groups = ["types"]
@@ -213,6 +211,7 @@ DEP004 = "pytest"
213211

214212
[tool.deptry.package_module_name_map]
215213
python-levenshtein = ["Levenshtein"]
214+
PyGithub = ["github"]
216215
[tool.cibuildwheel]
217216
build-frontend = "build[uv]"
218217
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)