Skip to content

Commit

Permalink
unpin pdfminer-six (#415)
Browse files Browse the repository at this point in the history
- higher versions can have bugs that user have reported
- unpin it in the base.in so leaves other packages and user's constrains
to resolve it
  • Loading branch information
badGarnet authored Mar 5, 2025
1 parent 3d52ab6 commit 5ea3895
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 46 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.9

* chore: unpin `pdfminer-six` version

## 0.8.8
* fix: pdfminer-six dependencies
* feat: `PageLayout.elements` is now a `cached_property` to reduce unecessary memory and cpu costs
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ rapidfuzz
pandas
scipy
pypdfium2
pdfminer-six>=20240706
pdfminer-six
34 changes: 17 additions & 17 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# pip-compile requirements/base.in
#
certifi==2024.12.14
certifi==2025.1.31
# via requests
cffi==1.17.1
# via cryptography
Expand All @@ -16,24 +16,24 @@ coloredlogs==15.0.1
# via onnxruntime
contourpy==1.3.0
# via matplotlib
cryptography==44.0.0
cryptography==44.0.2
# via pdfminer-six
cycler==0.12.1
# via matplotlib
filelock==3.16.1
filelock==3.17.0
# via
# huggingface-hub
# torch
# transformers
flatbuffers==24.12.23
flatbuffers==25.2.10
# via onnxruntime
fonttools==4.55.4
fonttools==4.56.0
# via matplotlib
fsspec==2024.12.0
fsspec==2025.2.0
# via
# huggingface-hub
# torch
huggingface-hub==0.27.1
huggingface-hub==0.29.2
# via
# -r requirements/base.in
# timm
Expand All @@ -45,7 +45,7 @@ idna==3.10
# via requests
importlib-resources==6.5.2
# via matplotlib
jinja2==3.1.5
jinja2==3.1.6
# via torch
kiwisolver==1.4.7
# via matplotlib
Expand Down Expand Up @@ -89,7 +89,7 @@ pillow==11.1.0
# via
# matplotlib
# torchvision
protobuf==5.29.3
protobuf==6.30.0
# via
# onnx
# onnxruntime
Expand All @@ -105,22 +105,22 @@ python-dateutil==2.9.0.post0
# pandas
python-multipart==0.0.20
# via -r requirements/base.in
pytz==2024.2
pytz==2025.1
# via pandas
pyyaml==6.0.2
# via
# huggingface-hub
# timm
# transformers
rapidfuzz==3.11.0
rapidfuzz==3.12.2
# via -r requirements/base.in
regex==2024.11.6
# via transformers
requests==2.32.3
# via
# huggingface-hub
# transformers
safetensors==0.5.2
safetensors==0.5.3
# via
# timm
# transformers
Expand All @@ -132,28 +132,28 @@ sympy==1.13.1
# via
# onnxruntime
# torch
timm==1.0.14
timm==1.0.15
# via -r requirements/base.in
tokenizers==0.21.0
# via transformers
torch==2.5.1
torch==2.6.0
# via
# -r requirements/base.in
# timm
# torchvision
torchvision==0.20.1
torchvision==0.21.0
# via timm
tqdm==4.67.1
# via
# huggingface-hub
# transformers
transformers==4.48.1
transformers==4.49.0
# via -r requirements/base.in
typing-extensions==4.12.2
# via
# huggingface-hub
# torch
tzdata==2024.2
tzdata==2025.1
# via pandas
urllib3==2.3.0
# via requests
Expand Down
36 changes: 19 additions & 17 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ asttokens==3.0.0
# via stack-data
async-lru==2.0.4
# via jupyterlab
attrs==24.3.0
attrs==25.1.0
# via
# jsonschema
# referencing
babel==2.16.0
babel==2.17.0
# via jupyterlab-server
beautifulsoup4==4.12.3
beautifulsoup4==4.13.3
# via nbconvert
bleach[css]==6.2.0
# via nbconvert
build==1.2.2.post1
# via pip-tools
certifi==2024.12.14
certifi==2025.1.31
# via
# -c requirements/base.txt
# -c requirements/test.txt
Expand Down Expand Up @@ -65,9 +65,9 @@ cycler==0.12.1
# via
# -c requirements/base.txt
# matplotlib
debugpy==1.8.12
debugpy==1.8.13
# via ipykernel
decorator==5.1.1
decorator==5.2.1
# via ipython
defusedxml==0.7.1
# via nbconvert
Expand All @@ -76,11 +76,11 @@ exceptiongroup==1.2.2
# -c requirements/test.txt
# anyio
# ipython
executing==2.1.0
executing==2.2.0
# via stack-data
fastjsonschema==2.21.1
# via nbformat
fonttools==4.55.4
fonttools==4.56.0
# via
# -c requirements/base.txt
# matplotlib
Expand Down Expand Up @@ -135,7 +135,7 @@ isoduration==20.11.0
# via jsonschema
jedi==0.19.2
# via ipython
jinja2==3.1.5
jinja2==3.1.6
# via
# -c requirements/base.txt
# jupyter-server
Expand Down Expand Up @@ -173,7 +173,7 @@ jupyter-core==5.7.2
# nbclient
# nbconvert
# nbformat
jupyter-events==0.11.0
jupyter-events==0.12.0
# via jupyter-server
jupyter-lsp==2.2.5
# via jupyterlab
Expand All @@ -186,7 +186,7 @@ jupyter-server==2.15.0
# notebook-shim
jupyter-server-terminals==0.5.3
# via jupyter-server
jupyterlab==4.3.4
jupyterlab==4.3.5
# via
# jupyter
# notebook
Expand Down Expand Up @@ -215,11 +215,11 @@ matplotlib-inline==0.1.7
# via
# ipykernel
# ipython
mistune==3.1.0
mistune==3.1.2
# via nbconvert
nbclient==0.10.2
# via nbconvert
nbconvert==7.16.5
nbconvert==7.16.6
# via
# jupyter
# jupyter-server
Expand Down Expand Up @@ -249,6 +249,7 @@ packaging==24.2
# -c requirements/test.txt
# build
# ipykernel
# jupyter-events
# jupyter-server
# jupyterlab
# jupyterlab-server
Expand Down Expand Up @@ -277,7 +278,7 @@ prompt-toolkit==3.0.50
# via
# ipython
# jupyter-console
psutil==6.1.1
psutil==7.0.0
# via ipykernel
ptyprocess==0.7.0
# via
Expand Down Expand Up @@ -315,13 +316,13 @@ pyyaml==6.0.2
# -c requirements/base.txt
# -c requirements/test.txt
# jupyter-events
pyzmq==26.2.0
pyzmq==26.2.1
# via
# ipykernel
# jupyter-client
# jupyter-console
# jupyter-server
referencing==0.36.1
referencing==0.36.2
# via
# jsonschema
# jsonschema-specifications
Expand All @@ -339,7 +340,7 @@ rfc3986-validator==0.1.1
# via
# jsonschema
# jupyter-events
rpds-py==0.22.3
rpds-py==0.23.1
# via
# jsonschema
# referencing
Expand Down Expand Up @@ -402,6 +403,7 @@ typing-extensions==4.12.2
# -c requirements/test.txt
# anyio
# async-lru
# beautifulsoup4
# ipython
# mistune
# python-json-logger
Expand Down
20 changes: 10 additions & 10 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#
anyio==4.8.0
# via httpx
black==24.10.0
black==25.1.0
# via -r requirements/test.in
certifi==2024.12.14
certifi==2025.1.31
# via
# -c requirements/base.txt
# httpcore
Expand All @@ -22,25 +22,25 @@ click==8.1.8
# via
# -r requirements/test.in
# black
coverage[toml]==7.6.10
coverage[toml]==7.6.12
# via
# -r requirements/test.in
# pytest-cov
exceptiongroup==1.2.2
# via
# anyio
# pytest
filelock==3.16.1
filelock==3.17.0
# via
# -c requirements/base.txt
# huggingface-hub
flake8==7.1.1
flake8==7.1.2
# via
# -r requirements/test.in
# flake8-docstrings
flake8-docstrings==1.7.0
# via -r requirements/test.in
fsspec==2024.12.0
fsspec==2025.2.0
# via
# -c requirements/base.txt
# huggingface-hub
Expand All @@ -50,7 +50,7 @@ httpcore==1.0.7
# via httpx
httpx==0.28.1
# via -r requirements/test.in
huggingface-hub==0.27.1
huggingface-hub==0.29.2
# via
# -c requirements/base.txt
# -r requirements/test.in
Expand All @@ -64,7 +64,7 @@ iniconfig==2.0.0
# via pytest
mccabe==0.7.0
# via flake8
mypy==1.14.1
mypy==1.15.0
# via -r requirements/test.in
mypy-extensions==1.0.0
# via
Expand Down Expand Up @@ -94,7 +94,7 @@ pydocstyle==6.3.0
# via flake8-docstrings
pyflakes==3.2.0
# via flake8
pytest==8.3.4
pytest==8.3.5
# via
# pytest-cov
# pytest-mock
Expand All @@ -110,7 +110,7 @@ requests==2.32.3
# via
# -c requirements/base.txt
# huggingface-hub
ruff==0.9.2
ruff==0.9.9
# via -r requirements/test.in
sniffio==1.3.1
# via anyio
Expand Down
2 changes: 1 addition & 1 deletion unstructured_inference/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.8" # pragma: no cover
__version__ = "0.8.9" # pragma: no cover

0 comments on commit 5ea3895

Please sign in to comment.