Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-kornia-rs for 
openSUSE:Factory checked in at 2026-09-29 17:49:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-kornia-rs (Old)
 and      /work/SRC/openSUSE:Factory/.python-kornia-rs.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-kornia-rs"

Tue Sep 29 17:49:00 2026 rev:3 rq:1381196 version:0.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-kornia-rs/python-kornia-rs.changes        
2026-09-28 10:47:01.734401176 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-kornia-rs.new.383539/python-kornia-rs.changes
    2026-09-29 17:50:02.230849966 +0200
@@ -1,0 +2,23 @@
+Mon Sep 28 13:28:12 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 0.2.0. Upstream re-released 0.1.15's code under the
+  version it should have had: 0.1.15 shipped breaking Rust API
+  changes in a patch release, was yanked from crates.io and broke
+  every "0.1" consumer on its next cargo update. The Python
+  surface is unchanged from 0.1.15 -- only kornia_rs.__version__
+  moves.
+  * The breaking changes are Rust and C++ only, unreachable from
+    Python: Image and Tensor lost their compile-time allocator
+    type parameter, get_unchecked became unsafe, permute_axes,
+    as_contiguous, TensorStorage::layout and the GStreamer
+    pipeline helpers return Result, f32 resize_native samples on
+    the half-pixel grid and f32 remap zero-fills out-of-range
+    samples, StereoRectifier gained left_maps()/right_maps() and
+    ReconstructionConfig split out of CalibConfig.
+  * C++: KORNIA_VERSION_PATCH is now always an integer; the
+    pre-release tag moved to KORNIA_VERSION_PRERELEASE next to a
+    KORNIA_VERSION_IS_PRERELEASE 0/1 flag.
+  * No CVE ids assigned and no new or raised build requirements
+    (rust >= 1.89, maturin >= 1.9).
+
+-------------------------------------------------------------------

Old:
----
  v0.1.15.tar.gz

New:
----
  v0.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-kornia-rs.spec ++++++
--- /var/tmp/diff_new_pack.4MBUio/_old  2026-09-29 17:50:13.718330273 +0200
+++ /var/tmp/diff_new_pack.4MBUio/_new  2026-09-29 17:50:13.721330399 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-kornia-rs
-Version:        0.1.15
+Version:        0.2.0
 Release:        0
 Summary:        Low-level computer vision library implemented in Rust
 # Legal-Review-Notice: cargo tree --offline -p kornia-py -e normal over
@@ -30,7 +30,7 @@
 # upstream stopped shipping a PyPI sdist in 0.1.15 (--sdist dropped from
 # python_release.yml: "not self-contained (bindgen/vendored deps)"), so build
 # from the release tag instead.
-Source0:        
https://github.com/kornia/kornia-rs/archive/refs/tags/v0.1.15.tar.gz
+Source0:        
https://github.com/kornia/kornia-rs/archive/refs/tags/v0.2.0.tar.gz
 Source1:        registry.tar.zst
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module maturin >= 1.9}

++++++ _service ++++++
--- /var/tmp/diff_new_pack.4MBUio/_old  2026-09-29 17:50:13.765332239 +0200
+++ /var/tmp/diff_new_pack.4MBUio/_new  2026-09-29 17:50:13.768332364 +0200
@@ -2,7 +2,7 @@
 <services>
   <service mode="manual" name="download_files" />
   <service name="cargo_vendor" mode="manual">
-    <param name="src">v0.1.15.tar.gz</param>
+    <param name="src">v0.2.0.tar.gz</param>
     <param name="method">registry</param>
     <param name="update">true</param>
     <param name="compression">zst</param>

++++++ registry.tar.zst ++++++
/work/SRC/openSUSE:Factory/python-kornia-rs/registry.tar.zst 
/work/SRC/openSUSE:Factory/.python-kornia-rs.new.383539/registry.tar.zst 
differ: char 7, line 1

++++++ v0.1.15.tar.gz -> v0.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kornia-rs-0.1.15/CHANGELOG.md 
new/kornia-rs-0.2.0/CHANGELOG.md
--- old/kornia-rs-0.1.15/CHANGELOG.md   2026-09-26 05:49:47.000000000 +0200
+++ new/kornia-rs-0.2.0/CHANGELOG.md    2026-09-26 21:31:19.000000000 +0200
@@ -13,6 +13,34 @@
 
 ## [Unreleased]
 
+## [0.2.0] — 2026-09-26
+
+**0.2.0 is 0.1.15 re-released under the right version.** 0.1.15 shipped 
breaking API changes as a
+patch-level bump, so every crate depending on `kornia-* = "0.1"` picked them 
up on its next
+`cargo update` and stopped compiling (Copper among them). 0.1.15 is yanked on 
crates.io; `^0.1`
+now resolves to 0.1.14 again. To get the 0.1.15 work, depend on `"0.2"`.
+
+The breaking changes, all described under 0.1.15 and its release candidates 
below:
+- `Image`/`Tensor` lost the compile-time allocator type parameter:
+  `Image<f32, 3, CpuAllocator>` → `Image<f32, 3>`.
+- `Tensor::get_unchecked` / `TensorView::get_unchecked` are `unsafe fn`; 
`permute_axes`,
+  `as_contiguous`, `TensorStorage::layout` and the GStreamer 
`*_pipeline_description` helpers return
+  `Result`; several error enums gained variants.
+- f32 `resize_native` samples on the half-pixel grid (pixel values change); 
f32 `remap` zero-fills
+  out-of-range samples.
+- `StereoRectifier::rectify_left/right` are into-style; 
`left_map()/right_map()` became
+  `left_maps()/right_maps()`.
+- `ReconstructionConfig` is split out of `CalibConfig`.
+
+Also since 0.1.15:
+
+- **C++:** `KORNIA_VERSION_PATCH` in the generated `kornia/version.hpp` is now 
always an integer.
+  On a pre-release it used to expand to `16-rc`, which broke any C++ code 
using it as a number.
+  The pre-release tag is exposed separately as `KORNIA_VERSION_PRERELEASE` 
(`"rc.1"`, empty on a
+  release), with `KORNIA_VERSION_IS_PRERELEASE` (0/1) for `#if` checks.
+
+**Full changelog:** 
https://github.com/kornia/kornia-rs/compare/v0.1.15...v0.2.0
+
 ## [0.1.15] — 2026-09-25
 
 First stable 0.1.15. Everything in the `0.1.15-rc.*` entries below ships here,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kornia-rs-0.1.15/Cargo.lock 
new/kornia-rs-0.2.0/Cargo.lock
--- old/kornia-rs-0.1.15/Cargo.lock     2026-09-26 05:49:47.000000000 +0200
+++ new/kornia-rs-0.2.0/Cargo.lock      2026-09-26 21:31:19.000000000 +0200
@@ -348,7 +348,7 @@
 
 [[package]]
 name = "apriltag"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "ctrlc",
@@ -375,7 +375,7 @@
 
 [[package]]
 name = "apriltag-pose"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -400,7 +400,7 @@
 
 [[package]]
 name = "apriltag_board_multicam"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -1503,7 +1503,7 @@
 
 [[package]]
 name = "binarize"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -2401,7 +2401,7 @@
 
 [[package]]
 name = "colmap_rerun"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -2443,7 +2443,7 @@
 
 [[package]]
 name = "color_detector"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -2458,7 +2458,7 @@
 
 [[package]]
 name = "color_spaces"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "cudarc 0.19.8",
  "kornia-image",
@@ -2622,7 +2622,7 @@
 
 [[package]]
 name = "contours"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -2687,7 +2687,7 @@
 
 [[package]]
 name = "copper"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "cu29",
  "kornia",
@@ -5033,7 +5033,7 @@
 
 [[package]]
 name = "exif_auto_orient"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "kornia-io",
 ]
@@ -6534,7 +6534,7 @@
 
 [[package]]
 name = "hello_world"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -6720,7 +6720,7 @@
 
 [[package]]
 name = "histogram"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -7023,7 +7023,7 @@
 
 [[package]]
 name = "icp_registration"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "env_logger",
@@ -7182,7 +7182,7 @@
 
 [[package]]
 name = "image_api"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "kornia-image",
 ]
@@ -7232,7 +7232,7 @@
 
 [[package]]
 name = "imgproc"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -7745,7 +7745,7 @@
 
 [[package]]
 name = "kornia"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "kornia-3d",
  "kornia-algebra",
@@ -7759,7 +7759,7 @@
 
 [[package]]
 name = "kornia-3d"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "approx",
  "bincode 2.0.1",
@@ -7783,7 +7783,7 @@
 
 [[package]]
 name = "kornia-algebra"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "approx",
  "criterion 0.8.2",
@@ -7796,7 +7796,7 @@
 
 [[package]]
 name = "kornia-apriltag"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "aprilgrid",
  "apriltag 0.4.0",
@@ -7814,7 +7814,7 @@
 
 [[package]]
 name = "kornia-bow"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "bincode 2.0.1",
  "criterion 0.8.2",
@@ -7828,7 +7828,7 @@
 
 [[package]]
 name = "kornia-calib"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "approx",
  "criterion 0.8.2",
@@ -7840,7 +7840,7 @@
 
 [[package]]
 name = "kornia-cpp"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "cxx",
  "cxx-build",
@@ -7851,7 +7851,7 @@
 
 [[package]]
 name = "kornia-image"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "arrow 59.0.0",
  "criterion 0.8.2",
@@ -7866,7 +7866,7 @@
 
 [[package]]
 name = "kornia-imgproc"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "criterion 0.8.2",
@@ -7890,7 +7890,7 @@
 
 [[package]]
 name = "kornia-io"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "circular-buffer",
  "criterion 0.8.2",
@@ -7915,7 +7915,7 @@
 
 [[package]]
 name = "kornia-py"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "cudarc 0.19.8",
  "dlpack-rs",
@@ -7935,7 +7935,7 @@
 
 [[package]]
 name = "kornia-tensor"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "bincode 2.0.1",
  "criterion 0.8.2",
@@ -7950,7 +7950,7 @@
 
 [[package]]
 name = "kornia-tensor-ops"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "approx",
  "criterion 0.8.2",
@@ -7962,7 +7962,7 @@
 
 [[package]]
 name = "kornia-vlm"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "candle-core",
  "candle-flash-attn",
@@ -8598,7 +8598,7 @@
 
 [[package]]
 name = "metrics"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -8730,7 +8730,7 @@
 
 [[package]]
 name = "morphology"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -9218,7 +9218,7 @@
 
 [[package]]
 name = "normalize"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -9226,7 +9226,7 @@
 
 [[package]]
 name = "normalize_ii"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -9938,7 +9938,7 @@
 
 [[package]]
 name = "onnx"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -10269,7 +10269,7 @@
 
 [[package]]
 name = "paligemma"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia-io",
@@ -10712,7 +10712,7 @@
 
 [[package]]
 name = "ply_rerun"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -10779,7 +10779,7 @@
 
 [[package]]
 name = "pnp_demo"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "env_logger",
@@ -14042,7 +14042,7 @@
 
 [[package]]
 name = "rerun_viz"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -14165,7 +14165,7 @@
 
 [[package]]
 name = "rotate"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -15168,7 +15168,7 @@
 
 [[package]]
 name = "smol_vlm"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia-image",
@@ -15219,7 +15219,7 @@
 
 [[package]]
 name = "smol_vlm_convo"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "color-eyre",
@@ -15470,7 +15470,7 @@
 
 [[package]]
 name = "std_mean"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "indicatif 0.18.5",
@@ -16788,7 +16788,7 @@
 
 [[package]]
 name = "undistort"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -16797,7 +16797,7 @@
 
 [[package]]
 name = "undistort_points"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "argh",
  "kornia",
@@ -17202,7 +17202,7 @@
 
 [[package]]
 name = "video_player"
-version = "0.1.15"
+version = "0.2.0"
 dependencies = [
  "eframe",
  "env_logger",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kornia-rs-0.1.15/Cargo.toml 
new/kornia-rs-0.2.0/Cargo.toml
--- old/kornia-rs-0.1.15/Cargo.toml     2026-09-26 05:49:47.000000000 +0200
+++ new/kornia-rs-0.2.0/Cargo.toml      2026-09-26 21:31:19.000000000 +0200
@@ -10,7 +10,7 @@
 default-members = ["crates/*"]
 
 [workspace.package]
-version = "0.1.15"
+version = "0.2.0"
 authors = ["kornia.org <[email protected]>"]
 edition = "2021"
 rust-version = "1.89"
@@ -59,18 +59,18 @@
 # with it on every release — locally `path` wins so a stale pin builds fine
 # and only ships a wrong dependency requirement at publish time. Enforced by
 # scripts/check_version_pins.py (pre-commit hook on this file).
-kornia = { path = "crates/kornia", version = "0.1.15" }
-kornia-3d = { path = "crates/kornia-3d", version = "0.1.15" }
-kornia-algebra = { path = "crates/kornia-algebra", version = "0.1.15" }
-kornia-apriltag = { path = "crates/kornia-apriltag", version = "0.1.15" }
-kornia-bow = { path = "crates/kornia-bow", version = "0.1.15" }
-kornia-calib = { path = "crates/kornia-calib", version = "0.1.15" }
-kornia-image = { path = "crates/kornia-image", version = "0.1.15" }
-kornia-imgproc = { path = "crates/kornia-imgproc", version = "0.1.15" }
-kornia-io = { path = "crates/kornia-io", version = "0.1.15" }
-kornia-tensor = { path = "crates/kornia-tensor", version = "0.1.15" }
-kornia-tensor-ops = { path = "crates/kornia-tensor-ops", version = "0.1.15" }
-kornia-vlm = { path = "crates/kornia-vlm", version = "0.1.15" }
+kornia = { path = "crates/kornia", version = "0.2.0" }
+kornia-3d = { path = "crates/kornia-3d", version = "0.2.0" }
+kornia-algebra = { path = "crates/kornia-algebra", version = "0.2.0" }
+kornia-apriltag = { path = "crates/kornia-apriltag", version = "0.2.0" }
+kornia-bow = { path = "crates/kornia-bow", version = "0.2.0" }
+kornia-calib = { path = "crates/kornia-calib", version = "0.2.0" }
+kornia-image = { path = "crates/kornia-image", version = "0.2.0" }
+kornia-imgproc = { path = "crates/kornia-imgproc", version = "0.2.0" }
+kornia-io = { path = "crates/kornia-io", version = "0.2.0" }
+kornia-tensor = { path = "crates/kornia-tensor", version = "0.2.0" }
+kornia-tensor-ops = { path = "crates/kornia-tensor-ops", version = "0.2.0" }
+kornia-vlm = { path = "crates/kornia-vlm", version = "0.2.0" }
 log = "0.4"
 minijinja = { version = "2.20", features = ["loader"] }
 nalgebra = "0.35"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kornia-rs-0.1.15/kornia-cpp/build.rs 
new/kornia-rs-0.2.0/kornia-cpp/build.rs
--- old/kornia-rs-0.1.15/kornia-cpp/build.rs    2026-09-26 05:49:47.000000000 
+0200
+++ new/kornia-rs-0.2.0/kornia-cpp/build.rs     2026-09-26 21:31:19.000000000 
+0200
@@ -15,7 +15,9 @@
 }
 
 fn generate_version_header() {
-    let version = env::var("CARGO_PKG_VERSION").unwrap_or_else(|_| 
"0.0.0".to_string());
+    let var = |key: &str| env::var(key).unwrap_or_else(|_| panic!("cargo did 
not set {key}"));
+    let version = var("CARGO_PKG_VERSION");
+    let pre = var("CARGO_PKG_VERSION_PRE");
     let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
 
     let version_hpp = format!(
@@ -28,6 +30,8 @@
 #define KORNIA_VERSION_MAJOR {major}
 #define KORNIA_VERSION_MINOR {minor}
 #define KORNIA_VERSION_PATCH {patch}
+#define KORNIA_VERSION_PRERELEASE "{pre}"
+#define KORNIA_VERSION_IS_PRERELEASE {is_pre}
 
 namespace kornia {{
 namespace detail {{
@@ -40,9 +44,12 @@
 }} // namespace kornia
 "#,
         version = version,
-        major = version.split('.').next().unwrap_or("0"),
-        minor = version.split('.').nth(1).unwrap_or("0"),
-        patch = version.split('.').nth(2).unwrap_or("0"),
+        // Cargo splits the semver for us: PATCH stays an integer on a 
prerelease
+        // ("0.1.16-rc.1" -> 16), and the tag goes to PRERELEASE ("rc.1", 
empty on a release).
+        major = var("CARGO_PKG_VERSION_MAJOR"),
+        minor = var("CARGO_PKG_VERSION_MINOR"),
+        patch = var("CARGO_PKG_VERSION_PATCH"),
+        is_pre = u8::from(!pre.is_empty()),
     );
 
     // Write to OUT_DIR for Rust build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kornia-rs-0.1.15/kornia-cpp/include/kornia/kornia.hpp 
new/kornia-rs-0.2.0/kornia-cpp/include/kornia/kornia.hpp
--- old/kornia-rs-0.1.15/kornia-cpp/include/kornia/kornia.hpp   2026-09-26 
05:49:47.000000000 +0200
+++ new/kornia-rs-0.2.0/kornia-cpp/include/kornia/kornia.hpp    2026-09-26 
21:31:19.000000000 +0200
@@ -27,7 +27,9 @@
 
 /// @brief Get kornia-cpp library version string
 ///
-/// @return Version string in format "MAJOR.MINOR.PATCH" (e.g., "0.1.0")
+/// @return Version string "MAJOR.MINOR.PATCH[-PRERELEASE]" (e.g., "0.1.0", 
"0.1.16-rc.1").
+///         For numeric checks use the KORNIA_VERSION_MAJOR/MINOR/PATCH and
+///         KORNIA_VERSION_IS_PRERELEASE macros instead of parsing this string.
 ///
 /// The version is automatically generated from Cargo.toml during build.
 inline const char* version() {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kornia-rs-0.1.15/kornia-cpp/tests/test_version.cpp 
new/kornia-rs-0.2.0/kornia-cpp/tests/test_version.cpp
--- old/kornia-rs-0.1.15/kornia-cpp/tests/test_version.cpp      2026-09-26 
05:49:47.000000000 +0200
+++ new/kornia-rs-0.2.0/kornia-cpp/tests/test_version.cpp       2026-09-26 
21:31:19.000000000 +0200
@@ -2,8 +2,26 @@
 #include <kornia.hpp>
 #include <string>
 
+// The numeric parts must be integer literals: usable in #if and as int.
+static_assert(KORNIA_VERSION_MAJOR >= 0 && KORNIA_VERSION_MINOR >= 0 && 
KORNIA_VERSION_PATCH >= 0,
+              "version parts must be integers");
+static_assert(KORNIA_VERSION_IS_PRERELEASE == 0 || 
KORNIA_VERSION_IS_PRERELEASE == 1,
+              "IS_PRERELEASE must be 0 or 1");
+
 TEST_CASE("Library Version", "[version]") {
     const char* version = kornia::version();
     REQUIRE(version != nullptr);
     REQUIRE(std::string(version).length() > 0);
 }
+
+TEST_CASE("Version parts rebuild the version string", "[version]") {
+    std::string expected = std::to_string(KORNIA_VERSION_MAJOR) + "." +
+                           std::to_string(KORNIA_VERSION_MINOR) + "." +
+                           std::to_string(KORNIA_VERSION_PATCH);
+    const std::string pre = KORNIA_VERSION_PRERELEASE;
+    REQUIRE((KORNIA_VERSION_IS_PRERELEASE == 1) == !pre.empty());
+    if (!pre.empty()) {
+        expected += "-" + pre;
+    }
+    REQUIRE(std::string(kornia::version()) == expected);
+}

Reply via email to