Skip to content

Commit f4242c9

Browse files
authored
Allow Python 3.13 support (#511)
## Summary - Relax Python version metadata from `<3.13` to `<3.14` - Add the Python 3.13 project classifier - Add Python 3.13 to CI lint and test matrices - Raise `onnxruntime` to `>=1.25.0` so Python 3.13 has compatible wheels - Update README and `uv.lock` metadata to match <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Low behavioral risk, but it expands the supported Python range and bumps the minimum `onnxruntime` version, which could surface new dependency/runtime incompatibilities in downstream environments. > > **Overview** > Adds Python 3.13 support by expanding `requires-python` to `<3.14`, adding the `Python :: 3.13` classifier, and running CI `lint`/`test` jobs against 3.13. > > Also updates dependency constraints by raising the minimum `onnxruntime` requirement to `>=1.25.0`, and aligns the README’s stated Python support range with the new metadata. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5e26dad. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent f8e886c commit f4242c9

4 files changed

Lines changed: 459 additions & 33 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.11", "3.12"]
18+
python-version: ["3.11", "3.12", "3.13"]
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Install uv
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
python-version: ["3.11", "3.12"]
47+
python-version: ["3.11", "3.12", "3.13"]
4848
steps:
4949
- uses: actions/checkout@v4
5050
- name: Install uv

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
The `unstructured-inference` repo contains hosted model inference code for layout parsing models.
1414
These models are invoked via API as part of the partitioning bricks in the `unstructured` package.
1515

16-
**Requires Python >=3.11, <3.13.**
16+
**Requires Python >=3.11, <3.14.**
1717

1818
## Installation
1919

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "unstructured_inference"
33
description = "A library for performing inference using trained models."
4-
requires-python = ">=3.11, <3.13"
4+
requires-python = ">=3.11, <3.14"
55
authors = [{name = "Unstructured Technologies", email = "devops@unstructuredai.io"}]
66
classifiers = [
77
"Development Status :: 4 - Beta",
@@ -13,6 +13,7 @@ classifiers = [
1313
"Programming Language :: Python :: 3",
1414
"Programming Language :: Python :: 3.11",
1515
"Programming Language :: Python :: 3.12",
16+
"Programming Language :: Python :: 3.13",
1617
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1718
]
1819
readme = "README.md"
@@ -24,7 +25,7 @@ dependencies = [
2425
"numpy>=1.26.0",
2526
"opencv-python>=4.13.0.90",
2627
"onnx>=1.20.1",
27-
"onnxruntime>=1.18.0",
28+
"onnxruntime>=1.25.0",
2829
"matplotlib>=3.10.8",
2930
"torch>=2.10.0",
3031
"timm>=1.0.24",

0 commit comments

Comments
 (0)