8000 Bump python to 3.12, use latest wolfi image · Unstructured-IO/unstructured-api@d900bf8 · GitHub
[go: up one dir, main page]

Skip to content

Commit d900bf8

Browse files
committed
Bump python to 3.12, use latest wolfi image
1 parent 706e600 commit d900bf8

File tree

8 files changed

+18
-15
lines changed

8 files changed

+18
-15
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ main ]
88

99
env:
10-
PYTHON_VERSION: "3.10"
10+
PYTHON_VERSION: "3.12"
1111
PIPELINE_FAMILY: "general"
1212

1313
jobs:

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
PACKAGE: "unstructured-api"
1212
PIPELINE_FAMILY: "general"
1313
PIP_VERSION: "25.1.1"
14-
PYTHON_VERSION: "3.10"
14+
PYTHON_VERSION: "3.12"
1515

1616
jobs:
1717
setup:

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
## 0.0.87
2+
* Bump Python to 3.12
3+
14
## 0.0.86
25
* Patch various CVEs
36

4-
## 0.0.86
7+
## 0.0.85
58
* Patch various CVEs
69
* Bump Python version to 3.12, some packages no longer support 3.9
710

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,12 @@ curl -X 'POST'
289289
* Using `pyenv` to manage virtualenv's is recommended
290290
* Mac install instructions. See [here](https://github.com/Unstructured-IO/community#mac--homebrew) for more detailed instructions.
291291
* `brew install pyenv-virtualenv`
292-
* `pyenv install 3.10.12`
292+
* `pyenv install 3.12`
293293
* Linux instructions are available [here](https://github.com/Unstructured-IO/community#linux).
294294

295295
* Create a virtualenv to work in and activate it, e.g. for one named `document-processing`:
296296

297-
`pyenv virtualenv 3.10.12 unstructured-api` <br />
297+
`pyenv virtualenv 3.12 unstructured-api` <br />
298298
`pyenv activate unstructured-api`
299299

300300
See the [Unstructured Quick Start](https://github.com/Unstructured-IO/unstructured#eight_pointed_black_star-quick-start) for the many OS dependencies that are required, if the ability to process all file types is desired.

docker/rockylinux-9.4/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:experimental
2-
FROM quay.io/unstructured-io/base-images:rocky9.2-9@sha256:73d8492452f086144d4b92b7931aa04719f085c74d16cae81e8826ef873729c9 as base
2+
FROM quay.io/unstructured-io/base-images:wolfi-base-latest AS base
33

44
# NOTE(crag): NB_USER ARG for mybinder.org compat:
55
# https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html
@@ -22,18 +22,18 @@ ENV PATH="/home/${NB_USER}/.local/bin:${PATH}"
2222
FROM base as python-deps
2323
# COPY requirements/dev.txt requirements-dev.txt
2424
COPY requirements/base.txt requirements-base.txt
25-
RUN python3.10 -m pip install pip==${PIP_VERSION} \
25+
RUN python3.12 -m pip install pip==${PIP_VERSION} \
2626
&& dnf -y groupinstall "Development Tools" \
27-
&& su -l ${NB_USER} -c 'pip3.10 install --no-cache -r requirements-base.txt' \
27+
&& su -l ${NB_USER} -c 'pip3.12 install --no-cache -r requirements-base.txt' \
2828
&& dnf -y groupremove "Development Tools" \
2929
&& dnf clean all \
30-
&& ln -s /home/notebook-user/.local/bin/pip3.10 /usr/local/bin/pip3.10 || true
30+
&& ln -s /home/notebook-user/.local/bin/pip3.12 /usr/local/bin/pip3.12 || true
3131

3232
USER ${NB_USER}
3333

3434
FROM python-deps as model-deps
35-
RUN python3.10 -c "from unstructured.nlp.tokenize import download_nltk_packages; download_nltk_packages()" && \
36-
python3.10 -c "from unstructured.partition.model_init import initialize; initialize()"
35+
RUN python3.12 -c "from unstructured.nlp.tokenize import download_nltk_packages; download_nltk_packages()" && \
36+
python3.12 -c "from unstructured.partition.model_init import initialize; initialize()"
3737

3838
FROM model-deps as code
3939
COPY --chown=${NB_USER}:${NB_USER} CHANGELOG.md CHANGELOG.md

prepline_general/api/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
app = FastAPI(
1414
title="Unstructured Pipeline API",
1515
summary="Partition documents with the Unstructured library",
16-
version="0.0.86",
16+
version="0.0.87",
1717
docs_url="/general/docs",
1818
openapi_url="/general/openapi.json",
1919
servers=[

prepline_general/api/general.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def return_content_type(filename: str):
600600

601601

602602
@router.get("/general/v0/general", include_in_schema=False)
603-
@router.get("/general/v0.0.86/general", include_in_schema=False)
603+
@router.get("/general/v0.0.87/general", include_in_schema=False)
604604
async def handle_invalid_get_request():
605605
raise HTTPException(
606606
status_code=status.HTTP_405_METHOD_NOT_ALLOWED, detail="Only POST requests are supported."
@@ -615,7 +615,7 @@ async def handle_invalid_get_request():
615615
description="Description",
616616
operation_id="partition_parameters",
617617
)
618-
@router.post("/general/v0.0.86/general", include_in_schema=False)
618+
@router.post("/general/v0.0.87/general", include_in_schema=False)
619619
def general_partition(
620620
request: Request,
621621
# cannot use annotated type here because of a bug described here:

preprocessing-pipeline-family.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
name: general
2-
version: 0.0.86
2+
version: 0.0.87

0 commit comments

Comments
 (0)
0