pyproject.toml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. [build-system]
  2. requires = ["hatchling"]
  3. build-backend = "hatchling.build"
  4. [project]
  5. name = "yt-dlp"
  6. maintainers = [
  7. {name = "pukkandan", email = "pukkandan.ytdlp@gmail.com"},
  8. {name = "Grub4K", email = "contact@grub4k.xyz"},
  9. {name = "bashonly", email = "bashonly@protonmail.com"},
  10. {name = "coletdjnz", email = "coletdjnz@protonmail.com"},
  11. ]
  12. description = "A youtube-dl fork with additional features and patches"
  13. readme = "README.md"
  14. requires-python = ">=3.8"
  15. keywords = [
  16. "youtube-dl",
  17. "video-downloader",
  18. "youtube-downloader",
  19. "sponsorblock",
  20. "youtube-dlc",
  21. "yt-dlp",
  22. ]
  23. license = {file = "LICENSE"}
  24. classifiers = [
  25. "Topic :: Multimedia :: Video",
  26. "Development Status :: 5 - Production/Stable",
  27. "Environment :: Console",
  28. "Programming Language :: Python",
  29. "Programming Language :: Python :: 3 :: Only",
  30. "Programming Language :: Python :: 3.8",
  31. "Programming Language :: Python :: 3.9",
  32. "Programming Language :: Python :: 3.10",
  33. "Programming Language :: Python :: 3.11",
  34. "Programming Language :: Python :: 3.12",
  35. "Programming Language :: Python :: Implementation",
  36. "Programming Language :: Python :: Implementation :: CPython",
  37. "Programming Language :: Python :: Implementation :: PyPy",
  38. "License :: OSI Approved :: The Unlicense (Unlicense)",
  39. "Operating System :: OS Independent",
  40. ]
  41. dynamic = ["version"]
  42. dependencies = [
  43. "brotli; implementation_name=='cpython'",
  44. "brotlicffi; implementation_name!='cpython'",
  45. "certifi",
  46. "mutagen",
  47. "pycryptodomex",
  48. "requests>=2.31.0,<3",
  49. "urllib3>=1.26.17,<3",
  50. "websockets>=12.0",
  51. ]
  52. [project.optional-dependencies]
  53. default = []
  54. curl_cffi = ["curl-cffi==0.5.10; implementation_name=='cpython'"]
  55. secretstorage = [
  56. "cffi",
  57. "secretstorage",
  58. ]
  59. build = [
  60. "build",
  61. "hatchling",
  62. "pip",
  63. "wheel",
  64. ]
  65. dev = [
  66. "flake8",
  67. "isort",
  68. "pytest",
  69. ]
  70. pyinstaller = ["pyinstaller>=6.3"]
  71. pyinstaller_macos = ["pyinstaller==5.13.2"] # needed for curl_cffi builds
  72. py2exe = ["py2exe>=0.12"]
  73. [project.urls]
  74. Documentation = "https://github.com/yt-dlp/yt-dlp#readme"
  75. Repository = "https://github.com/yt-dlp/yt-dlp"
  76. Tracker = "https://github.com/yt-dlp/yt-dlp/issues"
  77. Funding = "https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators"
  78. [project.scripts]
  79. yt-dlp = "yt_dlp:main"
  80. [project.entry-points.pyinstaller40]
  81. hook-dirs = "yt_dlp.__pyinstaller:get_hook_dirs"
  82. [tool.hatch.build.targets.sdist]
  83. include = [
  84. "/yt_dlp",
  85. "/devscripts",
  86. "/test",
  87. "/.gitignore", # included by default, needed for auto-excludes
  88. "/Changelog.md",
  89. "/LICENSE", # included as license
  90. "/pyproject.toml", # included by default
  91. "/README.md", # included as readme
  92. "/setup.cfg",
  93. "/supportedsites.md",
  94. ]
  95. artifacts = [
  96. "/yt_dlp/extractor/lazy_extractors.py",
  97. "/completions",
  98. "/AUTHORS", # included by default
  99. "/README.txt",
  100. "/yt-dlp.1",
  101. ]
  102. [tool.hatch.build.targets.wheel]
  103. packages = ["yt_dlp"]
  104. artifacts = ["/yt_dlp/extractor/lazy_extractors.py"]
  105. [tool.hatch.build.targets.wheel.shared-data]
  106. "completions/bash/yt-dlp" = "share/bash-completion/completions/yt-dlp"
  107. "completions/zsh/_yt-dlp" = "share/zsh/site-functions/_yt-dlp"
  108. "completions/fish/yt-dlp.fish" = "share/fish/vendor_completions.d/yt-dlp.fish"
  109. "README.txt" = "share/doc/yt_dlp/README.txt"
  110. "yt-dlp.1" = "share/man/man1/yt-dlp.1"
  111. [tool.hatch.version]
  112. path = "yt_dlp/version.py"
  113. pattern = "_pkg_version = '(?P<version>[^']+)'"