Skip to content

Commit

Permalink
fix: allow users to install package with python3.13 or higher (#3893)
Browse files Browse the repository at this point in the history
Although, python3.13 is not officially supported or tested in CI just
yet.
  • Loading branch information
cragwolfe authored Jan 30, 2025
1 parent 11ff9e7 commit 918a3d0
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 26 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ exclude = '''
| build
| dist
| unstructured/nlp/patterns\.py
)/
)/|
unstructured/nlp/patterns\.py
'''

[tool.pyright]
Expand Down
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements/extra-paddleocr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions requirements/extra-pdf-image.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements/extra-pptx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions requirements/huggingface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def load_requirements(file_list: Optional[Union[str, List[str]]] = None) -> List
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",
Expand Down

0 comments on commit 918a3d0

Please sign in to comment.