diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 1de98bfc..e23deb5d 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -23,11 +23,11 @@ jobs: - runner: ubuntu-22.04 target: x86_64 manylinux: auto - interpreter: "3.9 3.10 3.11 3.12 3.13" + interpreter: "3.9 3.10 3.11 3.12 3.13 3.14" - runner: ubuntu-22.04 target: aarch64 manylinux: manylinux_2_28 - interpreter: "3.9 3.10 3.11 3.12 3.13" + interpreter: "3.9 3.10 3.11 3.12 3.13 3.14" steps: - uses: actions/checkout@v3 @@ -35,7 +35,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14" - run: pip install -U twine @@ -86,11 +86,11 @@ jobs: - runner: windows-latest target: x86 alias-target: i686-pc-windows-msvc - interpreter: "3.9 3.10 3.11 3.12 3.13" + interpreter: "3.9 3.10 3.11 3.12 3.13 3.14" - runner: windows-latest target: x64 alias-target: x86_64-pc-windows-msvc - interpreter: "3.9 3.10 3.11 3.12 3.13" + interpreter: "3.9 3.10 3.11 3.12 3.13 3.14" steps: - uses: actions/checkout@v3 @@ -98,7 +98,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14" architecture: ${{ matrix.platform.target }} - run: pip install -U twine @@ -150,19 +150,19 @@ jobs: - runner: macos-14 target: x86_64 macos_version: "14.0" - interpreter: "3.9 3.10 3.11 3.12 3.13" + interpreter: "3.9 3.10 3.11 3.12 3.13 3.14" - runner: macos-14 target: aarch64 macos_version: "14.0" - interpreter: "3.9 3.10 3.11 3.12 3.13" + interpreter: "3.9 3.10 3.11 3.12 3.13 3.14" - runner: macos-15 target: x86_64 macos_version: "15.0" - interpreter: "3.9 3.10 3.11 3.12 3.13" + interpreter: "3.9 3.10 3.11 3.12 3.13 3.14" - runner: macos-15 target: aarch64 macos_version: "15.0" - interpreter: "3.9 3.10 3.11 3.12 3.13" + interpreter: "3.9 3.10 3.11 3.12 3.13 3.14" steps: - uses: actions/checkout@v3 @@ -170,7 +170,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14" - run: pip install -U twine diff --git a/Cargo.toml b/Cargo.toml index 33df5205..a15d586c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,9 +10,9 @@ rust-version = "1.85.0" [dependencies] once_cell = "1.20" thiserror = "2.0" -pyo3 = { version = "0.24", features = ["extension-module"], optional = true } +pyo3 = { version = "0.27", features = ["extension-module"], optional = true } regex = "1.10.6" -serde-pyobject = { version = "0.6.1", optional = true } +serde-pyobject = { version = "0.8.0", optional = true } serde_json = { version = "1.0", features = ["preserve_order"] } serde = {version = "1.0", features = ["derive"]} bincode = "2.0.1" diff --git a/src/python_bindings/mod.rs b/src/python_bindings/mod.rs index f83a454d..fbaea11c 100644 --- a/src/python_bindings/mod.rs +++ b/src/python_bindings/mod.rs @@ -506,7 +506,7 @@ fn register_child_module(parent_module: &Bound<'_, PyModule>) -> PyResult<()> { m.add_function(wrap_pyfunction!(build_regex_from_schema_py, &m)?)?; let sys = PyModule::import(m.py(), "sys")?; - let sys_modules_bind = sys.as_ref().getattr("modules")?; + let sys_modules_bind = (sys.as_ref() as &Bound).getattr("modules")?; let sys_modules = sys_modules_bind.downcast::()?; sys_modules.set_item("outlines_core.json_schema", &m)?;