From 22a5238b56c4033adca32137062f1d3dd8f88906 Mon Sep 17 00:00:00 2001 From: Mahmoud Ashraf Date: Sun, 1 Dec 2024 19:38:27 +0200 Subject: [PATCH] Upgrade CI to 3.9 and drop Python 3.8 support(#1184) --- .github/workflows/ci.yml | 24 ++++++++++++------------ README.md | 2 +- setup.py | 3 +-- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 407661f..3719295 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,12 +15,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up Python 3.8 - uses: actions/setup-python@v4 + - name: Set up Python 3.9 + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.9 - name: Install module run: | @@ -45,12 +45,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up Python 3.8 - uses: actions/setup-python@v4 + - name: Set up Python 3.9 + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.9 - name: Install module run: | @@ -67,12 +67,12 @@ jobs: needs: [check-code-format, run-tests] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up Python 3.8 - uses: actions/setup-python@v4 + - name: Set up Python 3.9 + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | diff --git a/README.md b/README.md index a99343e..1bb00b8 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ For reference, here's the time and memory usage that are required to transcribe ## Requirements -* Python 3.8 or greater +* Python 3.9 or greater Unlike openai-whisper, FFmpeg does **not** need to be installed on the system. The audio is decoded with the Python library [PyAV](https://github.com/PyAV-Org/PyAV) which bundles the FFmpeg libraries in its package. diff --git a/setup.py b/setup.py index 782f1b2..e63e46a 100644 --- a/setup.py +++ b/setup.py @@ -45,14 +45,13 @@ setup( "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Topic :: Scientific/Engineering :: Artificial Intelligence", ], keywords="openai whisper speech ctranslate2 inference quantization transformer", - python_requires=">=3.8", + python_requires=">=3.9", install_requires=install_requires, extras_require={ "conversion": conversion_requires,