feat: add wheel package

This commit is contained in:
qixinbo
2026-03-31 21:06:13 +08:00
parent 01524aaff5
commit 7cdbf1d333
9 changed files with 628 additions and 41 deletions
+24 -1
View File
@@ -1,5 +1,5 @@
[project]
name = "backend"
name = "dataclaw"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
@@ -56,5 +56,28 @@ dependencies = [
"python-pptx>=1.0.2",
]
[project.scripts]
dataclaw = "app.cli:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["app"]
[tool.hatch.build.targets.wheel.sources]
"app" = "app"
[tool.hatch.build.targets.wheel.force-include]
"frontend/dist" = "app/webui"
"main.py" = "main.py"
[tool.hatch.build.targets.sdist.force-include]
"../frontend/dist" = "frontend/dist"
[tool.uv.sources]
nanobot-ai = { path = "../nanobot", editable = true }