summaryrefslogtreecommitdiffstats
path: root/Client/setup.py
blob: edcbeb434ee2bac1db0097ee29426e7b28b3f1d9 (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

import sys
import commands
from glob import glob
from setuptools import setup, find_packages
from distutils.command.build import build as _build

def bash_completion_dir():
    status, output = commands.getstatusoutput('pkg-config --variable completionsdir bash-completion')
    if status or not output:
        return '/etc/bash_completion.d'
    return output.strip()

setup(
    name='beaker-client',
    version='25.5',
    description='Command-line client for interacting with Beaker',
    author='Red Hat, Inc.',
    author_email='beaker-devel@lists.fedorahosted.org',
    url='https://beaker-project.org/',

    install_requires=[
        'beaker-common',
        'lxml',
        'requests',
        'PrettyTable',
        'Jinja2',
    ],

    packages=find_packages('src'),
    package_dir = {'':'src'},

    package_data = {
        'bkr.client': ['host-filters/*']
        },
    namespace_packages = ['bkr'],

    data_files = [
        ('/etc/beaker', []),
        (bash_completion_dir(), ['bash-completion/bkr']),
    ],

    classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 2.6',
        'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
    ],

    entry_points = {
        'console_scripts': (
            'bkr = bkr.client.main:main',
            'beaker-wizard = bkr.client.wizard:main',
        ),
    },
)