diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fef3592..0000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/setup.py b/setup.py deleted file mode 100644 index b2000a6..0000000 --- a/setup.py +++ /dev/null @@ -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', - ], - }, -)