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