"""Check the actual wheel and sdist for isolation and required runtime assets.""" import tarfile import struct import zipfile from pathlib import Path root = Path(__file__).resolve().parents[1] required = {'pompom/main.py', 'pompom/static/index.html', 'pompom/static/main.js', 'pompom/assets/reminder-1.wav', 'pompom/assets/reminder-2.wav', 'pompom/speech.py', 'pompom/assets/speech-slouch.wav', 'pompom/assets/speech-custom.wav', 'pompom/assets/speech-phone-slouch.wav', 'pompom/assets/speech-phone-custom.wav', 'pompom/assets/speech-slouch-custom.wav', 'pompom/assets/speech-phone-slouch-custom.wav'} def check_wav(data, name): fmt = data.index(b'fmt ') + 8 encoding, channels, rate, byte_rate, alignment, bits = struct.unpack_from('