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