openfree commited on
Commit
71e0e47
·
verified ·
1 Parent(s): 069bbfb

Update src/pyproject.toml

Browse files
Files changed (1) hide show
  1. 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" # ← import 이름과 1:1
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
- # ─ hatch 는 기본적으로 프로젝트 루트(= pyproject.toml 있는 곳)를 준으로로를 잡습니다.
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"] # 그대로