4 from setuptools
import setup
, Command
, find_packages
8 from distutils
.spawn
import spawn
11 # Get the version from youtube_dlc/version.py without importing the package
12 exec(compile(open('youtube_dlc/version.py').read(),
13 'youtube_dlc/version.py', 'exec'))
16 DESCRIPTION
= 'Command-line program to download videos from YouTube.com and many other other video platforms.'
18 LONG_DESCRIPTION
= '\n\n'.join((
19 'Official repository: <https://github.com/pukkandan/yt-dlp>',
20 '**PS**: Many links in this document will not work since this is a copy of the README.md from Github',
21 open("README.md", "r", encoding
="utf-8").read()))
23 REQUIREMENTS
= ['mutagen', 'Crypto']
26 if len(sys
.argv
) >= 2 and sys
.argv
[1] == 'py2exe':
30 ('etc/bash_completion.d', ['youtube-dlc.bash-completion']),
31 ('etc/fish/completions', ['youtube-dlc.fish']),
32 ('share/doc/youtube_dlc', ['README.txt']),
33 ('share/man/man1', ['youtube-dlc.1'])
35 root
= os
.path
.dirname(os
.path
.abspath(__file__
))
37 for dirname
, files
in files_spec
:
40 if not os
.path
.exists(fn
):
41 warnings
.warn('Skipping file %s since it is not present. Type make to build all automatically generated files.' % fn
)
44 data_files
.append((dirname
, resfiles
))
47 'data_files': data_files
,
49 params
['entry_points'] = {'console_scripts': ['youtube-dlc = youtube_dlc:main']}
52 class build_lazy_extractors(Command
):
53 description
= 'Build the extractor lazy loading module'
56 def initialize_options(self
):
59 def finalize_options(self
):
64 [sys
.executable
, 'devscripts/make_lazy_extractors.py', 'youtube_dlc/extractor/lazy_extractors.py'],
69 packages
= find_packages(exclude
=("youtube_dl", "test", "ytdlp_plugins"))
74 maintainer
="pukkandan",
75 maintainer_email
="pukkandan@gmail.com",
76 description
=DESCRIPTION
,
77 long_description
=LONG_DESCRIPTION
,
78 long_description_content_type
="text/markdown",
79 url
="https://github.com/pukkandan/yt-dlp",
81 install_requires
=REQUIREMENTS
,
83 'Documentation': 'https://github.com/pukkandan/yt-dlp#yt-dlp',
84 'Source': 'https://github.com/pukkandan/yt-dlp',
85 'Tracker': 'https://github.com/pukkandan/yt-dlp/issues',
86 #'Funding': 'https://donate.pypi.org',
89 "Topic :: Multimedia :: Video",
90 "Development Status :: 5 - Production/Stable",
91 "Environment :: Console",
92 "Programming Language :: Python",
93 "Programming Language :: Python :: 2",
94 "Programming Language :: Python :: 2.6",
95 "Programming Language :: Python :: 2.7",
96 "Programming Language :: Python :: 3",
97 "Programming Language :: Python :: 3.2",
98 "Programming Language :: Python :: 3.3",
99 "Programming Language :: Python :: 3.4",
100 "Programming Language :: Python :: 3.5",
101 "Programming Language :: Python :: 3.6",
102 "Programming Language :: Python :: 3.7",
103 "Programming Language :: Python :: 3.8",
104 "Programming Language :: Python :: Implementation",
105 "Programming Language :: Python :: Implementation :: CPython",
106 "Programming Language :: Python :: Implementation :: IronPython",
107 "Programming Language :: Python :: Implementation :: Jython",
108 "Programming Language :: Python :: Implementation :: PyPy",
109 "License :: Public Domain",
110 "Operating System :: OS Independent",
112 python_requires
='>=2.6',
114 cmdclass
={'build_lazy_extractors': build_lazy_extractors}
,