setup.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. from setuptools import setup
  2. import re
  3. with open("scrapetube/__init__.py", encoding="utf-8") as f:
  4. version = re.findall(r"__version__ = \"(.+)\"", f.read())[0]
  5. with open('README.md', encoding='utf-8') as f:
  6. readme = f.read()
  7. with open('requirements.txt', encoding='utf-8') as f:
  8. requirements = [r.strip() for r in f]
  9. setup(
  10. name = 'scrapetube',
  11. version = version,
  12. packages = ['scrapetube'],
  13. include_package_data = True,
  14. url = 'https://github.com/dermasmid/scrapetube',
  15. license = 'MIT',
  16. long_description = readme,
  17. long_description_content_type = 'text/markdown',
  18. author = 'Cheskel Twersky',
  19. author_email = 'twerskycheskel@gmail.com',
  20. description = 'Scrape youtube without the official youtube api and without selenium.',
  21. keywords = 'youtube python channel videos search playlist list get',
  22. classifiers = [
  23. "Programming Language :: Python :: 3",
  24. "License :: OSI Approved :: MIT License",
  25. "Operating System :: OS Independent",
  26. ],
  27. project_urls={
  28. 'Documentation': 'https://scrapetube.readthedocs.io/en/latest/'
  29. },
  30. install_requires = requirements,
  31. python_requires = '>=3.6',
  32. )