From c9e7418b3af5a5f947609045b12f4130419934d6 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Thu, 18 Jul 2024 13:41:27 +0200 Subject: [PATCH] Bugfixes for building Python extension module --- Cargo.toml | 2 +- pyproject.toml | 2 +- src/daq/mod.rs | 1 - src/daq/streamerror.rs | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aa50c30..43e9262 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lasprs" -version = "0.4.2" +version = "0.5.0" edition = "2021" authors = ["J.A. de Jong "] description = "Library for Acoustic Signal Processing (Rust edition, with optional Python bindings via pyo3)" diff --git a/pyproject.toml b/pyproject.toml index dff3178..72c2cb3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] - +dynamic = ["version"] dependencies = ["numpy"] [tool.maturin] diff --git a/src/daq/mod.rs b/src/daq/mod.rs index ad99305..5987c2e 100644 --- a/src/daq/mod.rs +++ b/src/daq/mod.rs @@ -71,7 +71,6 @@ pub fn add_py_classses(m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_class::()?; m.add_class::()?; m.add_class::()?; - m.add_class::()?; m.add_class::()?; m.add_class::()?; m.add_class::()?; diff --git a/src/daq/streamerror.rs b/src/daq/streamerror.rs index 61de1d2..cae0d19 100644 --- a/src/daq/streamerror.rs +++ b/src/daq/streamerror.rs @@ -1,4 +1,5 @@ use strum_macros::Display; +use crate::config::*; /// Errors that happen in a stream #[derive(strum_macros::EnumMessage, Debug, Clone, Display, Copy)]