Skip to content

Commit 242ad34

Browse files
DanMeonclaude
andcommitted
build: examples extras 통합 — 예제 01~03 일괄 설치 지원
변경사항: - [project.optional-dependencies] examples 에 langchain-core, langchain-text-splitters 합류 (typer 와 우산 구성) - pip install "rhwp-python[examples]" 단일 명령으로 예제 러너 의존성 전부 해결 - examples/README.md 사전 준비 안내를 단일 설치 커맨드로 단순화 - uv.lock 갱신 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a4361d1 commit 242ad34

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

examples/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
## 사전 준비
77

88
```bash
9-
# 예제 실행용 (typer 포함)
9+
# 01 ~ 03 예제 전부 한 방에 설치 (typer + langchain-core + text-splitters)
1010
pip install "rhwp-python[examples]"
11-
12-
# LangChain 예제까지 돌리려면
13-
pip install "rhwp-python[langchain,examples]" langchain-text-splitters
1411
```
1512

13+
> 통합 레이어만 필요하면 (예제 러너 없이 직접 `HwpLoader` 사용) `pip install "rhwp-python[langchain]"` 만으로 충분하다.
14+
1615
## 스크립트
1716

1817
모든 스크립트는 `--help` 로 옵션을 확인할 수 있다.

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ Upstream = "https://github.com/edwardkim/rhwp"
4444

4545
[project.optional-dependencies]
4646
langchain = ["langchain-core>=0.2"]
47-
examples = ["typer>=0.12"]
47+
# ^ examples 는 01~03 예제 스크립트 일괄 실행용 우산 extras — typer + langchain-core + text-splitters 합집합
48+
examples = [
49+
"typer>=0.12",
50+
"langchain-core>=0.2",
51+
"langchain-text-splitters>=0.2",
52+
]
4853

4954
[dependency-groups]
5055
dev = ["maturin>=1.7"]

uv.lock

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)