Ask for what is needed, and nothing that is not

An audit of the dependencies rather than a feature, prompted by being asked to
make sure they were all listed.  Four things were wrong, and one of them was
wrong in the direction nobody checks.

A dependency that was not one.  The packaging asked for matplotlib, in a
"plots" extra, and nothing in the program has ever imported it: the graphs a
weather log turns into are drawn by this package's own PNG writer, the same one
the waterfalls and the maps use.  Anybody installing with that extra got a
large package to no effect.  Declarations are checked against imports in one
direction as a matter of course -- an undeclared import fails on the first
machine that is not the one it was written on -- and never in the other, where
the failure is silent and costs somebody else's disk.

Two speech engines that could not be installed.  The transcriber takes five
engines and the metadata offered extras for two of them, so openai-whisper and
pocketsphinx were supported and unobtainable.  They are alternatives rather
than a set -- one is tiny and poor, one is the reference and slow -- so each has
an extra of its own now.

Nothing that can play a recording.  The package suggested no audio player at
all, so on a fresh install saunterbrowse's Enter key did nothing and there was
no way to find out why.  Recommended now, as any one of the three things that
provide pw-play, paplay or aplay.

Nothing that can open a map.  The register's g key hands a coordinate to a
browser, which needs something to start one; xdg-utils is suggested and the
absence documented, since printing the coordinates instead is the useful answer
on a headless receiver anyway.

And the readme's list of audio players was simply wrong -- it named sox, left
out mpv, and had the order it does not try them in.  It is generated from the
table the code actually uses now.

Checked complete rather than assumed: the manual covers all seventeen
subcommands, and the package ships every module, both manuals, the copyright,
the readme and the install instructions.

Nine tests so none of it drifts again, each confirmed by putting the defect
back.  The pair that matters checks the dependencies both ways: everything
imported has to be asked for, and everything asked for has to be imported.  The
second of those is the one that had never existed, and is the one that would
have caught matplotlib years ago.

Full suite 2901 passed.  Built as 2026-09-25_01.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016PsWPTweCT6pwxKngvVxcg
This commit is contained in:
The Dust Council 2026-09-25 08:29:20 -07:00
commit c3b382a5f6
8 changed files with 186 additions and 10 deletions

View file

@ -76,8 +76,9 @@ Priority: optional
Architecture: ${arch}
Depends: python3 (>= 3.10), python3-numpy, python3-scipy, python3-rich,
python3-yaml, librtlsdr0
Recommends: bandsaunter-transcribe, espeak-ng
Suggests: rtl-sdr, python3-pyqt6, ffmpeg
Recommends: bandsaunter-transcribe, espeak-ng,
pipewire-bin | pulseaudio-utils | alsa-utils
Suggests: rtl-sdr, python3-pyqt6, ffmpeg, xdg-utils, mpv
Maintainer: The Dust Council
Homepage: https://frostwarning.com/git/dustcouncil/bandsaunter
Installed-Size: $(du -ks "$pkgdir" | cut -f1)