forked from mps-youtube/yewtube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·83 lines (72 loc) · 2.83 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/python3
""" setup.py for mps-youtube.
https://np1.github.com/mps-youtube
python setup.py sdist bdist_wheel
"""
import sys
import os
if sys.version_info < (3,0):
sys.exit("Mps-youtube requires python 3.")
from setuptools import setup
VERSION = "0.2.8"
options = dict(
name="mps-youtube",
version=VERSION,
description="Terminal based YouTube player and downloader",
keywords=["video", "music", "audio", "youtube", "stream", "download"],
author="np1",
author_email="[email protected]",
url="https://github.com/mps-youtube/mps-youtube",
download_url="https://github.com/mps-youtube/mps-youtube/archive/v%s.tar.gz" % VERSION,
packages=['mps_youtube', 'mps_youtube.commands', 'mps_youtube.listview', 'mps_youtube.players'],
entry_points={'console_scripts': ['mpsyt = mps_youtube:main.main']},
install_requires=['pafy >= 0.3.82, != 0.4.0, != 0.4.1, != 0.4.2'],
classifiers=[
"Topic :: Utilities",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia :: Sound/Audio :: Players",
"Topic :: Multimedia :: Video",
"Environment :: Console",
"Environment :: Win32 (MS Windows)",
"Environment :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: MacOS :: MacOS 9",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft",
"Operating System :: Microsoft :: Windows :: Windows 7",
"Operating System :: Microsoft :: Windows :: Windows XP",
"Operating System :: Microsoft :: Windows :: Windows Vista",
"Intended Audience :: End Users/Desktop",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3 :: Only",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
options={
"py2exe": {
"excludes": ("readline, win32api, win32con, dbus, gi,"
" urllib.unquote_plus, urllib.urlencode,"
" PyQt4, gtk"),
"bundle_files": 1
}
},
package_data={"": ["LICENSE", "README.rst", "CHANGELOG"]},
long_description=open("README.rst").read()
)
if sys.platform.startswith('linux'):
# Install desktop file. Required for mpris on Ubuntu
options['data_files'] = [('share/applications/', ['mps-youtube.desktop'])]
if os.name == "nt":
try:
import py2exe
# Only setting these when py2exe imports successfully prevents warnings
# in easy_install
options['console'] = ['mpsyt']
options['zipfile'] = None
except ImportError:
pass
setup(**options)