Skip to content

Commit 2c082ea

Browse files
authored
chore: update unstructured to 0.18.32 and setuptools to 82.0.0 (#112)
1 parent da0d77a commit 2c082ea

File tree

4 files changed

+395
-259
lines changed

4 files changed

+395
-259
lines changed

.ort.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ resolutions:
2525
- message: ".*PyPI::aiohappyeyeballs:2\\.4\\.0.*"
2626
reason: "CANT_FIX_EXCEPTION"
2727
comment: "PSF-2.0 license: https://github.com/aio-libs/aiohappyeyeballs/blob/main/LICENSE"
28+
- message: ".*PyPI::cffi:2\\.0\\.0.*"
29+
reason: "CANT_FIX_EXCEPTION"
30+
comment: "MIT License: https://github.com/python-cffi/cffi/blob/v2.0.0/LICENSE"
31+
- message: ".*PyPI::cryptography:46\\.0\\.5.*"
32+
reason: "CANT_FIX_EXCEPTION"
33+
comment: "Apache-2.0 OR BSD-3-Clause: https://github.com/pyca/cryptography/blob/46.0.5/LICENSE"
2834
- message: ".*PyPI::contourpy:1\\.3\\.0.*"
2935
reason: "CANT_FIX_EXCEPTION"
3036
comment: "BSD 3-Clause New or Revised License: https://github.com/contourpy/contourpy/blob/v1.3.0/LICENSE"
@@ -39,7 +45,7 @@ resolutions:
3945
comment: "BSD 3-Clause License: https://github.com/carpedm20/emoji/blob/master/LICENSE.txt"
4046
- message: ".*PyPI::fastapi:0\\.120\\.3.*"
4147
reason: "CANT_FIX_EXCEPTION"
42-
comment: "MIT License: https://github.com/fastapi/fastapi/blob/0.120.3/LICENSE"
48+
comment: "MIT License: https://github.com/fastapi/fastapi/blob/0.120.3/LICENSE"
4349
- message: ".*PyPI::fsspec:2024\\.6\\.1.*"
4450
reason: "CANT_FIX_EXCEPTION"
4551
comment: "BSD 3-Clause New or Revised License: https://github.com/fsspec/filesystem_spec/blob/master/LICENSE"
@@ -55,6 +61,9 @@ resolutions:
5561
- message: ".*PyPI::kiwisolver:1\\.4\\.7.*"
5662
reason: "CANT_FIX_EXCEPTION"
5763
comment: "BSD 3-Clause New or Revised License: https://github.com/nucleic/kiwi/blob/1.4.7/LICENSE"
64+
- message: ".*PyPI::llvmlite:0\\.46\\.0.*"
65+
reason: "CANT_FIX_EXCEPTION"
66+
comment: "BSD 2-Clause Simplified License: https://github.com/numba/llvmlite/blob/v0.46.0/LICENSE"
5867
- message: ".*PyPI::networkx:3\\.3.*"
5968
reason: "CANT_FIX_EXCEPTION"
6069
comment: "BSD 3-Clause New or Revised License: https://github.com/networkx/networkx/blob/main/LICENSE.txt"
@@ -73,6 +82,9 @@ resolutions:
7382
- message: ".*PyPI::pandas:2\\.2\\.2.*"
7483
reason: "CANT_FIX_EXCEPTION"
7584
comment: "BSD 3-Clause New or Revised License: https://github.com/pandas-dev/pandas/blob/main/LICENSE"
85+
- message: ".*PyPI::pillow:12\\.1\\.1.*"
86+
reason: "CANT_FIX_EXCEPTION"
87+
comment: "MIT License: https://github.com/python-pillow/Pillow/blob/12.1.1/LICENSE"
7688
- message: ".*PyPI::pdfminer-six:20251230.*"
7789
reason: "CANT_FIX_EXCEPTION"
7890
comment: "MIT License: https://github.com/pdfminer/pdfminer.six/blob/20251230/LICENSE"
@@ -91,9 +103,9 @@ resolutions:
91103
- message: ".*PyPI::scipy:1\\.14\\.1.*"
92104
reason: "CANT_FIX_EXCEPTION"
93105
comment: "BSD 3-Clause New or Revised License: https://github.com/scipy/scipy/blob/v1.14.1/LICENSE.txt"
94-
- message: ".*PyPI::setuptools:80\\.7\\.1.*"
106+
- message: ".*PyPI::setuptools:82\\.0\\.0.*"
95107
reason: "CANT_FIX_EXCEPTION"
96-
comment: "MIT License: https://github.com/pypa/setuptools/blob/main/LICENSE"
108+
comment: "MIT License: https://github.com/pypa/setuptools/blob/v82.0.0/LICENSE"
97109
- message: ".*PyPI::starlette:0\\.49\\.1.*"
98110
reason: "CANT_FIX_EXCEPTION"
99111
comment: "BSD 3-Clause New or Revised License: https://github.com/Kludex/starlette/blob/0.49.1/LICENSE.md"

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ FROM base AS builder
2828
# Getting uv from distroless docker
2929
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
3030

31-
ENV VIRTUAL_ENV=/opt/venv
32-
3331
# Ubuntu 24.04 has python 3.12 by default
3432
# We do not want to upgrade unstructured library for now,
3533
# so we use uv to get python 3.11 while creating venv
3634
ENV UV_PYTHON_INSTALL_DIR=/opt/uv/python
37-
RUN uv venv "$VIRTUAL_ENV" --python 3.11
35+
RUN uv python install 3.11
36+
37+
# Remove setuptools from uv managed python since we do not use it
38+
# The older versions of setuptools may trigger the image checks
39+
RUN /opt/uv/python/cpython-3.11-linux-x86_64-gnu/bin/python3.11 -m pip uninstall -y setuptools --break-system-packages
40+
41+
ENV VIRTUAL_ENV=/opt/venv
42+
RUN uv venv "$VIRTUAL_ENV" --python 3.11 --relocatable --no-seed
3843

3944
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
4045

0 commit comments

Comments
 (0)