Skip to content

Commit 96d6d14

Browse files
committed
build: fix uv install instructions
`init` is for creating new projects, not installing existing ones. Added ipykernel as a dev dependency to backend so VSCode can use the notebook with it. Updated lockfile (I see changes even though I ran with `uv sync --frozen`?)
1 parent 105e9e1 commit 96d6d14

File tree

4 files changed

+1524
-146
lines changed

4 files changed

+1524
-146
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ logs/
5454
*.tfstate.*
5555
.terraform/
5656
.terraform.lock.hcl
57+
backend.hcl
5758
terraform.tfvars
5859

5960
# AWS

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,18 @@ Explore the README.md file under the **infra** directory for more details on the
6565

6666
### Test locally
6767

68-
1. **Initialize the project**:
68+
1. **Initialize the project and dependencies**:
6969
```bash
7070
cd cx-agent-backend
71-
pip install uv
72-
uv init
71+
uv venv
72+
uv sync --all-extras --frozen
7373
```
74-
2. **Install dependencies**: `uv sync --frozen`
75-
3. **Run locally**:
74+
2. **Run locally**:
7675
```bash
7776
cd src
7877
uv run run.py
7978
```
80-
4. **Test the health endpoint**:
79+
3. **Test the health endpoint**:
8180
```bash
8281
curl http://localhost:8080/ping
8382
```
@@ -106,6 +105,8 @@ curl -X POST http://localhost:8080/api/v1/feedback \
106105
5. **Run the Streamlit app**:
107106
```bash
108107
cd cx-agent-frontend
108+
uv venv
109+
uv sync --frozen
109110
uv run streamlit run src/app.py --server.port 8501 --server.address 127.0.0.1
110111
```
111112
6. Access the web interface at `http://localhost:8501`

cx-agent-backend/pyproject.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,31 @@ version = "0.1.0"
44
description = "Clean Architecture CX Agent Backend"
55
requires-python = ">=3.11"
66
dependencies = [
7+
"aws-opentelemetry-distro>=0.1.0",
8+
"boto3>=1.34.0",
9+
"dependency-injector>=4.41.0",
710
"fastapi>=0.104.0",
8-
"uvicorn[standard]>=0.24.0",
9-
"pydantic>=2.5.0",
10-
"pydantic-settings>=2.1.0",
1111
"langchain>=0.1.0",
12+
"langchain-aws>=0.1.0",
1213
"langchain-core>=0.1.0",
1314
"langchain-openai>=0.1.0",
14-
"langchain-aws>=0.1.0",
15-
"langgraph>=0.1.0",
1615
"langfuse>=2.0.0",
17-
"boto3>=1.34.0",
16+
"langgraph>=0.1.0",
17+
"pydantic>=2.5.0",
18+
"pydantic-settings>=2.1.0",
1819
"structlog>=23.2.0",
19-
"dependency-injector>=4.41.0",
2020
"tavily-python>=0.3.0",
21-
"aws-opentelemetry-distro>=0.1.0",
21+
"uvicorn[standard]>=0.24.0",
2222
]
2323

2424
[project.optional-dependencies]
2525
dev = [
26+
"httpx>=0.25.0",
27+
"ipykernel>=6.30.1",
28+
"mypy>=1.7.0",
2629
"pytest>=7.4.0",
2730
"pytest-asyncio>=0.21.0",
28-
"httpx>=0.25.0",
2931
"ruff>=0.1.0",
30-
"mypy>=1.7.0",
3132
]
3233

3334
[build-system]
@@ -43,4 +44,4 @@ line-length = 88
4344

4445
[tool.mypy]
4546
python_version = "3.11"
46-
strict = true
47+
strict = true

0 commit comments

Comments
 (0)