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# 18 19from setuptools import setup 20 21INSTALL_REQUIRES = [] 22 23 24def main(): 25 setup(name='xdevice', 26 description='xdevice test framework', 27 url='', 28 package_dir={'': 'src'}, 29 packages=['xdevice', 30 'xdevice._core', 31 'xdevice._core.command', 32 'xdevice._core.config', 33 'xdevice._core.driver', 34 'xdevice._core.environment', 35 'xdevice._core.executor', 36 'xdevice._core.report', 37 'xdevice._core.testkit' 38 ], 39 package_data={ 40 'xdevice._core': [ 41 'resource/*.txt', 42 'resource/config/*.xml', 43 'resource/template/*.html', 44 'resource/tools/*' 45 ] 46 }, 47 entry_points={ 48 'console_scripts': [ 49 'xdevice=xdevice.__main__:main_process', 50 'xdevice_report=xdevice._core.report.__main__:main_report' 51 ] 52 }, 53 zip_safe=False, 54 install_requires=INSTALL_REQUIRES, 55 ) 56 57 58if __name__ == "__main__": 59 main() 60