update packaging for dora 1.0 and uv

dora-rs 1.0.1 requires Python 3.11+. Drops the numpy<2 pin, which the
littlehand lockfile shows is unnecessary with the current xArm SDK, and
moves to hatchling with a uv lockfile that CI installs with --locked so a
dependency change that was never locked cannot reach main.

Removes scripts/install.sh: uv sync is the whole install now.
This commit is contained in:
2026-09-12 11:47:06 -03:00
parent a2bf59065d
commit 6311f6daae
4 changed files with 373 additions and 345 deletions
+31 -17
View File
@@ -1,28 +1,42 @@
[project]
name = "dora-ulite6"
version = "0.1.2"
license = "MIT"
authors = [
{ name = "Dora" }
]
description = "Dora node for controlling the UFactory Lite6 robot"
requires-python = ">=3.12"
version = "0.3.0"
description = "Dora node for a UFactory Lite6 arm: motion and control services, and joint and tool-pose telemetry"
readme = "README.md"
license = { text = "MIT" }
# dora-rs 1.0 requires 3.11; the driver uses zip(strict=) and PEP 604 unions.
requires-python = ">=3.11"
dependencies = [
"dora-rs == 0.5.0",
"numpy < 2.0.0",
"scipy >= 1.14.0",
"dora-rs >= 1.0.1",
"numpy >= 2.0",
"pyarrow >= 17.0",
"scipy >= 1.14",
"xarm-python-sdk >= 1.17.3",
"fastapi >= 0.109.0",
"uvicorn >= 0.27.0",
]
[dependency-groups]
dev = ["pytest >=8.1.1", "ruff >=0.9.1"]
[project.scripts]
dora-ulite6 = "dora_ulite6.main:main"
[tool.setuptools]
[dependency-groups]
dev = ["pytest >= 8.1", "ruff >= 0.9"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["dora_ulite6"]
[tool.ruff]
line-length = 110
[tool.ruff.lint]
extend-select = ["D", "I", "N", "RET", "UP"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
# Test names are the documentation here; a docstring would only repeat them.
"tests/*" = ["D1"]