From 918a3d0deb3c527d7db3f5a433b1ff02f927842a Mon Sep 17 00:00:00 2001 From: cragwolfe Date: Thu, 30 Jan 2025 06:52:24 -0800 Subject: [PATCH] fix: allow users to install package with python3.13 or higher (#3893) Although, python3.13 is not officially supported or tested in CI just yet. --- CHANGELOG.md | 3 ++- pyproject.toml | 3 ++- requirements/base.txt | 4 ++-- requirements/extra-paddleocr.txt | 2 +- requirements/extra-pdf-image.txt | 22 +++++++++++----------- requirements/extra-pptx.txt | 2 +- requirements/huggingface.txt | 4 ++-- requirements/test.txt | 12 ++++++------ setup.py | 2 +- 9 files changed, 28 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a35dca5a1..69f6673ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ ### Features ### Fixes - **Correct deprecated `ruff` invocation in `make tidy`**. This will future-proof it or avoid surprises if someone happens to upgrade Ruff. +- **Correct deprecated `ruff` invocation in `make tidy`**. This will future-proof it or avoid surprises if someone happens to upgrade Ruff. +- **Remove upper bound constraint on python version** in setup.py. Python3.13 is not yet officially supported, but allow users to try. ## 0.16.17 diff --git a/pyproject.toml b/pyproject.toml index 115d4ed4d..e00c4749c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,8 @@ exclude = ''' | build | dist | unstructured/nlp/patterns\.py -)/ +)/| +unstructured/nlp/patterns\.py ''' [tool.pyright] diff --git a/requirements/base.txt b/requirements/base.txt index e28e6ec03..9ec5c2d33 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -90,11 +90,11 @@ psutil==6.1.1 # via -r ./base.in pycparser==2.22 # via cffi -pypdf==5.1.0 +pypdf==5.2.0 # via unstructured-client python-dateutil==2.9.0.post0 # via unstructured-client -python-iso639==2024.10.22 +python-iso639==2025.1.28 # via -r ./base.in python-magic==0.4.27 # via -r ./base.in diff --git a/requirements/extra-paddleocr.txt b/requirements/extra-paddleocr.txt index f340b17ef..dcb1e2108 100644 --- a/requirements/extra-paddleocr.txt +++ b/requirements/extra-paddleocr.txt @@ -32,7 +32,7 @@ exceptiongroup==1.2.2 # via # -c ./base.txt # anyio -fonttools==4.55.5 +fonttools==4.55.8 # via matplotlib h11==0.14.0 # via diff --git a/requirements/extra-pdf-image.txt b/requirements/extra-pdf-image.txt index df6369f22..910c2e279 100644 --- a/requirements/extra-pdf-image.txt +++ b/requirements/extra-pdf-image.txt @@ -31,7 +31,7 @@ cryptography==44.0.0 # pdfminer-six cycler==0.12.1 # via matplotlib -deprecated==1.2.15 +deprecated==1.2.18 # via pikepdf effdet==0.4.1 # via -r ./extra-pdf-image.in @@ -40,15 +40,15 @@ filelock==3.17.0 # huggingface-hub # torch # transformers -flatbuffers==25.1.21 +flatbuffers==25.1.24 # via onnxruntime -fonttools==4.55.5 +fonttools==4.55.8 # via matplotlib fsspec==2024.12.0 # via # huggingface-hub # torch -google-api-core[grpc]==2.24.0 +google-api-core[grpc]==2.24.1 # via google-cloud-vision google-auth==2.38.0 # via @@ -60,14 +60,14 @@ googleapis-common-protos==1.66.0 # via # google-api-core # grpcio-status -grpcio==1.69.0 +grpcio==1.70.0 # via # -c ././deps/constraints.txt # google-api-core # grpcio-status -grpcio-status==1.69.0 +grpcio-status==1.70.0 # via google-api-core -huggingface-hub==0.27.1 +huggingface-hub==0.28.0 # via # timm # tokenizers @@ -152,7 +152,7 @@ pillow==11.1.0 # pikepdf # torchvision # unstructured-pytesseract -proto-plus==1.25.0 +proto-plus==1.26.0 # via # google-api-core # google-cloud-vision @@ -179,7 +179,7 @@ pycparser==2.22 # cffi pyparsing==3.2.1 # via matplotlib -pypdf==5.1.0 +pypdf==5.2.0 # via # -c ./base.txt # -r ./extra-pdf-image.in @@ -238,13 +238,13 @@ tokenizers==0.19.1 # via # -c ././deps/constraints.txt # transformers -torch==2.5.1 +torch==2.6.0 # via # effdet # timm # torchvision # unstructured-inference -torchvision==0.20.1 +torchvision==0.21.0 # via # effdet # timm diff --git a/requirements/extra-pptx.txt b/requirements/extra-pptx.txt index 389ef87cc..83ff09f01 100644 --- a/requirements/extra-pptx.txt +++ b/requirements/extra-pptx.txt @@ -12,5 +12,5 @@ python-pptx==1.0.2 # via -r ./extra-pptx.in typing-extensions==4.12.2 # via python-pptx -xlsxwriter==3.2.1 +xlsxwriter==3.2.2 # via python-pptx diff --git a/requirements/huggingface.txt b/requirements/huggingface.txt index e614f90a3..bd78de5cb 100644 --- a/requirements/huggingface.txt +++ b/requirements/huggingface.txt @@ -25,7 +25,7 @@ fsspec==2024.12.0 # via # huggingface-hub # torch -huggingface-hub==0.27.1 +huggingface-hub==0.28.0 # via # tokenizers # transformers @@ -88,7 +88,7 @@ tokenizers==0.19.1 # via # -c ././deps/constraints.txt # transformers -torch==2.5.1 +torch==2.6.0 # via -r ./huggingface.in tqdm==4.67.1 # via diff --git a/requirements/test.txt b/requirements/test.txt index e9e974a16..554846fff 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -14,13 +14,13 @@ appdirs==1.4.4 # via label-studio-sdk argcomplete==3.5.3 # via datamodel-code-generator -attrs==24.3.0 +attrs==25.1.0 # via # jsonschema # referencing autoflake==2.3.1 # via -r ./test.in -black==24.10.0 +black==25.1.0 # via # -r ./test.in # datamodel-code-generator @@ -66,7 +66,7 @@ freezegun==1.5.1 # via -r ./test.in genson==1.3.0 # via datamodel-code-generator -grpcio==1.69.0 +grpcio==1.70.0 # via # -c ././deps/constraints.txt # -r ./test.in @@ -164,7 +164,7 @@ pycodestyle==2.12.1 # via # flake8 # flake8-print -pydantic[email]==2.10.5 +pydantic[email]==2.10.6 # via # -r ./test.in # datamodel-code-generator @@ -196,7 +196,7 @@ pyyaml==6.0.2 # via # datamodel-code-generator # vcrpy -referencing==0.36.1 +referencing==0.36.2 # via # jsonschema # jsonschema-specifications @@ -218,7 +218,7 @@ rpds-py==0.22.3 # referencing rstr==3.2.2 # via jsf -ruff==0.9.2 +ruff==0.9.3 # via -r ./test.in semantic-version==2.10.0 # via liccheck diff --git a/setup.py b/setup.py index 3b698e12e..74bc67608 100644 --- a/setup.py +++ b/setup.py @@ -82,7 +82,7 @@ setup( long_description_content_type="text/markdown", keywords="NLP PDF HTML CV XML parsing preprocessing", url="https://github.com/Unstructured-IO/unstructured", - python_requires=">=3.9.0,<3.13", + python_requires=">=3.9.0", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers",