-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
setup.py
39 lines (30 loc) · 1.15 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
import os
from setuptools import find_packages, setup
def version():
with open(os.path.join(os.path.dirname(__file__), "speech_translate/_version.py"), encoding="utf-8") as f:
return f.readline().split("=")[1].strip().strip('"').strip("'")
def read_me():
with open("README.md", "r", encoding="utf-8") as f:
return f.read()
def install_requires():
with open("requirements.txt", "r", encoding="utf-8") as f:
req = f.read().splitlines()
return req
setup(
name="SpeechTranslate",
version=version(),
description="A realtime speech transcription and translation application using Whisper OpenAI and free translation API."
" Interface made using Tkinter. Code written fully in Python.",
long_description=read_me(),
long_description_content_type="text/markdown",
python_requires=">=3.8",
author="Dadangdut33",
url="https://github.com/Dadangdut33/Speech-Translate",
license="MIT",
packages=find_packages(),
install_requires=install_requires(),
entry_points={"console_scripts": [
"speech-translate=speech_translate.__main__:main",
]},
include_package_data=True,
)