chore: fixes after libretime_analyzer rename

This commit is contained in:
jo 2021-12-23 23:55:05 +01:00 committed by Kyle Robbertze
parent 62476de478
commit 02efadc3d0
10 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -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")

View File

@ -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",

View File

@ -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

View File

@ -1,6 +1,6 @@
import pytest
from airtime_analyzer.analyzer import Analyzer
from libretime_analyzer.analyzer import Analyzer
def test_analyze():

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,7 +1,7 @@
import distro
import pytest
from airtime_analyzer.playability_analyzer import (
from libretime_analyzer.playability_analyzer import (
PlayabilityAnalyzer,
UnplayableFileError,
)

View File

@ -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