forked from chrippa/livestreamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (50 loc) · 1.93 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
#!/usr/bin/env python
from setuptools import setup
from sys import version_info, path as sys_path
from os.path import abspath, dirname, join
deps = []
packages = ["livestreamer",
"livestreamer.stream",
"livestreamer.plugin",
"livestreamer.plugin.api",
"livestreamer.plugins",
"livestreamer.packages",
"livestreamer.packages.flashmedia",
"livestreamer_cli"]
# require argparse on Python <2.7 and <3.2
if (version_info[0] == 2 and version_info[1] < 7) or \
(version_info[0] == 3 and version_info[1] < 2):
deps.append("argparse")
# requests 2.0 does not work correctly on Python <2.6.3
if (version_info[0] == 2 and version_info[1] == 6 and version_info[2] < 3):
deps.append("requests>=1.0,<2.0")
else:
deps.append("requests>=1.0,<3.0")
srcdir = join(dirname(abspath(__file__)), "src/")
sys_path.insert(0, srcdir)
import livestreamer
setup(name="livestreamer",
version=livestreamer.__version__,
description="Livestreamer is CLI program that extracts streams from "
"various services and pipes them into a video player of "
"choice.",
url="http://livestreamer.tanuki.se/",
author="Christopher Rosell",
author_email="[email protected]",
license="Simplified BSD",
packages=packages,
package_dir={ "": "src" },
entry_points={
"console_scripts": ["livestreamer=livestreamer_cli.main:main"]
},
install_requires=deps,
test_suite="tests",
classifiers=["Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Environment :: Console",
"Development Status :: 5 - Production/Stable",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Video",
"Topic :: Utilities"]
)