~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to checkbox-support/setup.py

  • Committer: Tarmac
  • Author(s): Brendan Donegan
  • Date: 2013-06-03 11:12:58 UTC
  • mfrom: (2154.2.1 bug1185759)
  • Revision ID: tarmac-20130603111258-1b3m5ydvkf1accts
"[r=zkrynicki][bug=1185759][author=brendan-donegan] automatic merge by tarmac"

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python3
2
 
# This file is part of Checkbox.
3
 
#
4
 
# Copyright 2014 Canonical Ltd.
5
 
# Written by:
6
 
#   Sylvain Pineau <sylvain.pineau@canonical.com>
7
 
#
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.
12
 
#
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.
17
 
#
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/>.
20
 
 
21
 
import os
22
 
import sys
23
 
 
24
 
from io import open  # For compatibility with Python 2.7
25
 
from setuptools import setup, find_packages
26
 
 
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"
32
 
 
33
 
base_dir = os.path.dirname(__file__)
34
 
 
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()
38
 
 
39
 
setup(
40
 
    name="checkbox-support",
41
 
    version="0.26.dev0",
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",
47
 
    license="GPLv3",
48
 
    description="CheckBox support library",
49
 
    long_description=long_description,
50
 
    package_data={"checkbox_support": ["parsers/cputable"]},
51
 
    install_requires=[
52
 
        'lxml >= 2.3',
53
 
        'pyparsing >= 2.0.0',
54
 
    ] + (['configparser'] if sys.version_info.major == 2 else []),
55
 
    include_package_data=True,
56
 
    entry_points={
57
 
        'plainbox.parsers': [
58
 
            "pactl-list=checkbox_support.parsers.pactl:parse_pactl_output",
59
 
            ("submission=checkbox_support.parsers.submission:parse_submission"
60
 
             "_text"),
61
 
            "udevadm=checkbox_support.parsers.udevadm:parse_udevadm_output",
62
 
            ("modprobe=checkbox_support.parsers.modprobe:parse_modprobe_d"
63
 
             "_output"),
64
 
            ("pci-subsys-id=checkbox_support.parsers.pci_config:parse_pci"
65
 
             "_subsys_id"),
66
 
            "dkms-info=checkbox_support.parsers.dkms_info:parse_dkms_info",
67
 
            ("dmidecode=checkbox_support.parsers.dmidecode:parse_dmidecode"
68
 
             "_output"),
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"
76
 
             "_output"),
77
 
        ],
78
 
    },
79
 
)