shr-parser 0.1.3__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -292,7 +292,7 @@ dependencies = [
292
292
 
293
293
  [[package]]
294
294
  name = "shr_parser_py"
295
- version = "0.1.3"
295
+ version = "0.1.5"
296
296
  dependencies = [
297
297
  "pyo3",
298
298
  "shr_parser",
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  name = "shr_parser_py"
3
3
  description = "Python bindings for the shr_parser Rust crate"
4
- version = "0.1.3"
4
+ version = "0.1.5"
5
5
  edition = "2021"
6
6
  license = "GPL-3.0-only"
7
7
  authors = ["Lasse Nielsen <lasse@xerrion.dk>"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: shr_parser
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -9,7 +9,7 @@ Summary: Parses sweeps from a Signal Hound Spike file.
9
9
  Author: Lasse Nielsen
10
10
  Author-email: Lasse Nielsen <lasse@xerrion.dk>
11
11
  License: GPL-3.0-only
12
- Requires-Python: >=3.8
12
+ Requires-Python: >=3.8, <=3.12
13
13
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
14
14
  Project-URL: Source Code, https://github.com/Xerrion/shr_parser_py
15
15
 
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "shr_parser"
7
- requires-python = ">=3.8"
7
+ requires-python = ">=3.8,<=3.12"
8
8
  classifiers = [
9
9
  "Programming Language :: Rust",
10
10
  "Programming Language :: Python :: Implementation :: CPython",
@@ -16,5 +16,6 @@ readme = "README.md"
16
16
  license = { file = "LICENSE" }
17
17
  description = "Parses sweeps from a Signal Hound Spike file."
18
18
 
19
+
19
20
  [tool.maturin]
20
21
  features = ["pyo3/extension-module"]
@@ -1,7 +1,7 @@
1
1
  use pyo3::prelude::*;
2
2
  use pyo3::wrap_pyfunction;
3
3
  use std::path::PathBuf;
4
- use shr_parser::{SHRParser, SHRParsingType};
4
+ use ::shr_parser::{SHRParser, SHRParsingType};
5
5
 
6
6
  /// A wrapper around the SHRParser for Python
7
7
  #[pyclass]
@@ -54,7 +54,7 @@ fn create_parser(file_path: String, parsing_type: i32) -> PyResult<PySHRParser>
54
54
 
55
55
  /// A Python module implemented in Rust.
56
56
  #[pymodule]
57
- fn my_module(module: &Bound<'_, PyModule>) -> PyResult<()> {
57
+ fn shr_parser(module: &Bound<'_, PyModule>) -> PyResult<()> {
58
58
  module.add_class::<PySHRParser>()?;
59
59
  module.add_function(wrap_pyfunction!(create_parser, module)?)?;
60
60
  Ok(())
File without changes
File without changes
File without changes