Skip to content

Commit cc6b329

Browse files
committed
Fix Python compatibility and remove whisper-cli dependencies
- Remove Python Whisper dependencies to avoid Python 3.14 compatibility issues - Update requirements.txt and pyproject.toml for whisper-cli usage - Add Python 3.12 and 3.13 support in classifiers - Keep Python framework for future development
1 parent 3ee3126 commit cc6b329

3 files changed

Lines changed: 23 additions & 21 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "whisper-transcriber"
77
version = "0.1.0"
8-
description = "Local-first transcription tool using OpenAI Whisper"
8+
description = "Local-first transcription tool using whisper-cli"
99
readme = "README.md"
1010
license = {text = "MIT"}
1111
authors = [
@@ -23,12 +23,13 @@ classifiers = [
2323
]
2424
requires-python = ">=3.8"
2525
dependencies = [
26-
"openai-whisper",
27-
"torch",
28-
"torchaudio",
29-
"yt-dlp",
30-
"click",
31-
"tqdm",
26+
"click>=8.0.0",
27+
"tqdm>=4.0.0",
28+
"numpy>=1.20.0",
29+
# Optional: uncomment for Python Whisper support
30+
# "openai-whisper",
31+
# "torch",
32+
# "torchaudio",
3233
]
3334

3435
[project.optional-dependencies]

requirements.txt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
# Note: This project primarily uses whisper-cli (C++ implementation)
2-
# Python dependencies are for future development and testing
1+
# Core dependencies for the Python framework
2+
# Note: Main transcription uses whisper-cli (external tool)
3+
click>=8.0.0
4+
tqdm>=4.0.0
5+
numpy>=1.20.0
36

4-
# For future Python-based transcription (optional)
7+
# Optional: For future Python-based transcription
8+
# Uncomment these if you want to use Python Whisper instead of whisper-cli:
59
# openai-whisper
610
# torch
711
# torchaudio
812

9-
# Current dependencies for development tools
10-
click
11-
tqdm
12-
numpy
13-
14-
# Note: Main script uses:
15-
# - whisper-cli (install separately from https://github.com/ggerganov/whisper.cpp)
16-
# - yt-dlp (install via: pip install yt-dlp)
17-
# - ffmpeg (system package)
18-
# - sox (system package)
13+
# External tools (install separately):
14+
# - whisper-cli from: https://github.com/ggerganov/whisper.cpp
15+
# - yt-dlp: pip install yt-dlp
16+
# - ffmpeg: brew install ffmpeg (macOS) / apt install ffmpeg (Ubuntu)
17+
# - sox: brew install sox (macOS) / apt install sox (Ubuntu)

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
version="0.1.0",
1616
author="Your Name",
1717
author_email="your.email@example.com",
18-
description="Local-first transcription tool using OpenAI Whisper",
18+
description="Local-first transcription tool using whisper-cli",
1919
long_description=long_description,
2020
long_description_content_type="text/markdown",
2121
url="https://github.com/yourusername/whisper-transcriber",
@@ -30,6 +30,8 @@
3030
"Programming Language :: Python :: 3.9",
3131
"Programming Language :: Python :: 3.10",
3232
"Programming Language :: Python :: 3.11",
33+
"Programming Language :: Python :: 3.12",
34+
"Programming Language :: Python :: 3.13",
3335
],
3436
python_requires=">=3.8",
3537
install_requires=requirements,

0 commit comments

Comments
 (0)