Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ 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

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.14"

- run: pip install -U twine

Expand Down Expand Up @@ -86,19 +86,19 @@ 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

- 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
Expand Down Expand Up @@ -150,27 +150,27 @@ 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

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.14"

- run: pip install -U twine

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/python_bindings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PyAny>).getattr("modules")?;
let sys_modules = sys_modules_bind.downcast::<PyDict>()?;
sys_modules.set_item("outlines_core.json_schema", &m)?;

Expand Down