-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
46 lines (41 loc) · 1.39 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
from setuptools import find_packages, setup
with open('README.md', 'r') as fh:
long_description = fh.read().strip()
with open('version.txt', 'r') as fh:
version = fh.read().strip()
SETUP_ARGS = dict(
name='translatesubs',
version=version,
license='Apache-2.0',
author='Montvydas Klumbys',
author_email='[email protected]',
description='It is a tool to translate subtitles into any language, that is supported by google translator',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/Montvydas/translatesubs',
download_url=f'https://github.com/Montvydas/translatesubs/archive/v_{version}.tar.gz',
keywords=['SUBTITLES', 'TRANSLATE'],
packages=find_packages(),
install_requires=[
'pysubs2==1.6.0',
'googletrans==3.1.0a0',
'google-trans-new==1.1.9',
'chardet==3.0.4',
'requests==2.28.2',
],
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License ',
'Operating System :: OS Independent',
'Topic :: Multimedia :: Video',
],
python_requires='>=3.6',
entry_points={
'console_scripts': [
'translatesubs=translatesubs.main:main'
]
},
)
if __name__ == "__main__":
setup(**SETUP_ARGS)