Skip to content

Commit

Permalink
Add support for Python 3.9 (#71)
Browse files Browse the repository at this point in the history
Thanks!
  • Loading branch information
KyleMaas authored Oct 24, 2022
1 parent 0d38535 commit 5dc2314
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions autosub/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
tqdm==4.44.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
},
Expand Down

0 comments on commit 5dc2314

Please sign in to comment.