Skip to content

Commit 7308b6f

Browse files
authored
reformat: Rename Rust core (#112)
1 parent e901b89 commit 7308b6f

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _tests/
44
.venv*
55
.env
66

7-
fluxqueue_core.cp**
7+
_core.cp**
88
__pycache__/
99
.ruff_cache/
1010
.pytest_cache/

crates/fluxqueue-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl FluxQueueCore {
7575
}
7676

7777
#[pymodule]
78-
fn fluxqueue_core(m: &Bound<'_, PyModule>) -> PyResult<()> {
78+
fn _core(m: &Bound<'_, PyModule>) -> PyResult<()> {
7979
m.add_class::<FluxQueueCore>()?;
8080
Ok(())
8181
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ docs = [
5555
build = ["maturin"]
5656

5757
[tool.maturin]
58-
module-name = "fluxqueue.fluxqueue_core"
58+
module-name = "fluxqueue._core"
5959
python-source = "python"
6060
manifest-path = "crates/fluxqueue-core/Cargo.toml"
6161

python/fluxqueue/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from functools import wraps
44
from typing import Any, ParamSpec, TypeAlias, cast
55

6-
from .fluxqueue_core import FluxQueueCore
6+
from ._core import FluxQueueCore
77
from .utils import get_task_name
88

99
P = ParamSpec("P")

0 commit comments

Comments
 (0)