aboutsummaryrefslogtreecommitdiff
path: root/setup.py
blob: 25cd5d6b852b5543f66e2643cb5d78f6bc87d28b (plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#!/usr/bin/env python
#
# Copyright (C) 2010 Linaro Limited
#
# Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
#
# This file is part of LAVA Server.
#
# LAVA Server is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation
#
# LAVA Server 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 General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with LAVA Server.  If not, see <http://www.gnu.org/licenses/>.

from setuptools import setup, find_packages
from version import version_tag


setup(
    name='lava-server',
    version=version_tag(),
    author="Zygmunt Krynicki",
    author_email="lava-team@linaro.org",
    namespace_packages=['lava', ],
    packages=find_packages(),
    entry_points=open('entry_points.ini', 'r').read(),
    test_suite="lava_server.tests.run_tests",
    license="AGPL",
    description="LAVA Server",
    long_description="""
    LAVA Server is an application container for various server side
    applications of the LAVA stack. It has an extensible architecture that
    allows to add extra features that live in their own Python packages.  The
    standard LAVA extensions (dashboard and scheduler) are already contained in
    this package.
    """,
    url='http://www.linaro.org/engineering/engineering-groups/validation',
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: GNU Affero General Public License v3",
        ("License :: OSI Approved :: GNU Library or Lesser General Public"
         " License (LGPL)"),
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Topic :: Software Development :: Testing",
    ],
    install_requires=[
        'django >= 1.6.1',
        'django-openid-auth >= 0.5',
        'django-restricted-resource >= 2015.09',
        'django-tables2 >= 0.13.0',
        'docutils >= 0.6',
        'lava-tool >= 0.2',
        'south >= 1.0',
        'versiontools >= 1.8',
        'markdown >= 2.0.3',
        'psycopg2',
        'markupsafe',
        'mocker >= 1.0',
        'netifaces >= 0.10.4',
        'django-kvstore',
        'pyzmq',
        'jinja2',
        'django-auth-ldap >= 1.1.8',
        'voluptuous',
        # optional dependency; for authentication with Attlassian Crowd SSO
        # 'django-crowd-rest-backend >= 0.3,

        # dashboard
        'pygments >= 1.2',

        # scheduler
        "lava-dispatcher",
        "simplejson",
        "twisted",
    ],
    data_files=[
        ('/etc/lava-server',
         ['etc/settings.conf',
          'etc/uwsgi.ini',
          'etc/debug.wsgi',
          'etc/lava-server.wsgi',
          'etc/uwsgi.reload',
          'etc/env.yaml']),
        ('/etc/apache2/sites-available',
         ['etc/lava-server.conf']),
        ('/etc/logrotate.d',
         ['etc/logrotate.d/lava-scheduler-log',
          'etc/logrotate.d/lava-master-log',
          'etc/logrotate.d/lava-server-uwsgi-log',
          'etc/logrotate.d/django-log']),
        ('/usr/share/lava-server',
         ['instance.template']),
        ('/usr/share/lava-server',
         ['share/add_device.py',
          'etc/lava-master.service',
          'share/render-template.py']),
    ],
    scripts=[
        'lava_server/lava-daemon',
        'lava_server/lava-master',
        'share/lava-mount-masterfs',
    ],
    tests_require=[
        'django-testscenarios >= 0.7.2',
    ],
    zip_safe=False,
    include_package_data=True)