From 02efadc3d03ccff5867a574a68b9bbfb710d75b1 Mon Sep 17 00:00:00 2001 From: jo Date: Thu, 23 Dec 2021 23:55:05 +0100 Subject: [PATCH] chore: fixes after libretime_analyzer rename --- analyzer/Makefile | 6 +++--- analyzer/libretime_analyzer/cli.py | 2 +- analyzer/setup.py | 4 ++-- analyzer/tests/analyzer_pipeline_test.py | 2 +- analyzer/tests/analyzer_test.py | 2 +- analyzer/tests/cuepoint_analyzer_test.py | 2 +- analyzer/tests/filemover_analyzer_test.py | 4 ++-- analyzer/tests/metadata_analyzer_test.py | 2 +- analyzer/tests/playability_analyzer_test.py | 2 +- analyzer/tests/replaygain_analyzer_test.py | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/analyzer/Makefile b/analyzer/Makefile index d5cf8ac1d..04d6253d4 100644 --- a/analyzer/Makefile +++ b/analyzer/Makefile @@ -3,9 +3,9 @@ all: lint test include ../tools/python.mk PIP_INSTALL := --editable .[dev] -PYLINT_ARG := airtime_analyzer tests -MYPY_ARG := airtime_analyzer tests -PYTEST_ARG := --cov=airtime_analyzer tests +PYLINT_ARG := libretime_analyzer tests +MYPY_ARG := libretime_analyzer tests +PYTEST_ARG := --cov=libretime_analyzer tests format: .format lint: .format-check .pylint .mypy diff --git a/analyzer/libretime_analyzer/cli.py b/analyzer/libretime_analyzer/cli.py index 8d66b5d32..c8b41b440 100644 --- a/analyzer/libretime_analyzer/cli.py +++ b/analyzer/libretime_analyzer/cli.py @@ -5,7 +5,7 @@ Main CLI entrypoint for the libretime-analyzer app. import argparse import os -import airtime_analyzer.airtime_analyzer as aa +import libretime_analyzer.airtime_analyzer as aa VERSION = "1.0" LIBRETIME_CONF_DIR = os.getenv("LIBRETIME_CONF_DIR", "/etc/airtime") diff --git a/analyzer/setup.py b/analyzer/setup.py index 919afcd5c..4eb7a97fd 100644 --- a/analyzer/setup.py +++ b/analyzer/setup.py @@ -17,10 +17,10 @@ setup( "Source Code": "https://github.com/libretime/libretime", }, license="AGPLv3", - packages=["airtime_analyzer"], + packages=["libretime_analyzer"], entry_points={ "console_scripts": [ - "libretime-analyzer=airtime_analyzer.cli:main", + "libretime-analyzer=libretime_analyzer.cli:main", ] }, python_requires=">=3.6", diff --git a/analyzer/tests/analyzer_pipeline_test.py b/analyzer/tests/analyzer_pipeline_test.py index 71f8c8837..56d51a190 100644 --- a/analyzer/tests/analyzer_pipeline_test.py +++ b/analyzer/tests/analyzer_pipeline_test.py @@ -5,7 +5,7 @@ from queue import Queue import pytest -from airtime_analyzer.analyzer_pipeline import AnalyzerPipeline +from libretime_analyzer.analyzer_pipeline import AnalyzerPipeline from .conftest import AUDIO_FILENAME, AUDIO_IMPORT_DEST diff --git a/analyzer/tests/analyzer_test.py b/analyzer/tests/analyzer_test.py index 4eb32cd35..fc1e53a2e 100644 --- a/analyzer/tests/analyzer_test.py +++ b/analyzer/tests/analyzer_test.py @@ -1,6 +1,6 @@ import pytest -from airtime_analyzer.analyzer import Analyzer +from libretime_analyzer.analyzer import Analyzer def test_analyze(): diff --git a/analyzer/tests/cuepoint_analyzer_test.py b/analyzer/tests/cuepoint_analyzer_test.py index 5a7f15e90..af92f3632 100644 --- a/analyzer/tests/cuepoint_analyzer_test.py +++ b/analyzer/tests/cuepoint_analyzer_test.py @@ -1,7 +1,7 @@ import distro import pytest -from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer +from libretime_analyzer.cuepoint_analyzer import CuePointAnalyzer from .fixtures import FILE_INVALID_DRM, FILES, Fixture diff --git a/analyzer/tests/filemover_analyzer_test.py b/analyzer/tests/filemover_analyzer_test.py index 36e97120c..30dc01ae9 100644 --- a/analyzer/tests/filemover_analyzer_test.py +++ b/analyzer/tests/filemover_analyzer_test.py @@ -6,7 +6,7 @@ from unittest import mock import pytest -from airtime_analyzer.filemover_analyzer import FileMoverAnalyzer +from libretime_analyzer.filemover_analyzer import FileMoverAnalyzer from .conftest import AUDIO_FILENAME @@ -88,7 +88,7 @@ def test_move_triplicate_file(src_dir, dest_dir): # Here we use mock to patch out the time.localtime() function so that it # always returns the same value. This allows us to consistently simulate this test cases # where the last two of the three files are imported at the same time as the timestamp. - with mock.patch("airtime_analyzer.filemover_analyzer.time") as mock_time: + with mock.patch("libretime_analyzer.filemover_analyzer.time") as mock_time: mock_time.localtime.return_value = time.localtime() # date(2010, 10, 8) mock_time.side_effect = time.time diff --git a/analyzer/tests/metadata_analyzer_test.py b/analyzer/tests/metadata_analyzer_test.py index 047de2511..42ee1186c 100644 --- a/analyzer/tests/metadata_analyzer_test.py +++ b/analyzer/tests/metadata_analyzer_test.py @@ -4,7 +4,7 @@ from unittest import mock import mutagen import pytest -from airtime_analyzer.metadata_analyzer import MetadataAnalyzer +from libretime_analyzer.metadata_analyzer import MetadataAnalyzer from .fixtures import FILE_INVALID_DRM, FILE_INVALID_TXT, FILES_TAGGED, FixtureMeta diff --git a/analyzer/tests/playability_analyzer_test.py b/analyzer/tests/playability_analyzer_test.py index 4f6976367..9978bbb65 100644 --- a/analyzer/tests/playability_analyzer_test.py +++ b/analyzer/tests/playability_analyzer_test.py @@ -1,7 +1,7 @@ import distro import pytest -from airtime_analyzer.playability_analyzer import ( +from libretime_analyzer.playability_analyzer import ( PlayabilityAnalyzer, UnplayableFileError, ) diff --git a/analyzer/tests/replaygain_analyzer_test.py b/analyzer/tests/replaygain_analyzer_test.py index d0709f965..8851fc61b 100644 --- a/analyzer/tests/replaygain_analyzer_test.py +++ b/analyzer/tests/replaygain_analyzer_test.py @@ -1,6 +1,6 @@ import pytest -from airtime_analyzer.replaygain_analyzer import ReplayGainAnalyzer +from libretime_analyzer.replaygain_analyzer import ReplayGainAnalyzer from .fixtures import FILE_INVALID_DRM, FILES, Fixture