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
74
75
76
77
78
79
80
81
82
|
#!/usr/bin/env python3
# This file is part of Checkbox.
#
# Copyright 2013 Canonical Ltd.
# Written by:
# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
#
# Checkbox 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.
#
# Checkbox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY 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 Checkbox. If not, see <http://www.gnu.org/licenses/>.
# To avoid an error in atexit._run_exitfuncs while running tests:
import concurrent.futures
import os
import sys
from setuptools import setup, find_packages
if "test" in sys.argv:
# Reset locale for setup.py test
os.environ["LANG"] = ""
os.environ["LANGUAGE"] = ""
os.environ["LC_ALL"] = "C.UTF-8"
base_dir = os.path.dirname(__file__)
# Load the README.rst file relative to the setup file
with open(os.path.join(base_dir, "README.rst"), encoding="UTF-8") as stream:
long_description = stream.read()
# Check if we are running on readthedocs.org builder.
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# When building on readthedocs.org, skip all real dependencies as those are
# mocked away in 'plainbox/docs/conf.py'. This speeds up the build process.
# and makes it independent on any packages that are hard to get in a virtualenv
if on_rtd:
install_requires = []
else:
install_requires = [
'checkbox-support >= 0.2',
'guacamole >= 0.9',
'plainbox >= 0.5.3',
'requests >= 1.0',
]
setup(
name="checkbox-ng",
version="0.24.dev0",
url="https://launchpad.net/checkbox-ng/",
packages=find_packages(),
author="Zygmunt Krynicki",
test_suite='checkbox_ng.tests.test_suite',
author_email="zygmunt.krynicki@canonical.com",
license="GPLv3",
description="Checkbox - Command Line Test Runner",
long_description=long_description,
install_requires=install_requires,
scripts = ['launchers/checkbox-cli', 'launchers/checkbox-cli2'],
entry_points={
'console_scripts': [
'checkbox=checkbox_ng.main:main',
'checkbox-submit=checkbox_ng.main:submit',
'checkbox-launcher=checkbox_ng.main:launcher',
],
'plainbox.transport': [
'certification='
'checkbox_ng.certification:CertificationTransport',
'launchpad='
'checkbox_ng.launchpad:LaunchpadTransport',
],
},
include_package_data=True)
|