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]
|
||||
name = "fiwicontrol"
|
||||
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"
|
||||
requires-python = ">=3.11"
|
||||
license = { file = "LICENSE" }
|
||||
|
|
@ -16,6 +16,7 @@ dependencies = []
|
|||
[project.optional-dependencies]
|
||||
dev = ["pytest>=8.0"]
|
||||
power = ["brainstem", "pyserial"]
|
||||
flows = ["numpy", "scipy", "matplotlib"]
|
||||
|
||||
[tool.setuptools]
|
||||
package-dir = {"" = "src"}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
def test_import_subpackages() -> None:
|
||||
import fiwicontrol
|
||||
import fiwicontrol.commands
|
||||
import fiwicontrol.flows
|
||||
import fiwicontrol.lab
|
||||
import fiwicontrol.power
|
||||
|
||||
assert fiwicontrol.__version__
|
||||
assert "iperf" in (fiwicontrol.flows.__doc__ or "").lower()
|
||||
|
|
|
|||
Loading…
Reference in New Issue