• 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#
18
19from setuptools import setup
20
21INSTALL_REQUIRES = [
22    "xdevice"
23]
24
25
26def main():
27    setup(name='xdevice-ohos',
28          description='plugin for ohos',
29          url='',
30          package_dir={'': 'src'},
31          packages=['ohos',
32                    'ohos.drivers',
33                    'ohos.environment',
34                    'ohos.executor',
35                    'ohos.managers',
36                    'ohos.parser',
37                    'ohos.testkit'
38                    ],
39          entry_points={
40              'device': [
41                  'device=ohos.environment.device',
42                  'device_lite=ohos.environment.device_lite'
43              ],
44              'manager': [
45                  'manager=ohos.managers.manager_device',
46                  'manager_lite=ohos.managers.manager_lite'
47              ],
48              'driver': [
49                  'drivers=ohos.drivers.drivers',
50                  'drivers_lite=ohos.drivers.drivers_lite',
51                  'openharmony=ohos.drivers.openharmony'
52              ],
53              'listener': [
54                  'listener=ohos.executor.listener',
55              ],
56              'testkit': [
57                  'kit=ohos.testkit.kit',
58                  'kit_lite=ohos.testkit.kit_lite'
59              ],
60              'parser': [
61                  'parser_lite=ohos.parser.parser_lite',
62                  'parser=ohos.parser.parser'
63
64              ]
65          },
66          zip_safe=False,
67          install_requires=INSTALL_REQUIRES,
68          )
69
70
71if __name__ == "__main__":
72    main()
73