Spaces:
Running
Running
Update src/pyproject.toml
Browse files- src/pyproject.toml +6 -17
src/pyproject.toml
CHANGED
|
@@ -1,16 +1,10 @@
|
|
| 1 |
-
# ─────────────────── pyproject.toml (위치: src/backend/pyproject.toml) ───────────────────
|
| 2 |
[build-system]
|
| 3 |
-
requires = [
|
| 4 |
-
"hatchling>=1.21.0",
|
| 5 |
-
]
|
| 6 |
build-backend = "hatchling.build"
|
| 7 |
|
| 8 |
-
###########################################################################################
|
| 9 |
-
# 1. 필수 메타데이터
|
| 10 |
-
###########################################################################################
|
| 11 |
[project]
|
| 12 |
-
name = "gradio_workflowbuilder"
|
| 13 |
-
version = "0.0.0-local"
|
| 14 |
description = "Local patched WorkflowBuilder for HuggingFace Space demo"
|
| 15 |
readme = "README.md"
|
| 16 |
requires-python = ">=3.10"
|
|
@@ -20,16 +14,11 @@ dependencies = [
|
|
| 20 |
"gradio>=5.0,<6.0"
|
| 21 |
]
|
| 22 |
|
| 23 |
-
###########################################################################################
|
| 24 |
-
# 2. 빌드 대상 디렉터리 지정 (※ ‘앞에 /’ 절대 넣지 마세요)
|
| 25 |
-
###########################################################################################
|
| 26 |
[tool.hatch.build]
|
| 27 |
-
|
| 28 |
-
# → 우리는 src/backend/ 가 ‘패키지 루트’니, 그 안을 그대로 wheel 로 묶으면 됩니다.
|
| 29 |
-
sources = ["backend"] # <== 중요! (backend/ 폴더 통째로 복사)
|
| 30 |
artifacts = [
|
| 31 |
-
"backend/gradio_workflowbuilder/templates/**"
|
| 32 |
]
|
| 33 |
|
| 34 |
[tool.hatch.build.targets.wheel]
|
| 35 |
-
packages = ["backend/gradio_workflowbuilder"]
|
|
|
|
|
|
|
| 1 |
[build-system]
|
| 2 |
+
requires = ["hatchling>=1.21.0"]
|
|
|
|
|
|
|
| 3 |
build-backend = "hatchling.build"
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
[project]
|
| 6 |
+
name = "gradio_workflowbuilder"
|
| 7 |
+
version = "0.0.0-local"
|
| 8 |
description = "Local patched WorkflowBuilder for HuggingFace Space demo"
|
| 9 |
readme = "README.md"
|
| 10 |
requires-python = ">=3.10"
|
|
|
|
| 14 |
"gradio>=5.0,<6.0"
|
| 15 |
]
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
[tool.hatch.build]
|
| 18 |
+
sources = ["."] # ←★ 여기만 변경
|
|
|
|
|
|
|
| 19 |
artifacts = [
|
| 20 |
+
"backend/gradio_workflowbuilder/templates/**"
|
| 21 |
]
|
| 22 |
|
| 23 |
[tool.hatch.build.targets.wheel]
|
| 24 |
+
packages = ["backend/gradio_workflowbuilder"] # 그대로
|