build: flows optional extra; test imports fiwicontrol.flows
Made-with: Cursor
This commit is contained in:
parent
f683c1cbae
commit
2dfbecc3f8
|
|
@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
||||||
[project]
|
[project]
|
||||||
name = "fiwicontrol"
|
name = "fiwicontrol"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "FiWiControl repo: commands (SSH/ush), lab (USB discovery + INI inventory), power (Acroname/Monsoon)."
|
description = "FiWiControl repo: commands (SSH/ush), lab (USB discovery + INI inventory), power (Acroname/Monsoon), flows (async iperf over SSH)."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
|
|
@ -16,6 +16,7 @@ dependencies = []
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
dev = ["pytest>=8.0"]
|
dev = ["pytest>=8.0"]
|
||||||
power = ["brainstem", "pyserial"]
|
power = ["brainstem", "pyserial"]
|
||||||
|
flows = ["numpy", "scipy", "matplotlib"]
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
package-dir = {"" = "src"}
|
package-dir = {"" = "src"}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
def test_import_subpackages() -> None:
|
def test_import_subpackages() -> None:
|
||||||
import fiwicontrol
|
import fiwicontrol
|
||||||
import fiwicontrol.commands
|
import fiwicontrol.commands
|
||||||
|
import fiwicontrol.flows
|
||||||
import fiwicontrol.lab
|
import fiwicontrol.lab
|
||||||
import fiwicontrol.power
|
import fiwicontrol.power
|
||||||
|
|
||||||
assert fiwicontrol.__version__
|
assert fiwicontrol.__version__
|
||||||
|
assert "iperf" in (fiwicontrol.flows.__doc__ or "").lower()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue