-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
46 lines (39 loc) · 1.44 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
from setuptools import setup
# from distutils.core import setup
from platform import python_version_tuple
def requirements():
with open('requirements.txt', 'r') as fileobj:
requirements = [line.strip() for line in fileobj]
version = python_version_tuple()
if version[0] == 2 and version[1] == 6:
requirements.append("argparse==1.4.0")
return requirements
def long_description():
with open('README.rst', 'r') as fileobj:
return fileobj.read()
setup(
name='cos_migrate_tool',
version='0.0.5',
packages=['migrate_tool', 'migrate_tool.services'],
url='https://www.qcloud.com/',
license='MIT',
author='liuchang',
author_email='[email protected]',
description='migrate tool for object storage services',
long_description=long_description(),
include_package_data=True,
entry_points={
'console_scripts': [
'cos_migrate_tool=migrate_tool.main:main_'
],
'storage_services': [
'localfs=migrate_tool.services.LocalFileSystem:LocalFileSystem',
'oss=migrate_tool.services.oss:OssStorageService',
'qiniu=migrate_tool.services.qiniu:QiniuStorageService',
'cosv4=migrate_tool.services.cosv4:CosV4StorageService',
'url=migrate_tool.services.url_list:UrlListService',
's3=migrate_tool.services.s3:S3StorageService',
]
},
install_requires=requirements()
)