forked from hydralabs/rtmpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (73 loc) · 2.69 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
84
85
86
87
88
#!/usr/bin/env python
# Copyright the RTMPy Project
#
# RTMPy is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
# RTMPy is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with RTMPy. If not, see <http://www.gnu.org/licenses/>.
from distribute_setup import use_setuptools
# 15 seconds is far too long ....
use_setuptools(download_delay=3)
# import ordering is important
import setupinfo
from setuptools import setup, find_packages
version = (0, 2, 'dev')
name = "RTMPy"
description = "Twisted protocol for RTMP"
long_description = setupinfo.read('README.txt')
url = "http://rtmpy.org"
author = "The RTMPy Project"
author_email = "[email protected]"
license = "LGPL 2.1 License"
classifiers = """
Framework :: Twisted
Natural Language :: English
Intended Audience :: Developers
Intended Audience :: Information Technology"
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2.4
Programming Language :: Python :: 2.5
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Topic :: Software Development :: Libraries :: Python Modules
"""
keywords = """
rtmp flv rtmps rtmpe rtmpt rtmpte amf amf0 amf3 flex flash http https
streaming video audio sharedobject webcam record playback pyamf client
flashplayer air actionscript decoder encoder gateway server
"""
def setup_package():
setupinfo.set_version(version)
setupinfo.write_version_py()
setup(
name=name,
version=setupinfo.get_version(),
description=description,
long_description=long_description,
url=url,
author=author,
author_email=author_email,
keywords=keywords.strip(),
license=license,
packages=find_packages(),
ext_modules=setupinfo.get_extensions(),
install_requires=setupinfo.get_install_requirements(),
tests_require=setupinfo.get_test_requirements(),
test_suite="rtmpy",
zip_safe=True,
extras_require=setupinfo.get_extras_require(),
classifiers=(filter(None, classifiers.split('\n')) +
setupinfo.get_trove_classifiers()),
**setupinfo.extra_setup_args())
if __name__ == '__main__':
setup_package()