chore: fixes after libretime_analyzer rename
This commit is contained in:
parent
62476de478
commit
02efadc3d0
|
@ -3,9 +3,9 @@ all: lint test
|
||||||
include ../tools/python.mk
|
include ../tools/python.mk
|
||||||
|
|
||||||
PIP_INSTALL := --editable .[dev]
|
PIP_INSTALL := --editable .[dev]
|
||||||
PYLINT_ARG := airtime_analyzer tests
|
PYLINT_ARG := libretime_analyzer tests
|
||||||
MYPY_ARG := airtime_analyzer tests
|
MYPY_ARG := libretime_analyzer tests
|
||||||
PYTEST_ARG := --cov=airtime_analyzer tests
|
PYTEST_ARG := --cov=libretime_analyzer tests
|
||||||
|
|
||||||
format: .format
|
format: .format
|
||||||
lint: .format-check .pylint .mypy
|
lint: .format-check .pylint .mypy
|
||||||
|
|
|
@ -5,7 +5,7 @@ Main CLI entrypoint for the libretime-analyzer app.
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import airtime_analyzer.airtime_analyzer as aa
|
import libretime_analyzer.airtime_analyzer as aa
|
||||||
|
|
||||||
VERSION = "1.0"
|
VERSION = "1.0"
|
||||||
LIBRETIME_CONF_DIR = os.getenv("LIBRETIME_CONF_DIR", "/etc/airtime")
|
LIBRETIME_CONF_DIR = os.getenv("LIBRETIME_CONF_DIR", "/etc/airtime")
|
||||||
|
|
|
@ -17,10 +17,10 @@ setup(
|
||||||
"Source Code": "https://github.com/libretime/libretime",
|
"Source Code": "https://github.com/libretime/libretime",
|
||||||
},
|
},
|
||||||
license="AGPLv3",
|
license="AGPLv3",
|
||||||
packages=["airtime_analyzer"],
|
packages=["libretime_analyzer"],
|
||||||
entry_points={
|
entry_points={
|
||||||
"console_scripts": [
|
"console_scripts": [
|
||||||
"libretime-analyzer=airtime_analyzer.cli:main",
|
"libretime-analyzer=libretime_analyzer.cli:main",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.6",
|
||||||
|
|
|
@ -5,7 +5,7 @@ from queue import Queue
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from airtime_analyzer.analyzer_pipeline import AnalyzerPipeline
|
from libretime_analyzer.analyzer_pipeline import AnalyzerPipeline
|
||||||
|
|
||||||
from .conftest import AUDIO_FILENAME, AUDIO_IMPORT_DEST
|
from .conftest import AUDIO_FILENAME, AUDIO_IMPORT_DEST
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from airtime_analyzer.analyzer import Analyzer
|
from libretime_analyzer.analyzer import Analyzer
|
||||||
|
|
||||||
|
|
||||||
def test_analyze():
|
def test_analyze():
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import distro
|
import distro
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer
|
from libretime_analyzer.cuepoint_analyzer import CuePointAnalyzer
|
||||||
|
|
||||||
from .fixtures import FILE_INVALID_DRM, FILES, Fixture
|
from .fixtures import FILE_INVALID_DRM, FILES, Fixture
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ from unittest import mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from airtime_analyzer.filemover_analyzer import FileMoverAnalyzer
|
from libretime_analyzer.filemover_analyzer import FileMoverAnalyzer
|
||||||
|
|
||||||
from .conftest import AUDIO_FILENAME
|
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
|
# 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
|
# 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.
|
# 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.localtime.return_value = time.localtime() # date(2010, 10, 8)
|
||||||
mock_time.side_effect = time.time
|
mock_time.side_effect = time.time
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ from unittest import mock
|
||||||
import mutagen
|
import mutagen
|
||||||
import pytest
|
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
|
from .fixtures import FILE_INVALID_DRM, FILE_INVALID_TXT, FILES_TAGGED, FixtureMeta
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import distro
|
import distro
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from airtime_analyzer.playability_analyzer import (
|
from libretime_analyzer.playability_analyzer import (
|
||||||
PlayabilityAnalyzer,
|
PlayabilityAnalyzer,
|
||||||
UnplayableFileError,
|
UnplayableFileError,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from airtime_analyzer.replaygain_analyzer import ReplayGainAnalyzer
|
from libretime_analyzer.replaygain_analyzer import ReplayGainAnalyzer
|
||||||
|
|
||||||
from .fixtures import FILE_INVALID_DRM, FILES, Fixture
|
from .fixtures import FILE_INVALID_DRM, FILES, Fixture
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue