Page MenuHomePhabricator

setup.py
No OneTemporary

setup.py

#!/usr/bin/python
import glob
import os
import re
from distutils.core import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('sylk/__init__.py').read()).group('version')
def find_packages(toplevel):
return [directory.replace(os.path.sep, '.') for directory, subdirs, files in os.walk(toplevel) if '__init__.py' in files]
def get_resource_files():
for root, dirs, files in os.walk('resources'):
yield (os.path.join('share/sylkserver', root[10:]), [os.path.join(root, f) for f in files])
setup(name = "sylkserver",
version = get_version(),
author = "AG Projects",
author_email = "support@ag-projects.com",
url = "http://sylkserver.com",
description = "SylkServer - An Extensible SIP Application Server",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Service Providers",
"License :: GNU General Public License 3",
"Operating System :: OS Independent",
"Programming Language :: Python"
],
packages = find_packages('sylk'),
scripts = ['sylk-server'],
data_files = [('/var/lib/sylkserver', []),
('/etc/sylkserver', glob.glob('*.ini.sample')),
('/etc/sylkserver/tls', glob.glob('resources/tls/*.crt'))] + \
list(get_resource_files())
)

File Metadata

Mime Type
text/x-python
Expires
Sat, Nov 23, 2:19 PM (22 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3409245
Default Alt Text
setup.py (1 KB)

Event Timeline