Skip to content

Commit ac43090

Browse files
authored
chore: refactor layout for multiple packages (#99)
* added lint file for each package * moved langchain package * Added template files for monorepo * move ci into package folder * fix lint error * move files to correct path * remove redundant init file * update readme * do not rename repo yet * keep original readme for now
1 parent e4bdcb3 commit ac43090

23 files changed

+367
-12
lines changed

.github/workflows/lint.yaml renamed to .github/workflows/lint-toolbox-langchain.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: lint
15+
name: langchain
1616
on:
1717
pull_request:
18+
paths:
19+
- 'packages/toolbox-langchain/**'
20+
- '!packages/toolbox-langchain/**/*.md'
1821
pull_request_target:
1922
types: [labeled]
2023

@@ -29,6 +32,9 @@ jobs:
2932
concurrency:
3033
group: ${{ github.workflow }}-${{ github.ref }}
3134
cancel-in-progress: true
35+
defaults:
36+
run:
37+
working-directory: ./packages/toolbox-langchain
3238
permissions:
3339
contents: 'read'
3440
issues: 'write'

CHANELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Please refer to each API's `CHANGELOG.md` file under the `packages/` directory
2+
3+
Changelogs
4+
-----
5+
- [toolbox-langchain==0.1.0](https://github.com/googleapis/genai-toolbox-langchain-python/tree/main/packages/toolbox-langchain/CHANGELOG.md)
File renamed without changes.

DEVELOPER.md renamed to packages/toolbox-langchain/DEVELOPER.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ Below are the details to set up a development environment and run tests.
44

55
## Install
66
1. Clone the repository:
7+
TODO: Correct repo URL
78
```bash
89
git clone https://github.com/googleapis/genai-toolbox-langchain-python
910
```
10-
1. Navigate to the repo directory:
11+
1. Navigate to the package directory:
1112
```bash
12-
cd genai-toolbox-langchain-python
13+
cd genai-toolbox-langchain-python/packages/toolbox-langchain
1314
```
1415
1. Install the package in editable mode, so changes are reflected without
1516
reinstall:
@@ -22,9 +23,9 @@ Below are the details to set up a development environment and run tests.
2223
> those changes reflected immediately without reinstalling the package.
2324
2425
## Test
25-
1. Navigate to the repo directory if needed:
26+
1. Navigate to the package directory if needed:
2627
```bash
27-
cd genai-toolbox-langchain-python
28+
cd genai-toolbox-langchain-python/packages/toolbox-langchain
2829
```
2930
1. Install the SDK and test dependencies:
3031
```bash

0 commit comments

Comments
 (0)