-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
executable file
·54 lines (47 loc) · 2.06 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
#!/usr/bin/python3
import glob
import os
from setuptools import setup
import pushserver.__info__ as package_info
long_description = """
Sylk Pushserver was designed to act as a central dispatcher for mobile push
notifications inside RTC provider infrastructures. Both the provider and
the mobile application customer, in the case of a shared infrastructure, can
easily audit problems related to the processing of push notifications.
"""
def find_packages(root):
return [directory.replace(os.path.sep, '.') for directory, sub_dirs, files in os.walk(root) if '__init__.py' in files]
def requirements():
install_requires = []
with open('requirements.txt') as f:
for line in f:
install_requires.append(line.strip())
return install_requires
setup(name=package_info.__project__,
version=package_info.__version__,
description=package_info.__summary__,
long_description=long_description,
author=package_info.__author__,
license=package_info.__license__,
platforms=['Platform Independent'],
author_email=package_info.__email__,
url=package_info.__webpage__,
scripts=['sylk-pushserver', 'scripts/sylk-pushclient', 'scripts/sylk-pushclient-v2', 'scripts/sylk-pushserver-db'],
packages=find_packages('pushserver'),
# install_requires=requirements(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Service Providers',
'License :: GPL v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
data_files=[('/etc/sylk-pushserver', []),
('/etc/sylk-pushserver', glob.glob('config/*.sample')),
('/etc/sylk-pushserver/credentials', []),
('/etc/sylk-pushserver/applications',
glob.glob('config/applications/*.py')),
('/etc/sylk-pushserver/applications/app_template',
glob.glob('config/applications/app_template/*.py')),
('/var/log/sylk-pushserver', [])]
)