-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
49 lines (41 loc) · 1.33 KB
/
setup.sh
File metadata and controls
49 lines (41 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
echo "ArXiv Paper Curator Setup"
echo "========================"
# Create directory structure
echo "Creating directories..."
mkdir -p logs
mkdir -p pdfs
mkdir -p temp
mkdir -p backups
mkdir -p prompts
# Copy prompt templates
echo "Setting up prompt templates..."
# The prompts are defined above - copy them to the prompts/ directory
# Install Python dependencies
echo "Installing Python dependencies..."
pip install -r requirements.txt
# Initialize ezgmail (requires manual OAuth setup)
echo ""
echo "Setting up Gmail access..."
echo "You need to:"
echo "1. Go to https://console.cloud.google.com/"
echo "2. Create a new project or select existing"
echo "3. Enable Gmail API"
echo "4. Create OAuth 2.0 credentials"
echo "5. Download credentials.json to this directory"
echo "6. Run: python3 -c 'import ezgmail; ezgmail.init()'"
echo ""
# Database initialization happens automatically on first run
# Create .env file if it doesn't exist
if [ ! -f .env ]; then
echo "Creating .env file..."
echo "Please edit .env and add your API keys and configuration"
cp .env.example .env
fi
echo "Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env with your API keys and settings"
echo "2. Set up Gmail OAuth (see instructions above)"
echo "3. Test with: python3 arxiv_curator.py --dry-run"
echo "4. Add to crontab for automated running"