mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
log_transfer crashed with a raw ImportError on setups whose pymavlink predates the mavftp module (#27840). mavftp first shipped in pymavlink 2.4.42, so raise the floor in pyproject.toml, Tools/setup/requirements.txt and the README, and guard the import in px4bench.ftp so an old install reports a clear upgrade hint instead of a traceback. Both mavftp consumers now import it through the guard. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
27 lines
643 B
TOML
27 lines
643 B
TOML
[build-system]
|
|
requires = ["setuptools>=61"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "px4bench"
|
|
version = "0.1.0"
|
|
description = "PX4 bench-test suite: hang-visible release qualification on real NuttX hardware"
|
|
readme = "README.md"
|
|
license = { text = "BSD-3-Clause" }
|
|
requires-python = ">=3.8"
|
|
dependencies = [
|
|
# 2.4.42 is the first release that ships pymavlink.mavftp (log_transfer,
|
|
# flight_mission log download)
|
|
"pymavlink>=2.4.42",
|
|
"pyserial",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
ulog = ["pyulog"]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/PX4/PX4-Autopilot"
|
|
|
|
[tool.setuptools]
|
|
packages = ["px4bench"]
|