Skip to content

Guard against vcon requiring the empty ffmpeg package. - #79

Merged
howethomas merged 1 commit into
mainfrom
e12-ffmpeg-dependency-guard
Nov 25, 2026
Merged

howethomas merged 1 commit into
mainfrom
e12-ffmpeg-dependency-guard

Conversation

@howethomas

Copy link
Copy Markdown
Contributor

Releases 0.6.0 to 1.0.3 declared ffmpeg = "^1.4" where ffmpeg-python was meant. The PyPI package ffmpeg installs an empty ffmpeg/__init__.py, and next to ffmpeg-python it empties the real module, so ffmpeg.probe disappears. A service image that held both lost transcription of real recordings.

The dependency itself was already fixed in 1.0.4 (ffmpeg-python as the optional video extra), so this change is the regression guard:

  • tests/test_ffmpeg_dependency.py: vcon must not require a distribution named ffmpeg, and import ffmpeg must have probe (skipped when ffmpeg-python is not installed).
  • CI installs the video extra, so the second test runs there instead of skipping.

Runs in fresh virtualenvs, the test file alone:

  • vcon==1.0.3 from PyPI (declares ffmpeg, installs ffmpeg 1.4): 2 failed. The requirement check fails, and ffmpeg.probe is missing.
  • This checkout with .[video] (ffmpeg-python 0.2.0): 2 passed.
  • This checkout, base install: 1 passed, 1 skipped.

No release is needed for a test-only change. The next number would be 1.0.7, by tag.

🤖 Generated with Claude Code

… ffmpeg.probe exists, and install the video extra in CI.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@howethomas
howethomas merged commit f867fc7 into main Nov 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant