diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index 15be9921..eb9682f6 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -24,12 +24,12 @@ jobs: strategy: max-parallel: 2 matrix: - python-version: [ 3.7, 3.8, 3.9, "3.10" ] + python-version: [ 3.8, 3.9, "3.10", "3.11" ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Build Tools diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index a24f52ef..fe0cc51e 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -37,12 +37,12 @@ jobs: strategy: max-parallel: 2 matrix: - python-version: [ 3.8, 3.9, "3.10" ] + python-version: [ 3.8, 3.9, "3.10", "3.11" ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install System Dependencies diff --git a/README.md b/README.md index 7dd896e6..41d27d2d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # OVOS-utils -collection of simple utilities for use across the mycroft ecosystem +A collection of simple utilities for use across the OpenVoiceOS ecosystem. ## Install diff --git a/ovos_utils/log.py b/ovos_utils/log.py index 86c30048..423980e6 100644 --- a/ovos_utils/log.py +++ b/ovos_utils/log.py @@ -79,13 +79,13 @@ class LOG: formatter = logging.Formatter(fmt, datefmt) max_bytes = 50000000 backup_count = 3 - name = os.getenv("OVOS_DEFAULT_LOG_NAME") or 'OVOS' + name = os.getenv("OVOS_DEFAULT_LOG_NAME") or "OVOS" level = os.getenv("OVOS_DEFAULT_LOG_LEVEL") or "INFO" diagnostic_mode = False _loggers = {} @classmethod - def __init__(cls, name='OVOS'): + def __init__(cls, name=name): cls.name = name @classmethod @@ -226,9 +226,9 @@ def init_service_logger(service_name): def log_deprecation(log_message: str = "DEPRECATED", deprecation_version: str = "Unknown", - func_name: str = None, - func_module: str = None, - excluded_package_refs: List[str] = None): + func_name: str = "", + func_module: str = "", + excluded_package_refs: List[str] = [""]): """ Log a deprecation warning with information for the call outside the module that is generating the warning @@ -354,6 +354,6 @@ def get_available_logs(directories: Optional[List[str]] = None) -> List[str]: Returns: list of log files """ - directories = directories or get_log_paths() + directories = directories or list(get_log_paths()) return [Path(f).stem for path in directories for f in os.listdir(path) if Path(f).suffix == ".log"]