1.1 KiB
Running, testing, and building
From the repository root, install the build extra and run the test suite:
uv sync --group build
.venv/bin/python3 ffmpeg_handling/src/ffmpeg_handling/run_test.py
In VS Code, use ffmpeg_handling: Run sample command or ffmpeg_handling: Run tests from Run and Debug. The corresponding test task and ffmpeg_handling: Build one-file binary are available from the task picker.
The one-file build is configured by ffmpeg_handling/ffmpeg_handling.spec.
Build with:
.venv/bin/python3 -m PyInstaller --clean --noconfirm \
ffmpeg_handling/ffmpeg_handling.spec
The executable is written to ffmpeg_handling/dist/ffmpeg_handling. It is a
single-file Python application; ffmpeg and ffprobe must still be installed
and available on PATH. Build separately on each target OS and architecture;
PyInstaller does not cross-compile.
The Gitea workflow in .gitea/workflows/ffmpeg_handling.yaml runs tests,
Ruff, and the executable build for changes to this project. A successful push
to main installs the executable as ~/tools/ffmpeg_handling on the
self-hosted Linux x64 runner.