setup.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import re
  2. from setuptools import setup
  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={"Documentation": "https://scrapetube.readthedocs.io/en/latest/"},
  28. install_requires=requirements,
  29. python_requires=">=3.6",
  30. )