feat: drop Ubuntu Bionic support

Fixes #2035
This commit is contained in:
jo 2022-09-09 19:52:46 +02:00 committed by Kyle Robbertze
parent 26bcb6a90d
commit 448cff7600
21 changed files with 54 additions and 196 deletions

View file

@ -1,6 +1,5 @@
from pathlib import Path
import distro
import pytest
from libretime_analyzer.pipeline.analyze_metadata import analyze_metadata
@ -28,12 +27,6 @@ def test_analyze_metadata(filepath: Path, metadata: dict):
del metadata["length"]
del found["length"]
# Mutagen <1.46 computes a wrong bit_rate for wav files, this version
# of mutagen is only installed on bionic (python <3.7)
if filepath.suffix == ".wav" and distro.codename() == "bionic":
del metadata["bit_rate"]
del found["bit_rate"]
# mp3,ogg,flac files does not support comments yet
if not filepath.suffix == ".m4a":
if "comment" in metadata: