~larry-e-works/uci-engine/write-exitcode-to-file

88.1.1 by Andy Doan
update cli component to use setup.py
1
#!/usr/bin/env python
88.1.2 by Andy Doan
update copyright
2
# Ubuntu Continuous Integration Engine
88.1.1 by Andy Doan
update cli component to use setup.py
3
# Copyright 2014 Canonical Ltd.
4
5
# This program is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU Affero General Public License version 3, as
7
# published by the Free Software Foundation.
8
9
# This program is distributed in the hope that it will be useful, but
10
# WITHOUT ANY WARRANTY; without even the implied warranties of
11
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
# PURPOSE.  See the GNU Affero General Public License for more details.
13
14
# You should have received a copy of the GNU Affero General Public License
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17
import os
62.2.8 by Chris Johnston
Add missing deps
18
import sys
88.1.1 by Andy Doan
update cli component to use setup.py
19
266.2.7 by Andy Doan
convert the CLI
20
# get ci_utils.setuptools on the path
21
ci_utils = os.path.join(os.path.dirname(__file__), '../ci-utils')
22
sys.path.append(ci_utils)
23
from ci_utils.setup_helper import setup
88.1.1 by Andy Doan
update cli component to use setup.py
24
25
requires = [
62.2.1 by Chris Johnston
Adds the ability to create a ticket and check ticket status to the CLI
26
    'chardet>=2.0.1',
27
    'dput>=1.6',
154.1.2 by Andy Doan
cli: update to new common ticket constants
28
    'lazr.enum>=1.1.2',
62.2.8 by Chris Johnston
Add missing deps
29
    'PyYAML==3.10',
30
    'mock==1.0.1',
157.1.9 by Ursula Junque (Ursinha)
Adding testfixtures as test dependency
31
    'testfixtures>=3.0.1',
62.2.8 by Chris Johnston
Add missing deps
32
]
33
266.2.7 by Andy Doan
convert the CLI
34
extra = {
35
    'scripts': ['ubuntu-ci'],
266.2.9 by Andy Doan
get tests working
36
    'requires_openstack': True,
266.2.7 by Andy Doan
convert the CLI
37
}
38
setup('cli', 'tests', requires, **extra)