Skip to content

Commit 63eb150

Browse files
author
Erick Friis
authored
migrate Unstructured (#1)
1 parent c4b3f74 commit 63eb150

26 files changed

+5733
-66
lines changed

.github/scripts/check_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
from typing import Dict
44

5-
LIB_DIRS = ["libs/{lib}"]
5+
LIB_DIRS = ["libs/unstructured"]
66

77
if __name__ == "__main__":
88
files = sys.argv[1:]

.github/workflows/_compile_integration_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
description: "From which folder this pipeline executes"
1010

1111
env:
12-
POETRY_VERSION: "1.7.1"
12+
POETRY_VERSION: "1.8.3"
1313

1414
jobs:
1515
build:

.github/workflows/_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
description: "From which folder this pipeline executes"
1010

1111
env:
12-
POETRY_VERSION: "1.7.1"
12+
POETRY_VERSION: "1.8.3"
1313
WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}
1414

1515
# This env var allows us to get inline annotations when ruff has complaints.

.github/workflows/_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ on:
1212
working-directory:
1313
required: true
1414
type: string
15-
default: 'libs/{lib}'
15+
default: 'libs/unstructured'
1616

1717
env:
1818
PYTHON_VERSION: "3.11"
19-
POETRY_VERSION: "1.7.1"
19+
POETRY_VERSION: "1.8.3"
2020

2121
jobs:
2222
build:
@@ -159,7 +159,7 @@ jobs:
159159

160160
- name: Run integration tests
161161
env:
162-
PARTNER_API_KEY: ${{ secrets.PARTNER_API_KEY }}
162+
UNSTRUCTURED_API_KEY: ${{ secrets.UNSTRUCTURED_API_KEY }}
163163
run: make integration_tests
164164
working-directory: ${{ inputs.working-directory }}
165165

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
description: "From which folder this pipeline executes"
1010

1111
env:
12-
POETRY_VERSION: "1.7.1"
12+
POETRY_VERSION: "1.8.3"
1313

1414
jobs:
1515
build:

.github/workflows/_test_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
description: "From which folder this pipeline executes"
1010

1111
env:
12-
POETRY_VERSION: "1.7.1"
12+
POETRY_VERSION: "1.8.3"
1313
PYTHON_VERSION: "3.10"
1414

1515
jobs:

.github/workflows/check_diffs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
env:
20-
POETRY_VERSION: "1.7.1"
20+
POETRY_VERSION: "1.8.3"
2121

2222
jobs:
2323
build:

README.md

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,5 @@
1-
# 🦜️🔗 LangChain {partner}
1+
# 🦜️🔗 LangChain Unstructured
22

3-
This repository contains 1 package with {partner} integrations with LangChain:
3+
This repository contains 1 package with Unstructured integrations with LangChain:
44

5-
- [langchain-{package_lower}](https://pypi.org/project/langchain-{package_lower}/)
6-
7-
## Initial Repo Checklist (Remove this section after completing)
8-
9-
This setup assumes that the partner package is already split. For those instructions,
10-
see [these docs](https://python.langchain.com/docs/contributing/integrations#partner-packages).
11-
12-
Code (auto ecli)
13-
14-
- [ ] Fill out the readme above (for folks that follow pypi link)
15-
- [ ] Copy package into /libs folder
16-
- [ ] Update these fields in /libs/*/pyproject.toml
17-
18-
- `tool.poetry.repository`
19-
- `tool.poetry.urls["Source Code"]`
20-
21-
Workflow code (auto ecli)
22-
23-
- [ ] Populate .github/workflows/_release.yml with `on.workflow_dispatch.inputs.working-directory.default`
24-
- [ ] Configure `LIB_DIRS` in .github/scripts/check_diff.py
25-
26-
Workflow code (manual)
27-
28-
- [ ] Add secrets as env vars in .github/workflows/_release.yml
29-
30-
In github (manual)
31-
32-
- [ ] Add integration testing secrets in Github (ask Erick for help)
33-
- [ ] Add partner collaborators in Github (ask Erick for help)
34-
- [ ] "Allow auto-merge" in General Settings
35-
- [ ] Only "Allow squash merging" in General Settings
36-
- [ ] Set up ruleset matching CI build (ask Erick for help)
37-
- name: ci build
38-
- enforcement: active
39-
- bypass: write
40-
- target: default branch
41-
- rules: restrict deletions, require status checks ("CI Success"), block force pushes
42-
- [ ] Set up ruleset
43-
- name: require prs
44-
- enforcement: active
45-
- bypass: none
46-
- target: default branch
47-
- rules: restrict deletions, require a pull request before merging (0 approvals, no boxes), block force pushes
48-
49-
Pypi (manual)
50-
51-
- [ ] Add new repo to test-pypi and pypi trusted publishing (ask Erick for help)
52-
53-
Slack
54-
55-
- [ ] Set up release alerting in Slack (ask Erick for help)
56-
57-
release:
58-
/github subscribe langchain-ai/langchain-{partner_lower} releases workflows:{name:"release"}
59-
/github unsubscribe langchain-ai/langchain-{partner_lower} issues pulls commits deployments
5+
- [langchain-unstructured](https://pypi.org/project/langchain-unstructured/)

libs/unstructured/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__pycache__

libs/unstructured/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 LangChain, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)