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