~ubuntuone-hackers/ols-tests/trunk

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
# This file is part of the Online Services test tools
#
# Copyright 2013-2016 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 3, as published by the
# Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
# SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program.  If not, see <http://www.gnu.org/licenses/>.

import setuptools
import sys


import olstests


def get_scripts():
    if sys.version_info < (3,):
        return ['ols-run-tests2']
    else:
        return ['ols-run-tests']


setuptools.setup(
    name='olstests',
    version='.'.join(str(c) for c in olstests.__version__[0:3]),
    description=('Online Services test tools.'),
    author='Vincent Ladeuil',
    author_email='vila+ols@canonical.com',
    url='https://launchpad.net/ols-tests',
    license='GPLv3',
    # FIXME: We want 'pyflakes' below but this confuses dh_python3 on xenial
    # (but not on yakkety...) -- vila 2016-07-22
    install_requires=['pep8', 'python-subunit', 'testtools'],
    packages=['olstests', 'olstests.tests'],
    scripts=get_scripts(),
)