Package as 'autohover' with uv run / uvx entry points
Add main.py and a flat-layout hatchling build with a console script (autohover = mission_client:main), replacing tool.uv package=false, so the app runs via 'uv run main.py' and installs via uvx / uv tool install -- matching the sibling Crazyflie projects. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "crazyflie-mission-client"
|
||||
name = "autohover"
|
||||
version = "0.1.0"
|
||||
description = "Tkinter mission client that flies a Crazyflie + Flow v2 deck to a 1 m hover"
|
||||
description = "DearPyGui mission client that flies a Crazyflie + Flow v2 deck to a hover"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
@@ -12,6 +12,13 @@ dependencies = [
|
||||
"dearpygui>=2.0",
|
||||
]
|
||||
|
||||
[tool.uv]
|
||||
# Flat-module application, not an installable package — don't try to build it.
|
||||
package = false
|
||||
[project.scripts]
|
||||
autohover = "mission_client:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
# Flat-layout app: ship the two top-level modules as the package contents.
|
||||
only-include = ["mission_client.py", "controller.py"]
|
||||
|
||||
Reference in New Issue
Block a user