forked from danielsanmartin/youtube-transcript-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (50 loc) · 1.86 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
55
56
57
58
59
import os
import unittest
import setuptools
def _get_file_content(file_name):
with open(file_name, 'r') as file_handler:
return file_handler.read()
def get_long_description():
return _get_file_content('README.md')
def get_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover(
'test', pattern='test_*.py',
top_level_dir='{dirname}/youtube_transcript_api'.format(dirname=os.path.dirname(__file__))
)
return test_suite
setuptools.setup(
name="youtube_transcript_api",
version="0.6.2",
author="Jonas Depoix",
author_email="jonas.depoix@web.de",
description="This is an python API which allows you to get the transcripts/subtitles for a given YouTube video. It also works for automatically generated subtitles, supports translating subtitles and it does not require a headless browser, like other selenium based solutions do!",
long_description=get_long_description(),
long_description_content_type="text/markdown",
keywords="youtube-api subtitles youtube transcripts transcript subtitle youtube-subtitles youtube-transcripts cli",
url="https://github.com/jdepoix/youtube-transcript-api",
packages=setuptools.find_packages(),
classifiers=(
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
install_requires=[
'requests',
],
tests_require=[
'mock',
'httpretty',
'coverage',
'coveralls',
],
test_suite='setup.get_test_suite',
entry_points={
'console_scripts': [
'youtube_transcript_api = youtube_transcript_api.__main__:main',
],
},
)