176e6818aSopenharmony_ci#!/usr/bin/env python3
276e6818aSopenharmony_ci# coding=utf-8
376e6818aSopenharmony_ci
476e6818aSopenharmony_ci#
576e6818aSopenharmony_ci# Copyright (c) 2020-2022 Huawei Device Co., Ltd.
676e6818aSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
776e6818aSopenharmony_ci# you may not use this file except in compliance with the License.
876e6818aSopenharmony_ci# You may obtain a copy of the License at
976e6818aSopenharmony_ci#
1076e6818aSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
1176e6818aSopenharmony_ci#
1276e6818aSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
1376e6818aSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1476e6818aSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1576e6818aSopenharmony_ci# See the License for the specific language governing permissions and
1676e6818aSopenharmony_ci# limitations under the License.
1776e6818aSopenharmony_ci#
1876e6818aSopenharmony_ciimport os
1976e6818aSopenharmony_ciimport stat
2076e6818aSopenharmony_cifrom setuptools import setup
2176e6818aSopenharmony_ci
2276e6818aSopenharmony_ciINSTALL_REQUIRES = [
2376e6818aSopenharmony_ci    "jinja2",
2476e6818aSopenharmony_ci    "xdevice"
2576e6818aSopenharmony_ci]
2676e6818aSopenharmony_ci
2776e6818aSopenharmony_cisetup(
2876e6818aSopenharmony_ci    name='xdevice-devicetest',
2976e6818aSopenharmony_ci    description='device test runner',
3076e6818aSopenharmony_ci    url='',
3176e6818aSopenharmony_ci    package_dir={'devicetest': ''},
3276e6818aSopenharmony_ci    packages=[
3376e6818aSopenharmony_ci        'devicetest',
3476e6818aSopenharmony_ci        'devicetest.controllers',
3576e6818aSopenharmony_ci        'devicetest.controllers.tools',
3676e6818aSopenharmony_ci        'devicetest.core',
3776e6818aSopenharmony_ci        'devicetest.core.suite',
3876e6818aSopenharmony_ci        'devicetest.log',
3976e6818aSopenharmony_ci        'devicetest.report',
4076e6818aSopenharmony_ci        'devicetest.runner',
4176e6818aSopenharmony_ci        'devicetest.utils',
4276e6818aSopenharmony_ci        'devicetest.driver'
4376e6818aSopenharmony_ci    ],
4476e6818aSopenharmony_ci    package_data={
4576e6818aSopenharmony_ci        'devicetest': [
4676e6818aSopenharmony_ci            'res/template/*'
4776e6818aSopenharmony_ci        ]
4876e6818aSopenharmony_ci    },
4976e6818aSopenharmony_ci    entry_points={
5076e6818aSopenharmony_ci        'driver': [
5176e6818aSopenharmony_ci            'device_test=devicetest.driver.device_test',
5276e6818aSopenharmony_ci            'windows=devicetest.driver.windows'
5376e6818aSopenharmony_ci        ],
5476e6818aSopenharmony_ci    },
5576e6818aSopenharmony_ci    zip_safe=False,
5676e6818aSopenharmony_ci    install_requires=INSTALL_REQUIRES,
5776e6818aSopenharmony_ci    extras_require={
5876e6818aSopenharmony_ci        "full": [
5976e6818aSopenharmony_ci            "numpy",
6076e6818aSopenharmony_ci            "pillow",
6176e6818aSopenharmony_ci            "opencv-python",
6276e6818aSopenharmony_ci        ]
6376e6818aSopenharmony_ci    },
6476e6818aSopenharmony_ci)
65