Skip to content

Commit 0605ef4

Browse files
committed
chore: customise ide hints
1 parent fcf99dc commit 0605ef4

6 files changed

Lines changed: 5 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rem_math"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
edition = "2021"
55

66
[lib]

benches/numpy_compare_benchmark_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
NUM_ITERATIONS = 10_000_000
77

8-
98
@pytest.fixture(scope="module")
109
def large_array():
1110
return np.array([i for i in range(NUM_ITERATIONS)], dtype=np.int32)

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "rem_math"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
description = ""
55
authors = [
66
{name = "WrldEngine",email = "kamran_pulatov@outlook.com"}
@@ -16,9 +16,7 @@ requires = ["maturin>=1.0,<2.0"]
1616
build-backend = "maturin"
1717

1818
[tool.maturin]
19-
python-source = "rem_math"
20-
module-name = "rem_math"
21-
include = ["rem_math/**/*", "rem_math/py.typed"]
19+
module-name = "rem_math._rem_math"
2220

2321
[tool.poetry.group.dev.dependencies]
2422
pytest-benchmark = "^5.1.0"

rem_math/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from ._rem_math import *

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub fn multiply_two_ints32(
142142
}
143143

144144
#[pymodule]
145-
fn rem_math(m: &Bound<'_, PyModule>) -> PyResult<()> {
145+
fn _rem_math(m: &Bound<'_, PyModule>) -> PyResult<()> {
146146
m.add_function(wrap_pyfunction!(sum_nparr_int32, m)?)?;
147147
m.add_function(wrap_pyfunction!(sum_arr_int32, m)?)?;
148148
m.add_function(wrap_pyfunction!(sum_two_floats32, m)?)?;

0 commit comments

Comments
 (0)