4 from setuptools
import setup
, Command
, find_packages
8 from distutils
.spawn
import spawn
10 # Get the version from youtube_dlc/version.py without importing the package
11 exec(compile(open('youtube_dlc/version.py').read(),
12 'youtube_dlc/version.py', 'exec'))
14 DESCRIPTION
= 'Media downloader supporting various sites such as youtube'
15 LONG_DESCRIPTION
= 'Command-line program to download videos from YouTube.com and other video sites. Based on a more active community fork.'
17 if len(sys
.argv
) >= 2 and sys
.argv
[1] == 'py2exe':
21 ('etc/bash_completion.d', ['youtube-dlc.bash-completion']),
22 ('etc/fish/completions', ['youtube-dlc.fish']),
23 ('share/doc/youtube_dlc', ['README.txt']),
24 ('share/man/man1', ['youtube-dlc.1'])
26 root
= os
.path
.dirname(os
.path
.abspath(__file__
))
28 for dirname
, files
in files_spec
:
31 if not os
.path
.exists(fn
):
32 warnings
.warn('Skipping file %s since it is not present. Type make to build all automatically generated files.' % fn
)
35 data_files
.append((dirname
, resfiles
))
38 'data_files': data_files
,
40 #if setuptools_available:
41 params
['entry_points'] = {'console_scripts': ['youtube-dlc = youtube_dlc:main']}
43 # params['scripts'] = ['bin/youtube-dlc']
45 class build_lazy_extractors(Command
):
46 description
= 'Build the extractor lazy loading module'
49 def initialize_options(self
):
52 def finalize_options(self
):
57 [sys
.executable
, 'devscripts/make_lazy_extractors.py', 'youtube_dlc/extractor/lazy_extractors.py'],
64 maintainer
="Tom-Oliver Heidel",
65 maintainer_email
="theidel@uni-bremen.de",
66 description
=DESCRIPTION
,
67 long_description
=LONG_DESCRIPTION
,
68 # long_description_content_type="text/markdown",
69 url
="https://github.com/blackjack4494/youtube-dlc",
70 packages
=find_packages(exclude
=("youtube_dl","test",)),
73 # 'youtube_dlc.extractor', 'youtube_dlc.downloader',
74 # 'youtube_dlc.postprocessor'],
76 "Topic :: Multimedia :: Video",
77 "Development Status :: 5 - Production/Stable",
78 "Environment :: Console",
79 "Programming Language :: Python",
80 "Programming Language :: Python :: 2",
81 "Programming Language :: Python :: 2.6",
82 "Programming Language :: Python :: 2.7",
83 "Programming Language :: Python :: 3",
84 "Programming Language :: Python :: 3.2",
85 "Programming Language :: Python :: 3.3",
86 "Programming Language :: Python :: 3.4",
87 "Programming Language :: Python :: 3.5",
88 "Programming Language :: Python :: 3.6",
89 "Programming Language :: Python :: 3.7",
90 "Programming Language :: Python :: 3.8",
91 "Programming Language :: Python :: Implementation",
92 "Programming Language :: Python :: Implementation :: CPython",
93 "Programming Language :: Python :: Implementation :: IronPython",
94 "Programming Language :: Python :: Implementation :: Jython",
95 "Programming Language :: Python :: Implementation :: PyPy",
96 "License :: Public Domain",
97 "Operating System :: OS Independent",
99 python_requires
='>=2.6',
101 cmdclass
={'build_lazy_extractors': build_lazy_extractors}
,