-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
60 lines (55 loc) · 1.9 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""
setup module for Alibaba Cloud OSS SDK V2.
"""
import re
import os.path
from io import open
from setuptools import setup, find_packages
PACKAGE_NAME = "alibabacloud-oss-v2"
PACKAGE_FOLDER_PATH = PACKAGE_NAME.replace("-", "_")
DESCRIPTION = "Alibaba Cloud OSS (Object Storage Service) SDK V2 for Python"
AUTHOR = "Alibaba Cloud OSS SDK"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/aliyun/alibabacloud-oss-python-sdk-v2"
REQUIRES = [
"requests>=2.18.4",
"pycryptodome>=3.4.7",
"crcmod-plus>=2.1.0"
]
with open(os.path.join(PACKAGE_FOLDER_PATH, "_version.py"), "r") as fd:
VERSION = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) # type: ignore
if not VERSION:
raise RuntimeError('Cannot find version information')
LONG_DESCRIPTION = ''
if os.path.exists('./README.md'):
with open("README.md", encoding='utf-8') as fp:
LONG_DESCRIPTION = fp.read()
setup(
name=PACKAGE_NAME,
version=VERSION,
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=["alibabacloud", "oss"],
packages=find_packages(exclude=["tests*", "sample*"]),
include_package_data=True,
platforms="any",
install_requires=REQUIRES,
python_requires=">=3.8",
classifiers=(
'Development Status :: 4 - Beta',
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
)
)