-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathsetup.py
54 lines (48 loc) · 1.71 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import pathlib
from setuptools import setup
import pkg_resources
import os
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
def read_version(fname="src/whisper_ctranslate2/version.py"):
exec(compile(open(fname, encoding="utf-8").read(), fname, "exec"))
return locals()["__version__"]
setup(
name="whisper-ctranslate2",
version=read_version(),
description="Whisper command line client that uses CTranslate2 and faster-whisper",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/Softcatala/whisper-ctranslate2",
author="Jordi Mas",
author_email="[email protected]",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
packages=["src/whisper_ctranslate2"],
include_package_data=True,
install_requires=[
str(r)
for r in pkg_resources.parse_requirements(
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
)
],
extras_require={
"dev": ["flake8==7.*", "black==24.*", "isort==5.13", "nose2"],
},
entry_points={
"console_scripts": [
"whisper-ctranslate2=src.whisper_ctranslate2.whisper_ctranslate2:main",
]
},
)