Skip to content

Commit 031b0cf

Browse files
authored
Bump dependencies (#4265)
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Dependency upgrades (especially `transformers` major version and `weaviate-client` API shift) can introduce runtime or test regressions; CI runner change may also surface environment-specific failures. > > **Overview** > Bumps the release to `0.21.7` and updates dependency pins in `pyproject.toml`, notably moving to `wrapt` 2.x+, `transformers` 5.x, and `weaviate-client` 4.x (including constraint updates). > > Updates the Weaviate staging integration test to use the `weaviate.connect_to_embedded()` / `collections.*` API instead of the legacy `Client`/schema API. CI unit-test jobs are moved from `ubuntu-latest` to the `opensource-linux-8core` runner, and `.gitignore` now ignores `.venv*` directories. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 8e26501. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent d0f8620 commit 031b0cf

7 files changed

Lines changed: 447 additions & 383 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
strategy:
7474
matrix:
7575
python-version: ["3.11", "3.12", "3.13"]
76-
runs-on: ubuntu-latest
76+
runs-on: opensource-linux-8core
7777
needs: [setup, lint]
7878
steps:
7979
- uses: actions/checkout@v4
@@ -144,7 +144,7 @@ jobs:
144144
uv-extras: "--extra pptx"
145145
- extra: xlsx
146146
uv-extras: "--extra xlsx"
147-
runs-on: ubuntu-latest
147+
runs-on: opensource-linux-8core
148148
needs: [setup, lint, test_unit_no_extras]
149149
steps:
150150
- uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ celerybeat.pid
105105

106106
# Environments
107107
.env
108-
.venv
108+
.venv*
109109
env/
110110
venv/
111111
ENV/

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.21.7
2+
3+
### Enhancements
4+
- **Bump dependencies**: Update pinned dependency versions in the lockfile.
5+
16
## 0.21.6
27

38
### Enhancements

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies = [
4242
"tqdm>=4.67.3, <5.0.0",
4343
"typing-extensions>=4.15.0, <5.0.0",
4444
"unstructured-client>=0.25.9, <1.0.0",
45-
"wrapt>=1.0.0, <2.0.0",
45+
"wrapt>=2.1.1, <3.0.0",
4646
"filelock>=3.12.0,<4.0.0",
4747
]
4848

@@ -122,7 +122,7 @@ huggingface = [
122122
"sentencepiece>=0.2.0, <1.0.0",
123123
"torch>=2.10.0, <3.0.0; platform_system != 'Windows'",
124124
"torch>=2.10.0, <3.0.0; platform_system == 'Windows' and python_version < '3.13'",
125-
"transformers>=4.55.4, <5.0.0",
125+
"transformers>=5.2.0, <6.0.0",
126126
]
127127
local-inference = [
128128
"unstructured[all-docs]",
@@ -170,7 +170,7 @@ test = [
170170
"types-requests>=2.32.4.20260107, <3.0.0",
171171
"types-tabulate>=0.9.0.20241207, <1.0.0",
172172
"unstructured-pytesseract>=0.3.15, <1.0.0",
173-
"weaviate-client>=3.26.7, <4.0.0",
173+
"weaviate-client>=4.20.1, <5.0.0",
174174
]
175175
dev = [
176176
"pre-commit>=4.5.1, <5.0.0",
@@ -198,7 +198,7 @@ constraint-dependencies = [
198198
"tokenizers>=0.21",
199199
"unstructured-client>=0.25.9",
200200
"urllib3>=2.0.0",
201-
"weaviate-client>=3.26.7",
201+
"weaviate-client>=4.20.1",
202202
]
203203

204204
[tool.pyright]

test_unstructured/staging/test_weaviate.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
# NOTE(robinson) - allows tests that do not require the weaviate client to
88
# run for the docker container
99
with contextlib.suppress(ModuleNotFoundError):
10-
from weaviate import Client
11-
from weaviate.embedded import EmbeddedOptions
10+
import weaviate
1211

1312
from unstructured.partition.json import partition_json
1413
from unstructured.staging.weaviate import (
@@ -58,6 +57,10 @@ def test_stage_for_weaviate():
5857
@pytest.mark.skipif(is_in_docker, reason="Skipping this test in Docker container")
5958
def test_weaviate_schema_is_valid():
6059
unstructured_class = create_unstructured_weaviate_class()
61-
schema = {"classes": [unstructured_class]}
62-
client = Client(embedded_options=EmbeddedOptions())
63-
client.schema.create(schema)
60+
class_name = unstructured_class["class"]
61+
client = weaviate.connect_to_embedded()
62+
try:
63+
client.collections.delete(class_name)
64+
client.collections.create_from_dict(unstructured_class)
65+
finally:
66+
client.close()

unstructured/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.21.6" # pragma: no cover
1+
__version__ = "0.21.7" # pragma: no cover

uv.lock

Lines changed: 426 additions & 370 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)