1#!/usr/bin/env python3
2# coding=utf-8
3
4#
5# Copyright (c) 2020-2022 Huawei Device Co., Ltd.
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10#     http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18import os
19import stat
20from setuptools import setup
21
22INSTALL_REQUIRES = [
23    "jinja2",
24    "xdevice"
25]
26
27setup(
28    name='xdevice-devicetest',
29    description='device test runner',
30    url='',
31    package_dir={'devicetest': ''},
32    packages=[
33        'devicetest',
34        'devicetest.controllers',
35        'devicetest.controllers.tools',
36        'devicetest.core',
37        'devicetest.core.suite',
38        'devicetest.log',
39        'devicetest.report',
40        'devicetest.runner',
41        'devicetest.utils',
42        'devicetest.driver'
43    ],
44    package_data={
45        'devicetest': [
46            'res/template/*'
47        ]
48    },
49    entry_points={
50        'driver': [
51            'device_test=devicetest.driver.device_test',
52            'windows=devicetest.driver.windows'
53        ],
54    },
55    zip_safe=False,
56    install_requires=INSTALL_REQUIRES,
57    extras_require={
58        "full": [
59            "numpy",
60            "pillow",
61            "opencv-python",
62        ]
63    },
64)
65