2
# This file is part of Checkbox.
4
# Copyright 2014 Canonical Ltd.
6
# Sylvain Pineau <sylvain.pineau@canonical.com>
8
# CloudBox is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
13
# CloudBox is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
18
# You should have received a copy of the GNU General Public License
19
# along with CloudBox. If not, see <http://www.gnu.org/licenses/>.
24
from io import open # For compatibility with Python 2.7
25
from setuptools import setup, find_packages
27
if "test" in sys.argv:
28
# Reset locale for setup.py test
29
os.environ["LANG"] = ""
30
os.environ["LANGUAGE"] = ""
31
os.environ["LC_ALL"] = "C.UTF-8"
33
base_dir = os.path.dirname(__file__)
35
# Load the README.rst file relative to the setup file
36
with open(os.path.join(base_dir, "README.rst"), encoding="UTF-8") as stream:
37
long_description = stream.read()
40
name="checkbox-support",
42
url="https://launchpad.net/checkbox/",
43
packages=find_packages(),
44
test_suite='checkbox_support.tests.test_suite',
45
author="Sylvain Pineau",
46
author_email="sylvain.pineau@canonical.com",
48
description="CheckBox support library",
49
long_description=long_description,
50
package_data={"checkbox_support": ["parsers/cputable"]},
54
] + (['configparser'] if sys.version_info.major == 2 else []),
55
include_package_data=True,
58
"pactl-list=checkbox_support.parsers.pactl:parse_pactl_output",
59
("submission=checkbox_support.parsers.submission:parse_submission"
61
"udevadm=checkbox_support.parsers.udevadm:parse_udevadm_output",
62
("modprobe=checkbox_support.parsers.modprobe:parse_modprobe_d"
64
("pci-subsys-id=checkbox_support.parsers.pci_config:parse_pci"
66
"dkms-info=checkbox_support.parsers.dkms_info:parse_dkms_info",
67
("dmidecode=checkbox_support.parsers.dmidecode:parse_dmidecode"
69
("modinfo=checkbox_support.parsers.modinfo:parse_modinfo"
70
"_attachment_output"),
71
("buildstamp=checkbox_support.parsers.image_info:parse_buildstamp"
72
"_attachment_output"),
73
("recovery-info=checkbox_support.parsers.image_info:parse_recovery"
74
"_info_attachment_output"),
75
("bto=checkbox_support.parsers.image_info:parse_bto_attachment"