forked from bbc/pydvbcss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·71 lines (60 loc) · 2.42 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
#!/usr/bin/env python
#
# Copyright 2015 British Broadcasting Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup
import os
def find_packages(path, base="" ):
""" Find all packages in path """
packages = {}
if "__init__.py" in os.listdir(path):
packages[base] = path
for item in os.listdir(path):
itempath = os.path.join(path,item)
if os.path.isdir(itempath):
newbase = "%s.%s" % (base, item)
packages.update(find_packages(itempath, newbase))
return packages
packages = find_packages("dvbcss","dvbcss")
package_names = packages.keys()
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "pydvbcss",
version = "0.0.1",
author = "Matt Hammond (British Broadcasting Corporation)",
author_email = "[email protected]",
description = ("pydvbcss is a library implementing DVB \"CSS\" protocols for Companion Screen Synchronisation."),
license = "Apache 2.0",
keywords = "dvb companion synchronisation synchronization second-screen protocol",
url = "http://github.com/BBC/pydvbcss",
packages = package_names,
package_dir = packages,
install_requires = [ 'cherrypy', 'ws4py' ],
test_suite = "test.test_all.testSuite",
long_description=read('README.md'),
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking :: Time Synchronization",
],
)