Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
265 changes: 195 additions & 70 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/python/publish_subscribe/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

"""Publisher example."""

import iceoryx2 as iox2
from transmission_data import TransmissionData
import iceoryx2 as iox2

cycle_time = iox2.Duration.from_secs(1)

Expand Down
10 changes: 9 additions & 1 deletion iceoryx2-ffi/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ readme = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "_iceoryx2"
crate-type = ["cdylib"]
crate-type = ["cdylib", "rlib"]

[[bin]]
name = "iceoryx2_ffi_python_stubgen"
path = "src/stubgen.rs"
doc = false

[dependencies]
iceoryx2 = { workspace = true }
iceoryx2-bb-log = { workspace = true }

pyo3-stub-gen = "0.12.2"
pyo3-stub-gen-derive = "0.12.2"

[dependencies.pyo3]
version = "0.25.0"
features = ["abi3-py38"]
32 changes: 27 additions & 5 deletions iceoryx2-ffi/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions iceoryx2-ffi/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ black = "^25.1.0"
isort = "^6.0.1"
bandit = "^1.8.6"
maturin = "^1.9.1"
pyo3-stubgen = "^0.3.0"

[tool.poetry.requires-plugins]
poethepoet = { version = "~0.35.0", extras = ["poetry_plugin"]}
Expand All @@ -74,6 +75,9 @@ poetry_command = ""
[tool.poe.tasks.build-into-venv]
shell = "maturin develop --manifest-path Cargo.toml --target-dir ../../target/ffi/python"

[tool.poe.tasks.generate-stubs]
shell = "pyo3-stubgen iceoryx2._iceoryx2 python-src/"

[tool.poe.tasks.check-imports]
sequence = [
{ shell = "isort --check-only ../../examples/python" },
Expand Down
Loading