Skip to content

Commit e380921

Browse files
committed
PEP 621: Migrate from setup.py to pyproject.toml
1 parent 6c1d8f1 commit e380921

File tree

2 files changed

+47
-43
lines changed

2 files changed

+47
-43
lines changed

pyproject.toml

+47-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,54 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
4+
requires = [ "setuptools>=61.2" ]
5+
6+
[project]
7+
name = "openai-whisper"
8+
description = "Robust Speech Recognition via Large-Scale Weak Supervision"
9+
readme.content-type = "text/markdown"
10+
readme.file = "README.md"
11+
license = { text = "MIT" }
12+
authors = [ { name = "OpenAI" } ]
13+
requires-python = ">=3.8"
14+
classifiers = [
15+
"Programming Language :: Python :: 3 :: Only",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
]
23+
dynamic = [ "version" ]
24+
dependencies = [
25+
"more-itertools",
26+
"numba",
27+
"numpy",
28+
"tiktoken",
29+
"torch",
30+
"tqdm",
31+
"triton>=2; (platform_machine=='x86_64' and sys_platform=='linux') or sys_platform=='linux2'",
32+
]
33+
optional-dependencies.dev = [ "black", "flake8", "isort", "pytest", "scipy" ]
34+
urls = { Homepage = "https://github.com/openai/whisper" }
35+
scripts.whisper = "whisper.transcribe:cli"
36+
37+
[tool.setuptools]
38+
py-modules = [ "whisper" ]
39+
include-package-data = true
40+
41+
[tool.setuptools.dynamic]
42+
version = { attr = "whisper.version.__version__" }
43+
44+
[tool.setuptools.packages.find]
45+
exclude = [ "tests*" ]
46+
namespaces = false
47+
148
[tool.black]
249

350
[tool.isort]
451
profile = "black"
552
include_trailing_comma = true
653
line_length = 88
754
multi_line_output = 3
8-

setup.py

-42
This file was deleted.

0 commit comments

Comments
 (0)