2020-05-18 07:34:40 +00:00
|
|
|
# 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.
|
|
|
|
"""
|
2020-06-15 07:04:23 +00:00
|
|
|
from os import path
|
2020-05-18 07:34:40 +00:00
|
|
|
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
NAME = "huaweicloudsdkcore"
|
2021-06-25 11:57:33 +00:00
|
|
|
VERSION = "3.0.49"
|
2020-05-18 07:34:40 +00:00
|
|
|
AUTHOR = "HuaweiCloud SDK"
|
2020-06-15 07:04:23 +00:00
|
|
|
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
|
2020-05-18 07:34:40 +00:00
|
|
|
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
|
|
|
|
|
2020-06-15 07:04:23 +00:00
|
|
|
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()
|
2020-05-18 07:34:40 +00:00
|
|
|
|
2020-07-15 09:30:15 +00:00
|
|
|
INSTALL_REQUIRES = [
|
|
|
|
"urllib3",
|
2021-06-21 14:35:39 +00:00
|
|
|
"six>=1.16.0",
|
2020-07-15 09:30:15 +00:00
|
|
|
"requests",
|
2020-06-15 07:04:23 +00:00
|
|
|
"requests_futures",
|
2021-05-26 03:00:08 +00:00
|
|
|
"futures"
|
2020-07-15 09:30:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
TESTS_REQUIRES = [
|
|
|
|
'pytest',
|
|
|
|
'pytest-cov',
|
|
|
|
'pytest-mock',
|
|
|
|
'requests-mock'
|
2020-05-18 07:34:40 +00:00
|
|
|
]
|
|
|
|
|
2021-05-26 03:00:08 +00:00
|
|
|
OPTIONS = {
|
|
|
|
'bdist_wheel': {
|
|
|
|
'universal': True
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-18 07:34:40 +00:00
|
|
|
setup(
|
|
|
|
name=NAME,
|
|
|
|
version=VERSION,
|
2021-05-26 03:00:08 +00:00
|
|
|
options=OPTIONS,
|
2020-05-18 07:34:40 +00:00
|
|
|
description=DESCRIPTION,
|
2020-06-15 07:04:23 +00:00
|
|
|
long_description=LONG_DESCRIPTION,
|
2020-05-18 11:50:57 +00:00
|
|
|
long_description_content_type='text/markdown',
|
2020-05-18 07:34:40 +00:00
|
|
|
author=AUTHOR,
|
2020-06-15 07:04:23 +00:00
|
|
|
author_email=AUTHOR_EMAIL,
|
2020-05-18 07:34:40 +00:00
|
|
|
license="Apache LICENSE 2.0",
|
|
|
|
url=URL,
|
|
|
|
keywords=["huaweicloud", "sdk", "core"],
|
2020-07-15 09:30:15 +00:00
|
|
|
packages=find_packages(),
|
2020-05-18 07:34:40 +00:00
|
|
|
platforms=['any'],
|
2020-07-15 09:30:15 +00:00
|
|
|
install_requires=INSTALL_REQUIRES,
|
|
|
|
tests_require=TESTS_REQUIRES,
|
2021-06-25 11:57:33 +00:00
|
|
|
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*",
|
2020-06-15 07:04:23 +00:00
|
|
|
classifiers=[
|
2020-05-18 07:34:40 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
2021-05-26 03:00:08 +00:00
|
|
|
'Programming Language :: Python :: 2.7',
|
2021-06-25 11:57:33 +00:00
|
|
|
'Programming Language :: Python :: 3.3',
|
2020-05-18 07:34:40 +00:00
|
|
|
'Programming Language :: Python :: 3.4',
|
|
|
|
'Programming Language :: Python :: 3.5',
|
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
'Programming Language :: Python :: 3.7',
|
2021-05-26 03:00:08 +00:00
|
|
|
'Programming Language :: Python :: 3.8',
|
|
|
|
'Programming Language :: Python :: 3.9',
|
2020-06-15 07:04:23 +00:00
|
|
|
'Topic :: Software Development'
|
|
|
|
]
|
2020-05-18 07:34:40 +00:00
|
|
|
)
|