forked from beaker-project/beaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
73 lines (60 loc) · 1.99 KB
/
setup.py
File metadata and controls
73 lines (60 loc) · 1.99 KB
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
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
from setuptools import setup, find_packages
try:
from commands import getstatusoutput
except ImportError:
from subprocess import getstatusoutput
DESCRIPTION = 'Command-line client for interacting with Beaker'
def bash_completion_dir():
status, output = 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='29.1',
description=DESCRIPTION,
# XXX: Create proper README for this package and use it for long description
long_description=DESCRIPTION,
long_description_content_type="text/plain",
author='Beaker developers',
url='https://beaker-project.org/',
install_requires=[
'beaker-common',
'lxml',
'six',
'requests',
'PrettyTable',
'Jinja2',
'gssapi'
],
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.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'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',
),
},
)