Skip to content
Merged
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
51 changes: 13 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ thiserror = "2.0.11"
microvmi = { path = "../" }

[dependencies.pyo3]
version = "0.27.2"
version = "0.29.0"
features = ["extension-module", "abi3-py39"]

[package.metadata.release]
Expand Down
2 changes: 2 additions & 0 deletions python/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export BINDGEN_EXTRA_CLANG_ARGS="-I/opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64
cd /io/python

for PYBIN in /opt/python/cp{310,311,312,313,314}*/bin; do
# pyo3 0.29 dropped free-threaded 3.13
[[ "$PYBIN" == */cp313-cp313t/* ]] && continue
"${PYBIN}/pip" install -r requirements.txt
"${PYBIN}/python" setup.py bdist_wheel $@
done
Expand Down
8 changes: 4 additions & 4 deletions python/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use pyo3::prelude::*;

/// equivalent of `CommonInitParams` for Python
#[pyclass]
#[pyclass(from_py_object)]
#[derive(Default, Debug, Clone)]
pub struct CommonInitParamsPy {
#[pyo3(get, set)]
Expand All @@ -18,7 +18,7 @@ impl CommonInitParamsPy {
}

/// equivalent of `KVMInitParams` for Python
#[pyclass]
#[pyclass(from_py_object)]
#[derive(Default, Debug, Clone)]
pub struct KVMInitParamsPy {
#[pyo3(get, set)]
Expand All @@ -34,7 +34,7 @@ impl KVMInitParamsPy {
}

/// equivalent of `MemflowInitParams` for Python
#[pyclass]
#[pyclass(from_py_object)]
#[derive(Default, Debug, Clone)]
pub struct MemflowInitParamsPy {
#[pyo3(get, set)]
Expand Down Expand Up @@ -72,7 +72,7 @@ impl MemflowInitParamsPy {
/// init_params.common = common
/// init_params.kvm = kvm
/// ```
#[pyclass]
#[pyclass(from_py_object)]
#[derive(Default, Debug, Clone)]
pub struct DriverInitParamsPy {
#[pyo3(get, set)]
Expand Down
Loading