openfree commited on
Commit
a2f2bbf
·
verified ·
1 Parent(s): 1745cc9

Update src/pyproject.toml

Browse files
Files changed (1) hide show
  1. src/pyproject.toml +22 -38
src/pyproject.toml CHANGED
@@ -1,51 +1,35 @@
 
1
  [build-system]
2
  requires = [
3
- "hatchling",
4
- "hatch-requirements-txt",
5
- "hatch-fancy-pypi-readme>=22.5.0",
6
  ]
7
  build-backend = "hatchling.build"
8
 
 
 
 
9
  [project]
10
- name = "gradio_workflowbuilder"
11
- version = "0.0.1"
12
- description = "workflow builder"
13
  readme = "README.md"
14
- license = "apache-2.0"
15
  requires-python = ">=3.10"
16
- authors = [{ name = "YOUR NAME", email = "YOUREMAIL@domain.com" }]
17
- keywords = ["gradio-custom-component", "gradio-template-SimpleTextbox", "workflow", "builder", "editor"]
18
- # Add dependencies here
19
- dependencies = ["gradio>=4.0,<6.0"]
20
- classifiers = [
21
- 'Development Status :: 3 - Alpha',
22
- 'Operating System :: OS Independent',
23
- 'Programming Language :: Python :: 3',
24
- 'Programming Language :: Python :: 3 :: Only',
25
- 'Programming Language :: Python :: 3.8',
26
- 'Programming Language :: Python :: 3.9',
27
- 'Programming Language :: Python :: 3.10',
28
- 'Programming Language :: Python :: 3.11',
29
- 'Topic :: Scientific/Engineering',
30
- 'Topic :: Scientific/Engineering :: Artificial Intelligence',
31
- 'Topic :: Scientific/Engineering :: Visualization',
32
  ]
33
 
34
- # The repository and space URLs are optional, but recommended.
35
- # Adding a repository URL will create a badge in the auto-generated README that links to the repository.
36
- # Adding a space URL will create a badge in the auto-generated README that links to the space.
37
- # This will make it easy for people to find your deployed demo or source code when they
38
- # encounter your project in the wild.
39
-
40
- # [project.urls]
41
- # repository = "your github repository"
42
- # space = "your space url"
43
-
44
- [project.optional-dependencies]
45
- dev = ["build", "twine"]
46
-
47
  [tool.hatch.build]
48
- artifacts = ["/backend/gradio_workflowbuilder/templates", "*.pyi"]
 
 
 
 
 
49
 
50
  [tool.hatch.build.targets.wheel]
51
- packages = ["/backend/gradio_workflowbuilder"]
 
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"
17
+ authors = [{ name = "YOUR NAME" }]
18
+ license = { text = "Apache-2.0" }
19
+ 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"] # 패키지 진입점