Flatten package layout and add Gitea CI
Some checks failed
CI / CLI (push) Has been cancelled
CI / Backend (push) Has been cancelled

This commit is contained in:
2026-05-24 12:43:03 +02:00
parent 8cd7385eb8
commit 9fd0e707f0
11 changed files with 108 additions and 28 deletions

View File

@@ -2,6 +2,8 @@
Local CLI that forwards media files to a remote `whisper-remote-backend` server.
Package layout is flat in this folder: `whisper_remote_cli/main.py`.
## Run
```bash
@@ -10,4 +12,11 @@ export WHISPER_REMOTE=http://127.0.0.1:8000
whisper-remote ./audio.mp3 --model base --language en --output-format txt
```
Use `--to-file` to save the returned transcript locally.
PowerShell:
```powershell
$env:WHISPER_REMOTE = "http://127.0.0.1:8000"
whisper-remote .\audio.mp3 --model base --language en --output-format txt
```
Use `--to-file` to save the returned transcript locally. Without it, the CLI prints the transcript body to stdout.

View File

@@ -19,9 +19,3 @@ dev = [
[project.scripts]
whisper-remote = "whisper_remote_cli.main:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]

View File

@@ -1,11 +0,0 @@
from __future__ import annotations
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
SRC = ROOT / "src"
if str(SRC) not in sys.path:
sys.path.insert(0, str(SRC))