Skip to content

Commit

Permalink
Add Python 3.10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed Jul 1, 2024
1 parent af25e6e commit a40faff
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sonar.sources=tafrigh/

sonar.python.version=3.11,3.12
sonar.python.version=3.10,3.11,3.12
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<ul>
<li>A strong GPU in your computer is recommended if using Whisper models</li>
<li>Python version 3.11 or higher installed on your computer</li>
<li>Python version 3.10 or higher installed on your computer</li>
<li><a href="https://ffmpeg.org">FFmpeg</a> installed on your computer</li>
<li><a href="https://github.com/yt-dlp/yt-dlp">yt-dlp</a> installed on your computer</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<ul dir="rtl">
<li>يُفضّل وجود معالج رسوميات قوي في حاسبك في حال استخدام نماذج Whisper</li>
<li>تثبيت لغة Python بإصدار 3.11 أو أعلى على حاسبك</li>
<li>تثبيت لغة Python بإصدار 3.10 أو أعلى على حاسبك</li>
<li>تثبيت برمجية <a href="https://ffmpeg.org">FFmpeg</a> على حاسبك</li>
<li>تثبيت برمجية <a href="https://github.com/yt-dlp/yt-dlp">yt-dlp</a> على حاسبك</li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tafrigh"
version = "1.4.13"
version = "1.5.0"
description = "تفريغ النصوص وإنشاء ملفات SRT و VTT باستخدام نماذج Whisper وتقنية wit.ai."
authors = ["EasyBooks <[email protected]>"]
license = "MIT"
Expand All @@ -15,6 +15,7 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
Expand All @@ -23,7 +24,7 @@ homepage = "https://tafrigh.ieasybooks.com"
repository = "https://github.com/ieasybooks/tafrigh"

[tool.poetry.dependencies]
python = ">=3.11"
python = ">=3.10"
tqdm = ">=4.66.4"
yt-dlp = ">=2024.4.9"
auditok = ">=0.2.0"
Expand Down
7 changes: 6 additions & 1 deletion tafrigh/types/segment_type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from typing import NotRequired, TypedDict
import sys

if sys.version_info < (3, 11):
from typing_extensions import NotRequired, TypedDict
else:
from typing import NotRequired, TypedDict


class SegmentType(TypedDict):
Expand Down

0 comments on commit a40faff

Please sign in to comment.