|
| 1 | +# Installation Guide |
| 2 | + |
| 3 | +git-chronoscope can be installed through multiple methods. Choose the one that best fits your workflow. |
| 4 | + |
| 5 | +## Prerequisites |
| 6 | + |
| 7 | +All installation methods require: |
| 8 | +- **FFmpeg** - Required for video encoding ([download](https://ffmpeg.org/download.html)) |
| 9 | +- **Git** - Required for repository access |
| 10 | + |
| 11 | +## Quick Install |
| 12 | + |
| 13 | +### PyPI (Recommended) |
| 14 | + |
| 15 | +```bash |
| 16 | +pip install git-chronoscope |
| 17 | +``` |
| 18 | + |
| 19 | +### Homebrew (macOS/Linux) |
| 20 | + |
| 21 | +```bash |
| 22 | +brew tap southpawriter02/git-chronoscope |
| 23 | +brew install git-chronoscope |
| 24 | +``` |
| 25 | + |
| 26 | +### Docker |
| 27 | + |
| 28 | +```bash |
| 29 | +docker pull southpawriter02/git-chronoscope |
| 30 | +``` |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +## Detailed Installation Instructions |
| 35 | + |
| 36 | +### Option 1: PyPI Package |
| 37 | + |
| 38 | +The simplest way to install git-chronoscope is via pip: |
| 39 | + |
| 40 | +```bash |
| 41 | +# Install from PyPI |
| 42 | +pip install git-chronoscope |
| 43 | + |
| 44 | +# Or with a specific version |
| 45 | +pip install git-chronoscope==0.9.0-beta.1 |
| 46 | + |
| 47 | +# Verify installation |
| 48 | +git-chronoscope --help |
| 49 | +``` |
| 50 | + |
| 51 | +**Requirements:** |
| 52 | +- Python 3.7 or higher |
| 53 | +- FFmpeg installed and in PATH |
| 54 | + |
| 55 | +### Option 2: Homebrew (macOS/Linux) |
| 56 | + |
| 57 | +Install using the Homebrew package manager: |
| 58 | + |
| 59 | +```bash |
| 60 | +# Add the tap (first time only) |
| 61 | +brew tap southpawriter02/git-chronoscope |
| 62 | + |
| 63 | +# Install |
| 64 | +brew install git-chronoscope |
| 65 | + |
| 66 | +# Update to latest version |
| 67 | +brew update && brew upgrade git-chronoscope |
| 68 | +``` |
| 69 | + |
| 70 | +Homebrew will automatically install Python and FFmpeg dependencies. |
| 71 | + |
| 72 | +### Option 3: Standalone Executables |
| 73 | + |
| 74 | +Pre-built executables are available for Windows, macOS, and Linux. No Python installation required. |
| 75 | + |
| 76 | +1. Go to the [Releases page](https://github.com/southpawriter02/git-chronoscope/releases) |
| 77 | +2. Download the appropriate file for your platform: |
| 78 | + - `git-chronoscope-windows.exe` - Windows |
| 79 | + - `git-chronoscope-macos` - macOS |
| 80 | + - `git-chronoscope-linux` - Linux |
| 81 | +3. Make executable (macOS/Linux): |
| 82 | + ```bash |
| 83 | + chmod +x git-chronoscope-macos # or git-chronoscope-linux |
| 84 | + ``` |
| 85 | +4. Run: |
| 86 | + ```bash |
| 87 | + ./git-chronoscope-macos /path/to/repo output.mp4 |
| 88 | + ``` |
| 89 | + |
| 90 | +**Note:** You still need FFmpeg installed separately. |
| 91 | + |
| 92 | +### Option 4: Docker |
| 93 | + |
| 94 | +Run git-chronoscope in a container with all dependencies pre-installed: |
| 95 | + |
| 96 | +```bash |
| 97 | +# Pull the image |
| 98 | +docker pull southpawriter02/git-chronoscope |
| 99 | + |
| 100 | +# Run with a local repository |
| 101 | +docker run -v /path/to/repo:/repo -v /path/to/output:/output \ |
| 102 | + southpawriter02/git-chronoscope /repo /output/timelapse.mp4 |
| 103 | + |
| 104 | +# With additional options |
| 105 | +docker run -v /path/to/repo:/repo -v /path/to/output:/output \ |
| 106 | + southpawriter02/git-chronoscope /repo /output/timelapse.mp4 \ |
| 107 | + --format gif --resolution 720p --fps 5 |
| 108 | +``` |
| 109 | + |
| 110 | +### Option 5: From Source |
| 111 | + |
| 112 | +For development or to get the latest changes: |
| 113 | + |
| 114 | +```bash |
| 115 | +# Clone the repository |
| 116 | +git clone https://github.com/southpawriter02/git-chronoscope.git |
| 117 | +cd git-chronoscope |
| 118 | + |
| 119 | +# Create virtual environment (recommended) |
| 120 | +python -m venv .venv |
| 121 | +source .venv/bin/activate # On Windows: .venv\Scripts\activate |
| 122 | + |
| 123 | +# Install dependencies |
| 124 | +pip install -r requirements.txt |
| 125 | + |
| 126 | +# Run directly |
| 127 | +python -m src.main /path/to/repo output.mp4 |
| 128 | + |
| 129 | +# Or install in development mode |
| 130 | +pip install -e . |
| 131 | +git-chronoscope /path/to/repo output.mp4 |
| 132 | +``` |
| 133 | + |
| 134 | +### Option 6: GitHub Actions |
| 135 | + |
| 136 | +Use git-chronoscope directly in your CI/CD pipeline: |
| 137 | + |
| 138 | +```yaml |
| 139 | +- uses: southpawriter02/git-chronoscope@v1 |
| 140 | + with: |
| 141 | + format: mp4 |
| 142 | + output-path: timelapse.mp4 |
| 143 | + resolution: 1080p |
| 144 | +``` |
| 145 | +
|
| 146 | +See [.github/workflows/timelapse.yml](.github/workflows/timelapse.yml) for a complete example. |
| 147 | +
|
| 148 | +--- |
| 149 | +
|
| 150 | +## Verifying Installation |
| 151 | +
|
| 152 | +After installation, verify everything works: |
| 153 | +
|
| 154 | +```bash |
| 155 | +# Check version |
| 156 | +git-chronoscope --version |
| 157 | + |
| 158 | +# Show help |
| 159 | +git-chronoscope --help |
| 160 | + |
| 161 | +# Test with a repository |
| 162 | +git-chronoscope /path/to/any/git/repo test-output.mp4 --dry-run |
| 163 | +``` |
| 164 | + |
| 165 | +--- |
| 166 | + |
| 167 | +## Troubleshooting |
| 168 | + |
| 169 | +### FFmpeg not found |
| 170 | + |
| 171 | +If you see "FFmpeg not found" errors: |
| 172 | + |
| 173 | +**macOS:** |
| 174 | +```bash |
| 175 | +brew install ffmpeg |
| 176 | +``` |
| 177 | + |
| 178 | +**Ubuntu/Debian:** |
| 179 | +```bash |
| 180 | +sudo apt update && sudo apt install ffmpeg |
| 181 | +``` |
| 182 | + |
| 183 | +**Windows:** |
| 184 | +1. Download from https://ffmpeg.org/download.html |
| 185 | +2. Extract and add the `bin` folder to your PATH |
| 186 | + |
| 187 | +### Permission denied (macOS standalone) |
| 188 | + |
| 189 | +```bash |
| 190 | +chmod +x git-chronoscope-macos |
| 191 | +xattr -d com.apple.quarantine git-chronoscope-macos # Remove quarantine flag |
| 192 | +``` |
| 193 | + |
| 194 | +### Python version issues |
| 195 | + |
| 196 | +git-chronoscope requires Python 3.7+. Check your version: |
| 197 | + |
| 198 | +```bash |
| 199 | +python --version |
| 200 | +# or |
| 201 | +python3 --version |
| 202 | +``` |
| 203 | + |
| 204 | +--- |
| 205 | + |
| 206 | +## Uninstalling |
| 207 | + |
| 208 | +### PyPI |
| 209 | +```bash |
| 210 | +pip uninstall git-chronoscope |
| 211 | +``` |
| 212 | + |
| 213 | +### Homebrew |
| 214 | +```bash |
| 215 | +brew uninstall git-chronoscope |
| 216 | +brew untap southpawriter02/git-chronoscope |
| 217 | +``` |
| 218 | + |
| 219 | +### Docker |
| 220 | +```bash |
| 221 | +docker rmi southpawriter02/git-chronoscope |
| 222 | +``` |
| 223 | + |
| 224 | +--- |
| 225 | + |
| 226 | +## Next Steps |
| 227 | + |
| 228 | +- Read the [README](README.md) for usage examples |
| 229 | +- Check [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for common issues |
| 230 | +- See [CONTRIBUTING.md](CONTRIBUTING.md) to contribute |
0 commit comments