deleted travis.yml
This commit is contained in:
parent
00642578d4
commit
32ea9c1b5b
15
.travis.yml
15
.travis.yml
|
@ -1,15 +0,0 @@
|
||||||
language: python
|
|
||||||
python:
|
|
||||||
- "3.5"
|
|
||||||
- "3.6"
|
|
||||||
- "3.7.11"
|
|
||||||
- "3.8"
|
|
||||||
install:
|
|
||||||
- pip install --upgrade pip
|
|
||||||
- pip install --upgrade setuptools
|
|
||||||
- pip install -r requirements.txt
|
|
||||||
- pip install urllib3==1.26.6
|
|
||||||
script:
|
|
||||||
- coverage run -m unittest discover
|
|
||||||
after_success:
|
|
||||||
- coveralls
|
|
59
setup.py
59
setup.py
|
@ -1,59 +0,0 @@
|
||||||
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',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
)
|
|
Loading…
Reference in New Issue