• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4#
5# Copyright (c) 2020 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
19import os
20from setuptools import setup
21
22from hb.__main__ import VERSION
23
24WORK_PATH = os.path.abspath(os.path.dirname('__file__'))
25README_PATH = os.path.join(WORK_PATH, 'README.md')
26LONG_DESCRIPTION = open(README_PATH, 'r', encoding='utf-8').read()
27
28setup(
29    name='ohos-build',
30    version=VERSION,
31    author='Huawei',
32    author_email='contact@openharmony.io',
33    description='OHOS build command line tool',
34    long_description=LONG_DESCRIPTION,
35    long_description_content_type="text/markdown",
36    url='https://gitee.com/openharmony/build_lite',
37    license='Apache 2.0',
38    python_requires='>=3.7',
39    packages=['hb'],
40    package_dir={'hb': 'hb'},
41    package_data={'hb': ['common/config.json']},
42    install_requires=[
43        'prompt_toolkit==1.0.14', 'kconfiglib>=14.1.0', 'PyYAML', 'requests'
44    ],
45    entry_points={'console_scripts': [
46        'hb=hb.__main__:main',
47    ]},
48)
49