From e38df8f9fa4d715513453928591346f680dbe298 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 29 Jan 2021 23:15:27 +0530 Subject: Refactor `update-version`, `pyinst.py` and related files * Refactor update-version * Moved pyinst, update-version and icon into devscripts * pyinst doesn't bump version anymore * Merge pyinst and pyinst32. Usage: `pyinst.py [32|64]` * Add mutagen as requirement * Remove make_win and related files --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 7cc2bff48..c1e2ec727 100644 --- a/setup.py +++ b/setup.py @@ -7,10 +7,12 @@ import warnings import sys from distutils.spawn import spawn + # Get the version from youtube_dlc/version.py without importing the package exec(compile(open('youtube_dlc/version.py').read(), 'youtube_dlc/version.py', 'exec')) + DESCRIPTION = 'Command-line program to download videos from YouTube.com and many other other video platforms.' LONG_DESCRIPTION = '\n\n'.join(( @@ -18,6 +20,9 @@ LONG_DESCRIPTION = '\n\n'.join(( '**PS**: Many links in this document will not work since this is a copy of the README.md from Github', open("README.md", "r", encoding="utf-8").read())) +REQUIREMENTS = ['mutagen'] + + if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe': print("inv") else: @@ -61,7 +66,7 @@ class build_lazy_extractors(Command): ) -packages = find_packages(exclude=("youtube_dl","test",)) +packages = find_packages(exclude=("youtube_dl", "test", "ytdlp_plugins")) setup( name="yt-dlp", @@ -73,6 +78,7 @@ setup( long_description_content_type="text/markdown", url="https://github.com/pukkandan/yt-dlp", packages=packages, + install_requires=REQUIREMENTS, project_urls={ 'Documentation': 'https://github.com/pukkandan/yt-dlp#yt-dlp', 'Source': 'https://github.com/pukkandan/yt-dlp', -- cgit v1.2.3