Skip to content

Commit 9ba9f79

Browse files
committed
Update PyO3 and nalgebra dependencies
1 parent 5bc2df0 commit 9ba9f79

7 files changed

Lines changed: 23 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.14.0] - 2026-06-14
10+
### Packaging
11+
- Updated `nalgebra` dependency to 0.35.
12+
- Updated `pyo3` and `numpy` dependencies to 0.29.
13+
- Updated `num-dual` dependency to 0.14.
14+
- Updated minimum supported Rust version to 1.89.
15+
916
## [0.13.2] - 2026-05-21
1017
### Added
1118
- Made `Quantity::new` available in `const` contexts.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "quantity"
3-
version = "0.13.2"
3+
version = "0.14.0"
44
authors = [
55
"Philipp Rehner <prehner@ethz.ch>",
66
"Gernot Bauer <bauer@itt.uni-stuttgart.de>",
77
]
8-
rust-version = "1.87"
8+
rust-version = "1.89"
99
edition = "2024"
1010
license = "MIT OR Apache-2.0"
1111
description = "Representation of quantites, i.e. of unit valued scalars and arrays."
@@ -29,11 +29,11 @@ document-features = "0.2"
2929
## Use N-dimensional arrays from the [ndarray] crate as value of a quantity.
3030
ndarray = { version = "0.17", optional = true }
3131
## Use dynamic or static arrays from the [nalgebra] crate as value of a quantity.
32-
nalgebra = { version = "0.34", optional = true }
32+
nalgebra = { version = "0.35", optional = true }
3333
approx = { version = "0.5", optional = true }
34-
pyo3 = { version = "0.27", optional = true }
35-
numpy = { version = "0.27", optional = true }
36-
num-dual = { version = "0.13", optional = true }
34+
pyo3 = { version = "0.29", optional = true }
35+
numpy = { version = "0.29", optional = true }
36+
num-dual = { version = "0.14", optional = true }
3737

3838
[dev-dependencies]
3939
approx = "0.5"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Add this to your `Cargo.toml`:
1515

1616
```
1717
[dependencies]
18-
quantity = "0.13"
18+
quantity = "0.14"
1919
```
2020

2121
## Examples

example/extend_quantity/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "extend_quantity"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py310"] }
11+
pyo3 = { version = "0.29", features = ["extension-module", "abi3-py310"] }
1212
quantity = { version = "*", path = "../../", features = ["python_numpy"] }
1313
ndarray = "0.17"
14-
nalgebra = "0.34"
14+
nalgebra = "0.35"

si-units/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
"Philipp Rehner <prehner@ethz.ch>",
66
"Gernot Bauer <bauer@itt.uni-stuttgart.de>",
77
]
8-
rust-version = "1.87"
8+
rust-version = "1.89"
99
edition = "2024"
1010
license = "MIT OR Apache-2.0"
1111
description = "Representation of SI unit valued scalars and arrays."
@@ -22,7 +22,7 @@ crate-type = ["cdylib"]
2222

2323
[dependencies]
2424
ndarray = "0.17"
25-
numpy = "0.27"
26-
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py310"] }
25+
numpy = "0.29"
26+
pyo3 = { version = "0.29", features = ["extension-module", "abi3-py310"] }
2727
regex = "1.12"
2828
thiserror = "2.0"

si-units/src/extra_units.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use pyo3::exceptions::PyTypeError;
44
use pyo3::prelude::*;
55
use pyo3::types::{PyFloat, PyNotImplemented};
66

7-
#[pyclass(module = "si_units")]
7+
#[pyclass(module = "si_units", from_py_object)]
88
#[derive(Clone, Copy)]
99
pub struct Celsius;
1010

@@ -25,7 +25,7 @@ impl Celsius {
2525
}
2626
}
2727

28-
#[pyclass(module = "si_units")]
28+
#[pyclass(module = "si_units", from_py_object)]
2929
#[derive(Clone, Copy)]
3030
pub struct Debye(pub f64);
3131

@@ -55,7 +55,7 @@ impl Debye {
5555
}
5656
}
5757

58-
#[pyclass(module = "si_units")]
58+
#[pyclass(module = "si_units", from_py_object)]
5959
#[derive(Clone, Copy)]
6060
pub struct Angle(pub(crate) f64);
6161

src/ad.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use num_dual::{
66
};
77
use std::ops::Sub;
88

9-
impl<D, F, T: DualStruct<D, F>, U> DualStruct<D, F> for Quantity<T, U> {
9+
impl<F, T: DualStruct<F>, U> DualStruct<F> for Quantity<T, U> {
1010
type Real = Quantity<T::Real, U>;
1111
type Inner = Quantity<T::Inner, U>;
1212

0 commit comments

Comments
 (0)