Skip to content

Commit 8edcca3

Browse files
committed
wip
1 parent 1e799c8 commit 8edcca3

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

wingfoil-python/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2024"
55

66

77
[lib]
8-
name = "wingfoil_internal"
8+
name = "wingfoil"
99
crate-type = ["cdylib"]
1010

1111

@@ -26,5 +26,5 @@ pyo3 = { version = "0.27", features = ["extension-module", "serde"] }
2626

2727

2828
[package.metadata.maturin]
29-
name = "wingfoil_internal"
29+
name = "wingfoil"
3030

wingfoil-python/pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ classifiers = [
1616
"Programming Language :: Python :: Implementation :: CPython",
1717
]
1818

19+
[project.urls]
20+
homepage = "https://github.com/wingfoil-io/wingfoil/"
21+
1922
[tool.maturin]
20-
# maturin knows to look at Cargo.toml for module info
2123
features = ["pyo3/extension-module"]
22-
23-
[tool.setuptools]
24-
packages = ["wingfoil"]
24+
python-source = "python"
25+
module-name = "wingfoil._wingfoil"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
3+
4+
from ._wingfoil import Node, ticker

wingfoil-python/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ use anyhow::anyhow;
22
use pyo3::exceptions::PyException;
33
use std::time::SystemTime;
44

5-
use ::wingfoil::{Node, NodeOperators, RunFor, RunMode, Stream, StreamOperators};
6-
use wingfoil::NanoTime;
5+
use ::wingfoil::{Node, NodeOperators, RunFor, RunMode, Stream, StreamOperators, NanoTime};
76

87
use pyo3::conversion::IntoPyObjectExt;
98
use pyo3::prelude::*;
@@ -180,7 +179,7 @@ fn to_nano_time(py: Python<'_>, obj: Py<PyAny>) -> anyhow::Result<NanoTime> {
180179
}
181180

182181
#[pymodule]
183-
fn wingfoil_internal(module: &Bound<'_, PyModule>) -> PyResult<()> {
182+
fn _wingfoil(module: &Bound<'_, PyModule>) -> PyResult<()> {
184183
_ = env_logger::try_init();
185184
module.add_function(wrap_pyfunction!(ticker, module)?)?;
186185
module.add_class::<PyNode>()?;

wingfoil-python/wingfoil/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)