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 22 23INSTALL_REQUIRES = [ 24 "jinja2", 25 "xdevice" 26] 27 28setup( 29 name='xdevice-devicetest', 30 description='device test runner', 31 url='', 32 package_dir={'devicetest': ''}, 33 packages=[ 34 'devicetest', 35 'devicetest.controllers', 36 'devicetest.controllers.tools', 37 'devicetest.core', 38 'devicetest.core.suite', 39 'devicetest.log', 40 'devicetest.report', 41 'devicetest.runner', 42 'devicetest.utils', 43 'devicetest.driver' 44 ], 45 package_data={ 46 'devicetest': [ 47 'res/template/*' 48 ] 49 }, 50 entry_points={ 51 'driver': [ 52 'device_test=devicetest.driver.device_test', 53 'windows=devicetest.driver.windows' 54 ] 55 }, 56 zip_safe=False, 57 install_requires=INSTALL_REQUIRES, 58 extras_require={ 59 "full": ["numpy", "pillow", "opencv-python"] 60 }, 61) 62