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_cifrom setuptools import setup
1976e6818aSopenharmony_ci
2076e6818aSopenharmony_ciinstall_requires = []
2176e6818aSopenharmony_cisetup(
2276e6818aSopenharmony_ci    name='xdevice',
2376e6818aSopenharmony_ci    description='xdevice test framework',
2476e6818aSopenharmony_ci    url='',
2576e6818aSopenharmony_ci    package_dir={'': 'src'},
2676e6818aSopenharmony_ci    packages=[
2776e6818aSopenharmony_ci        'xdevice',
2876e6818aSopenharmony_ci        'xdevice._core',
2976e6818aSopenharmony_ci        'xdevice._core.command',
3076e6818aSopenharmony_ci        'xdevice._core.config',
3176e6818aSopenharmony_ci        'xdevice._core.driver',
3276e6818aSopenharmony_ci        'xdevice._core.environment',
3376e6818aSopenharmony_ci        'xdevice._core.executor',
3476e6818aSopenharmony_ci        'xdevice._core.report',
3576e6818aSopenharmony_ci        'xdevice._core.testkit',
3676e6818aSopenharmony_ci        'xdevice._core.context',
3776e6818aSopenharmony_ci    ],
3876e6818aSopenharmony_ci    package_data={
3976e6818aSopenharmony_ci        'xdevice._core': [
4076e6818aSopenharmony_ci            'resource/*.txt',
4176e6818aSopenharmony_ci            'resource/config/*.xml',
4276e6818aSopenharmony_ci            'resource/template/*',
4376e6818aSopenharmony_ci            'resource/template/static/*',
4476e6818aSopenharmony_ci            'resource/template/static/components/*',
4576e6818aSopenharmony_ci            'resource/template/static/css/*',
4676e6818aSopenharmony_ci            'resource/tools/*'
4776e6818aSopenharmony_ci        ]
4876e6818aSopenharmony_ci    },
4976e6818aSopenharmony_ci    entry_points={
5076e6818aSopenharmony_ci        'console_scripts': [
5176e6818aSopenharmony_ci            'xdevice=xdevice.__main__:main_process',
5276e6818aSopenharmony_ci            'xdevice_report=xdevice._core.report.__main__:main_report'
5376e6818aSopenharmony_ci        ]
5476e6818aSopenharmony_ci    },
5576e6818aSopenharmony_ci    zip_safe=False,
5676e6818aSopenharmony_ci    install_requires=install_requires,
5776e6818aSopenharmony_ci    extras_require={
5876e6818aSopenharmony_ci        "full": ["cryptography"]
5976e6818aSopenharmony_ci    },
6076e6818aSopenharmony_ci)
61