-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·64 lines (52 loc) · 1.58 KB
/
setup.sh
File metadata and controls
executable file
·64 lines (52 loc) · 1.58 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# Development environment setup script for Linux
# Requires Python 3.14 and UV
set -e
echo "Setting up Template Desktop Application development environment..."
# Check if UV is installed
if ! command -v uv &>/dev/null; then
echo "UV is not installed. Installing UV..."
curl -LsSf https://astral.sh/uv/install.sh | sh
# Add UV to PATH for current session
export PATH="$HOME/.cargo/bin:$PATH"
echo "UV installed successfully!"
fi
# Check Python version
python_version=$(python3 --version 2>&1 | awk '{print $2}')
echo "Python version: $python_version"
# Verify Python 3.14
if [[ ! "$python_version" =~ ^3\.14 ]]; then
echo "❌ Error: Python 3.14 is required, but found $python_version"
echo "Please install Python 3.14 and try again."
exit 1
fi
# Create virtual environment with UV
echo "Creating virtual environment with UV..."
uv venv
# Activate virtual environment
echo "Activating virtual environment..."
source .venv/bin/activate
# Install dependencies with UV
echo "Installing dependencies with UV..."
uv pip install -r requirements.txt
# Install development dependencies
echo "Installing development dependencies..."
uv pip install black isort mypy pylint
echo ""
echo "✅ Setup complete!"
echo ""
echo "To activate the virtual environment, run:"
echo " source .venv/bin/activate"
echo ""
echo "To run the application:"
echo " python src/main.py"
echo ""
echo "To run tests:"
echo " pytest tests/"
echo ""
echo "To edit UI files:"
echo " designer src/views/ui/main_window.ui"
echo ""
echo "To run tests with coverage:"
echo " pytest --cov=src --cov-report=html tests/"
echo ""