Skip to content

Commit d5502d0

Browse files
authored
build(deps): remove dependency constraint on safetensors (#443)
### Summary Removes a constraint on `safetensors` from version `0.0.38` that was preventing us from resolving a low CVE in `transformers`.
1 parent 119e9bd commit d5502d0

File tree

8 files changed

+19
-20
lines changed

8 files changed

+19
-20
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.75
2+
3+
* Remove constraint on `safetensors` that preventing us from bumping `transformers`.
4+
15
## 0.0.74
26

37
* Bump to `unstructured` 0.15.0

prepline_general/api/app.py

+1-1
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.74",
16+
version="0.0.75",
1717
docs_url="/general/docs",
1818
openapi_url="/general/openapi.json",
1919
servers=[

prepline_general/api/general.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def return_content_type(filename: str):
649649

650650

651651
@router.get("/general/v0/general", include_in_schema=False)
652-
@router.get("/general/v0.0.74/general", include_in_schema=False)
652+
@router.get("/general/v0.0.75/general", include_in_schema=False)
653653
async def handle_invalid_get_request():
654654
raise HTTPException(
655655
status_code=status.HTTP_405_METHOD_NOT_ALLOWED, detail="Only POST requests are supported."
@@ -664,7 +664,7 @@ async def handle_invalid_get_request():
664664
description="Description",
665665
operation_id="partition_parameters",
666666
)
667-
@router.post("/general/v0.0.74/general", include_in_schema=False)
667+
@router.post("/general/v0.0.75/general", include_in_schema=False)
668668
def general_partition(
669669
request: Request,
670670
# cannot use annotated type here because of a bug described here:

preprocessing-pipeline-family.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
name: general
2-
version: 0.0.74
2+
version: 0.0.75

requirements/base.in

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ backoff
1212
pypdf
1313
pycryptodome
1414
psutil
15-

requirements/base.txt

+5-6
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ httpx==0.27.0
120120
# via
121121
# fastapi
122122
# unstructured-client
123-
huggingface-hub==0.24.0
123+
huggingface-hub==0.24.2
124124
# via
125125
# timm
126126
# tokenizers
@@ -245,7 +245,7 @@ pdfminer-six==20231228
245245
# unstructured
246246
pdfplumber==0.11.2
247247
# via layoutparser
248-
pikepdf==9.0.0
248+
pikepdf==9.1.0
249249
# via unstructured
250250
pillow==10.4.0
251251
# via
@@ -367,9 +367,8 @@ rich==13.7.1
367367
# via typer
368368
rsa==4.9
369369
# via google-auth
370-
safetensors==0.3.2
370+
safetensors==0.4.3
371371
# via
372-
# -c requirements/constraints.in
373372
# timm
374373
# transformers
375374
scipy==1.14.0
@@ -399,7 +398,7 @@ timm==1.0.7
399398
# via
400399
# effdet
401400
# unstructured-inference
402-
tokenizers==0.15.2
401+
tokenizers==0.19.1
403402
# via transformers
404403
torch==2.3.1
405404
# via
@@ -418,7 +417,7 @@ tqdm==4.66.4
418417
# nltk
419418
# transformers
420419
# unstructured
421-
transformers==4.37.1
420+
transformers==4.43.1
422421
# via unstructured-inference
423422
typer==0.12.3
424423
# via fastapi-cli

requirements/constraints.in

-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
# extras. Putting a dependency here will only affect dependency sets that contain them -- in other
44
# words, if something does not require a constraint, it will not be installed.
55
####################################################################################################
6-
# Note(austin) - preventing a build error with 0.3.3
7-
safetensors<0.3.3
86
numpy<2.0.0

requirements/test.txt

+6-7
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ httpx==0.27.0
250250
# fastapi
251251
# jupyterlab
252252
# unstructured-client
253-
huggingface-hub==0.24.0
253+
huggingface-hub==0.24.2
254254
# via
255255
# -r requirements/base.txt
256256
# timm
@@ -566,7 +566,7 @@ pdfplumber==0.11.2
566566
# layoutparser
567567
pexpect==4.9.0
568568
# via ipython
569-
pikepdf==9.0.0
569+
pikepdf==9.1.0
570570
# via
571571
# -r requirements/base.txt
572572
# unstructured
@@ -805,17 +805,16 @@ rich==13.7.1
805805
# via
806806
# -r requirements/base.txt
807807
# typer
808-
rpds-py==0.19.0
808+
rpds-py==0.19.1
809809
# via
810810
# jsonschema
811811
# referencing
812812
rsa==4.9
813813
# via
814814
# -r requirements/base.txt
815815
# google-auth
816-
safetensors==0.3.2
816+
safetensors==0.4.3
817817
# via
818-
# -c requirements/constraints.in
819818
# -r requirements/base.txt
820819
# timm
821820
# transformers
@@ -874,7 +873,7 @@ timm==1.0.7
874873
# unstructured-inference
875874
tinycss2==1.3.0
876875
# via nbconvert
877-
tokenizers==0.15.2
876+
tokenizers==0.19.1
878877
# via
879878
# -r requirements/base.txt
880879
# transformers
@@ -930,7 +929,7 @@ traitlets==5.14.3
930929
# nbconvert
931930
# nbformat
932931
# qtconsole
933-
transformers==4.37.1
932+
transformers==4.43.1
934933
# via
935934
# -r requirements/base.txt
936935
# unstructured-inference

0 commit comments

Comments
 (0)