Switched from pip to uv

master
oabrivard 1 week ago
parent d9c7497acb
commit 14942a88cc

1
.gitignore vendored

@ -1,5 +1,6 @@
.env .env
.venv/ .venv/
.uv-cache/
__pycache__/ __pycache__/
*.pyc *.pyc
credentials.json credentials.json

@ -11,6 +11,7 @@ This project runs a small local API service that:
## 1) Prerequisites ## 1) Prerequisites
- Python 3.11+ - Python 3.11+
- `uv` ([installation guide](https://docs.astral.sh/uv/getting-started/installation/))
- A Google account - A Google account
- An OpenAI-compatible API key for the LLM classifier - An OpenAI-compatible API key for the LLM classifier
- A Google Cloud project with: - A Google Cloud project with:
@ -30,9 +31,7 @@ The first run opens a browser window for consent and creates `token.json`.
## 3) Install and configure ## 3) Install and configure
```bash ```bash
python3 -m venv .venv uv sync
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env cp .env.example .env
``` ```
@ -45,7 +44,7 @@ Edit `.env` and set:
## 4) Run ## 4) Run
```bash ```bash
uvicorn app.main:app --reload uv run uvicorn app.main:app --reload
``` ```
At startup, the scheduler runs every `GMAIL_SCAN_INTERVAL_MINUTES`. At startup, the scheduler runs every `GMAIL_SCAN_INTERVAL_MINUTES`.

@ -0,0 +1,19 @@
[project]
name = "personal-gmail-calendar-agent"
version = "0.1.0"
description = "Personal agent for Gmail triage and calendar availability"
requires-python = ">=3.11"
dependencies = [
"apscheduler",
"fastapi",
"google-api-python-client",
"google-auth",
"google-auth-oauthlib",
"openai",
"python-dotenv",
"uvicorn[standard]",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

@ -1,8 +0,0 @@
apscheduler
fastapi
google-api-python-client
google-auth
google-auth-oauthlib
openai
python-dotenv
uvicorn[standard]
Loading…
Cancel
Save