Skip to content

Commit

Permalink
Bump Dependencies to Fix Security Issues (#1208)
Browse files Browse the repository at this point in the history
* bump dependencies

* modify mypy

* fix unstructured

* new poetry lock

* hold back onnx

* improve comment
  • Loading branch information
karanataryn authored Mar 5, 2025
1 parent 88e991b commit e571919
Show file tree
Hide file tree
Showing 13 changed files with 10,569 additions and 8,665 deletions.
2,782 changes: 1,466 additions & 1,316 deletions apps/integration/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/integration/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "Apache 2.0"
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
python = ">=3.9.2,<3.13"
docker = "^7.0.0"
pytest = "7.4.0"
opensearch-py = "^2.5.0"
Expand Down
4,285 changes: 2,219 additions & 2,066 deletions apps/jupyter/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/jupyter/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"
repository = "https://github.com/aryn-ai/sycamore.git"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
python = ">=3.9.2,<3.13"
sycamore-ai = {extras = ["opensearch"], version = "^0.1.30"}

jupyterlab = "^4.0.11"
Expand Down
445 changes: 230 additions & 215 deletions lib/aryn-sdk/poetry.lock

Large diffs are not rendered by default.

2,686 changes: 1,463 additions & 1,223 deletions lib/poetry-lock/poetry.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion lib/poetry-lock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"
repository = "https://github.com/aryn-ai/sycamore.git"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
python = ">=3.9.2,<3.13"
# required older version
protobuf = "4.25.3" # rps
fsspec = "2024.2.0" # sycamore (via datasets)
Expand All @@ -25,6 +25,7 @@ weaviate-client = "4.6.4" # Failes typechecking with 4.7.0
scipy = "1.13.1"
networkx = "3.2.1"
ipython = "8.18.1"
onnxruntime = "1.19.0" # Required by unstructured

# Package versions from being yanked
matplotlib = "3.9.0"
Expand All @@ -35,6 +36,9 @@ nltk = ">3.9.0"
#requests = ">=2.32.0"
scrapy = ">=2.11.2"
jinja2 = ">=3.1.5"
cryptography = ">=44.0.1"
tornado = "^6.4.2"
pillow = "^11.1.0"
# black = ">=24.3.0"

[build-system]
Expand Down
4,505 changes: 2,589 additions & 1,916 deletions lib/sycamore/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/sycamore/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ packages = [{ include = "sycamore" }]
"Documentation" = "https://sycamore.readthedocs.io"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
python = ">=3.9.2,<3.13"

pandas = "^2.1.1"
pdf2image = "^1.16.3"
Expand Down Expand Up @@ -81,7 +81,7 @@ torchvision = { version = "^0.18.1", optional = true }
transformers = { version = "^4.43.1", optional = true }

# Legacy partitioner dependencies
unstructured = { version = "0.10.20", optional = true }
unstructured = { version = "^0.16.2", extras=["pdf"], optional = true }
python-pptx = {version = "^0.6.22", optional = true }
nanoid = "^2.0.0"
nltk = { version = "^3.9.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion lib/sycamore/sycamore/materialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from sycamore.transforms.base import rename

if TYPE_CHECKING:
from ray import Dataset
from ray.data import Dataset
import pyarrow


Expand Down
2 changes: 1 addition & 1 deletion lib/sycamore/sycamore/plan_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Callable, Optional, TYPE_CHECKING

if TYPE_CHECKING:
from ray import Dataset
from ray.data import Dataset
from sycamore.context import Context


Expand Down
4,510 changes: 2,589 additions & 1,921 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ repository = "https://github.com/aryn-ai/sycamore.git"

[tool.poetry.dependencies]
# streamlit in query-ui disallows 3.9.7
python = ">=3.9,<3.9.7 || >3.9.7,<3.13"
# cryptography in sycamore-ai disallows 3.9.1, 3.9.0, need >44.0.1 due to CVE-2024-12797: https://github.com/aryn-ai/sycamore/security/dependabot/327
python = ">=3.9.2,<3.9.7 || >3.9.7,<3.13"

sycamore-ai = "^0.1.13"

Expand Down

0 comments on commit e571919

Please sign in to comment.