• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = [
21    "requests",
22    "urllib3<2.1;python_version<'3.8'",
23]
24setup(
25    name='xdevice',
26    description='xdevice test framework',
27    url='',
28    package_dir={'': 'src'},
29    packages=[
30        'xdevice',
31        'xdevice._core',
32        'xdevice._core.command',
33        'xdevice._core.config',
34        'xdevice._core.driver',
35        'xdevice._core.environment',
36        'xdevice._core.executor',
37        'xdevice._core.report',
38        'xdevice._core.testkit',
39        'xdevice._core.context',
40        'xdevice._core.cluster',
41        'xdevice._core.cluster.controller',
42        'xdevice._core.cluster.worker'
43    ],
44    package_data={
45        'xdevice._core': [
46            'resource/*.txt',
47            'resource/config/*.xml',
48            'resource/template/*',
49            'resource/template/static/*',
50            'resource/template/static/components/*',
51            'resource/template/static/css/*',
52            'resource/tools/*'
53        ]
54    },
55    entry_points={
56        'console_scripts': [
57            'xdevice=xdevice.__main__:main_process',
58            'xdevice_report=xdevice._core.report.__main__:main_report'
59        ]
60    },
61    zip_safe=False,
62    install_requires=install_requires,
63    extras_require={
64        "full": [
65            "cryptography",
66            "psutil",
67            "fastapi;python_version>='3.10'",
68            "filelock;python_version>='3.10'",
69            "python-multipart;python_version>='3.10'",
70            "sqlmodel;python_version>='3.10'",
71            "uvicorn;python_version>='3.10'"
72        ]
73    },
74)
75