87 lines
2.6 KiB
Python
87 lines
2.6 KiB
Python
# coding= utf-8
|
|
"""
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache LICENSE, Version 2.0 (the
|
|
"LICENSE"); you may not use this file except in compliance
|
|
with the LICENSE. You may obtain a copy of the LICENSE at
|
|
|
|
http=//www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the LICENSE is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the LICENSE for the
|
|
specific language governing permissions and limitations
|
|
under the LICENSE.
|
|
"""
|
|
from os import path
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
NAME = "huaweicloudsdkcore"
|
|
VERSION = "3.0.64"
|
|
AUTHOR = "HuaweiCloud SDK"
|
|
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
|
|
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
|
|
|
|
DESCRIPTION = "HuaweiCloud SDK Python Core"
|
|
this_directory = path.abspath(path.dirname(__file__))
|
|
with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f:
|
|
LONG_DESCRIPTION = f.read()
|
|
|
|
INSTALL_REQUIRES = [
|
|
"six>=1.16.0",
|
|
"requests_futures",
|
|
"simplejson"
|
|
]
|
|
|
|
TESTS_REQUIRES = [
|
|
'pytest',
|
|
'pytest-cov',
|
|
'pytest-mock',
|
|
'requests-mock'
|
|
]
|
|
|
|
OPTIONS = {
|
|
'bdist_wheel': {
|
|
'universal': True
|
|
}
|
|
}
|
|
|
|
setup(
|
|
name=NAME,
|
|
version=VERSION,
|
|
options=OPTIONS,
|
|
description=DESCRIPTION,
|
|
long_description=LONG_DESCRIPTION,
|
|
long_description_content_type='text/markdown',
|
|
author=AUTHOR,
|
|
author_email=AUTHOR_EMAIL,
|
|
license="Apache LICENSE 2.0",
|
|
url=URL,
|
|
keywords=["huaweicloud", "sdk", "core"],
|
|
packages=find_packages(),
|
|
platforms=['any'],
|
|
install_requires=INSTALL_REQUIRES,
|
|
tests_require=TESTS_REQUIRES,
|
|
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*",
|
|
extras_require={"python_version=='2.7'": ["futures>=3.3.0"]},
|
|
classifiers=[
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Programming Language :: Python :: 3.9',
|
|
'Topic :: Software Development'
|
|
]
|
|
)
|