Skip to content

Commit

Permalink
Bump maturin version: 0.14 -> 1.1 (#52)
Browse files Browse the repository at this point in the history
* Bump maturin version: 0.14 -> 1.1

* Bump pyo3 and numpy version to 0.19
  • Loading branch information
TomaSajt authored Jul 21, 2023
1 parent 3cf15c1 commit f97a032
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 2 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@ description = "Python bindings for time series downsampling algorithms"
repository = "https://github.com/predict-idlab/tsdownsample"
license = "MIT"

[package.metadata.maturin]
# Import the Rust library under this path
# See: https://www.maturin.rs/project_layout.html#import-rust-as-a-submodule-of-your-project
name = "tsdownsample._rust._tsdownsample_rs"

[dependencies]
downsample_rs = { path = "downsample_rs", features = ["half"]}
pyo3 = { version = "0.18", features = ["extension-module"] }
numpy = { version = "0.18", features = ["half"] }
pyo3 = { version = "0.19", features = ["extension-module"] }
numpy = { version = "0.19", features = ["half"] }
half = { version = "2.1", default-features = false }
paste = { version = "1.0.9", default-features = false }

Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.14,<0.15"]
requires = ["maturin>=1.1,<2.0"]
build-backend = "maturin"

[project]
Expand Down Expand Up @@ -33,6 +33,8 @@ Repository = "https://github.com/predict-idlab/tsdownsample"
# Build Python bindings for rust
[tool.maturin]
bindings = "pyo3"
module-name = "tsdownsample._rust._tsdownsample_rs" # The path to place the compiled Rust module
# See: https://www.maturin.rs/project_layout.html#import-rust-as-a-submodule-of-your-project

# Linting
[tool.ruff]
Expand All @@ -58,4 +60,4 @@ check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = false
disallow_any_generics = false
ignore_missing_imports = true
ignore_missing_imports = true

0 comments on commit f97a032

Please sign in to comment.