diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-29 23:15:27 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-29 23:16:00 +0530 |
commit | e38df8f9fa4d715513453928591346f680dbe298 (patch) | |
tree | 80e8eff25fbb5920b11792d7b3e1dd9199dd857a /setup.py | |
parent | caa15a7b57e7bec31c5dd2e1a5249110b282aab1 (diff) | |
download | hypervideo-pre-e38df8f9fa4d715513453928591346f680dbe298.tar.lz hypervideo-pre-e38df8f9fa4d715513453928591346f680dbe298.tar.xz hypervideo-pre-e38df8f9fa4d715513453928591346f680dbe298.zip |
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
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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', |