Skip to content

Commit 1ac11ce

Browse files
authored
chore: update unstructured-client version (#7)
Update unstructured-client version and add additional updates from PRs that were not merged because of failing CI. The workflows for CI still need to be fixed in a follow-up PR because of caching problems.
1 parent 63eb150 commit 1ac11ce

File tree

7 files changed

+1194
-1110
lines changed

7 files changed

+1194
-1110
lines changed

.github/workflows/_lint.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,19 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v4
3636

37+
- name: Check disk space
38+
run: df -h
39+
3740
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
3841
uses: "./.github/actions/poetry_setup"
3942
with:
4043
python-version: ${{ matrix.python-version }}
4144
poetry-version: ${{ env.POETRY_VERSION }}
4245
working-directory: ${{ inputs.working-directory }}
4346
cache-key: lint-with-extras
47+
48+
- name: Check disk space
49+
run: df -h
4450

4551
- name: Check Poetry File
4652
shell: bash
@@ -52,7 +58,7 @@ jobs:
5258
shell: bash
5359
working-directory: ${{ inputs.working-directory }}
5460
run: |
55-
poetry lock --check
61+
poetry check --lock
5662
5763
- name: Install dependencies
5864
# Also installs dev/lint/test/typing dependencies, to ensure we have
@@ -67,6 +73,9 @@ jobs:
6773
run: |
6874
poetry install --with lint,typing
6975
76+
- name: Check disk space
77+
run: df -h
78+
7079
- name: Get .mypy_cache to speed up mypy
7180
uses: actions/cache@v4
7281
env:
@@ -75,13 +84,14 @@ jobs:
7584
path: |
7685
${{ env.WORKDIR }}/.mypy_cache
7786
key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}
78-
87+
restore-keys: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-
7988

8089
- name: Analysing the code with our lint
8190
working-directory: ${{ inputs.working-directory }}
8291
run: |
8392
make lint_package
8493
94+
8595
- name: Install unit+integration test dependencies
8696
working-directory: ${{ inputs.working-directory }}
8797
run: |
@@ -95,6 +105,13 @@ jobs:
95105
path: |
96106
${{ env.WORKDIR }}/.mypy_cache_test
97107
key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}
108+
109+
- name: Clean up temporary files
110+
run: |
111+
rm -rf ${{ env.WORKDIR }}/.mypy_cache
112+
rm -rf ${{ env.WORKDIR }}/.mypy_cache_test
113+
rm -rf ${{ env.WORKDIR }}/.ruff_cache
114+
poetry cache clear pypi --all
98115
99116
- name: Analysing the code with our lint
100117
working-directory: ${{ inputs.working-directory }}

.github/workflows/_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
working-directory: ${{ inputs.working-directory }}
5555

5656
- name: Upload build
57-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5858
with:
5959
name: dist
6060
path: ${{ inputs.working-directory }}/dist/
@@ -210,7 +210,7 @@ jobs:
210210
working-directory: ${{ inputs.working-directory }}
211211
cache-key: release
212212

213-
- uses: actions/download-artifact@v3
213+
- uses: actions/download-artifact@v4
214214
with:
215215
name: dist
216216
path: ${{ inputs.working-directory }}/dist/
@@ -249,7 +249,7 @@ jobs:
249249
working-directory: ${{ inputs.working-directory }}
250250
cache-key: release
251251

252-
- uses: actions/download-artifact@v3
252+
- uses: actions/download-artifact@v4
253253
with:
254254
name: dist
255255
path: ${{ inputs.working-directory }}/dist/

.github/workflows/_test_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
working-directory: ${{ inputs.working-directory }}
4949

5050
- name: Upload build
51-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
5252
with:
5353
name: test-dist
5454
path: ${{ inputs.working-directory }}/dist/
@@ -76,7 +76,7 @@ jobs:
7676
steps:
7777
- uses: actions/checkout@v4
7878

79-
- uses: actions/download-artifact@v3
79+
- uses: actions/download-artifact@v4
8080
with:
8181
name: test-dist
8282
path: ${{ inputs.working-directory }}/dist/

.github/workflows/check_diffs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
POETRY_VERSION: "1.8.3"
2121

2222
jobs:
23+
2324
build:
2425
runs-on: ubuntu-latest
2526
steps:
@@ -35,10 +36,11 @@ jobs:
3536
outputs:
3637
dirs-to-lint: ${{ steps.set-matrix.outputs.dirs-to-lint }}
3738
dirs-to-test: ${{ steps.set-matrix.outputs.dirs-to-test }}
39+
3840
lint:
3941
name: cd ${{ matrix.working-directory }}
4042
needs: [ build ]
41-
if: ${{ needs.build.outputs.dirs-to-lint != '[]' }}
43+
if: ${{ needs.build.outputs.dirs-to-lint && needs.build.outputs.dirs-to-lint != '[]' }}
4244
strategy:
4345
matrix:
4446
working-directory: ${{ fromJson(needs.build.outputs.dirs-to-lint) }}

libs/unstructured/langchain_unstructured/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from langchain_unstructured.document_loaders import UnstructuredLoader
44

55
try:
6-
__version__ = metadata.version(__package__)
6+
__version__ = metadata.version(__package__) # type: ignore
77
except metadata.PackageNotFoundError:
88
# Case where package metadata is not available.
99
__version__ = ""

0 commit comments

Comments
 (0)