From 5dc2314dea2f7ffc86e1454cb2ef29c6721d4e55 Mon Sep 17 00:00:00 2001 From: Kyle Maas Date: Mon, 24 Oct 2022 02:40:11 -0400 Subject: [PATCH] Add support for Python 3.9 (#71) Thanks! --- autosub/main.py | 12 ++++++------ requirements.txt | 4 ++-- setup.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/autosub/main.py b/autosub/main.py index 508a551..6960fd0 100644 --- a/autosub/main.py +++ b/autosub/main.py @@ -5,16 +5,16 @@ import re import sys import wave -from . import logger +from autosub import logger import argparse import numpy as np from tqdm import tqdm -from .utils import * -from .writeToFile import write_to_file -from .audioProcessing import extract_audio -from .segmentAudio import remove_silent_segments +from autosub.utils import * +from autosub.writeToFile import write_to_file +from autosub.audioProcessing import extract_audio +from autosub.segmentAudio import remove_silent_segments _logger = logger.setup_applevel_logger(__name__) @@ -86,7 +86,7 @@ def main(): parser = argparse.ArgumentParser(description="AutoSub") parser.add_argument("--format", choices=supported_output_formats, nargs="+", help="Create only certain output formats rather than all formats", - default=supported_output_formats[0]) + default=[supported_output_formats[0]]) parser.add_argument("--split-duration", dest="split_duration", type=float, default=5, help="Split run-on sentences exceededing this duration (in seconds) into multiple subtitles") parser.add_argument("--dry-run", dest="dry_run", action="store_true", diff --git a/requirements.txt b/requirements.txt index 7144684..87d1e57 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,6 @@ pydub==0.23.1 pyparsing==2.4.7 python-dateutil==2.8.1 scikit-learn -scipy==1.4.1 +scipy==1.9.3 six==1.15.0 -tqdm==4.44.1 \ No newline at end of file +tqdm==4.44.1 diff --git a/setup.py b/setup.py index 3158e55..ba66aeb 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], - python_requires='<=3.6', + python_requires='<=3.9', entry_points={ "console_scripts": ["autosub=autosub:main.main"] },