/
setup.py
91 lines (85 loc) · 2.72 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
from codecs import open
import re
try:
from setuptools import setup
except ImportError: # noqa
from distutils.core import setup
import sys
if sys.argv[-1] == 'sdist' or sys.argv[-1] == 'bdist_wheel':
try:
import pypandoc
long_description = pypandoc.convert(
'README.md', 'rst').replace('\r', '')
except (ImportError, IOError):
long_description = open('README.md', 'r', 'utf-8').read()
else:
long_description = ''
with open('blobxfer/version.py', 'r', 'utf-8') as fd:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version or len(version) == 0:
raise RuntimeError('Cannot find version')
packages = [
'blobxfer',
'blobxfer.models',
'blobxfer.operations',
'blobxfer.operations.azure',
'blobxfer.operations.azure.blob',
'blobxfer_cli',
]
install_requires = [
'azure-storage-blob==0.37.0',
'azure-storage-file==0.37.0',
'bitstring==3.1.5',
'click==6.7',
'cryptography>=2.0.3',
'future==0.16.0',
'pathlib2==2.3.0;python_version<"3.5"',
'python-dateutil==2.6.1',
'requests==2.18.4',
'ruamel.yaml==0.15.34',
'scandir==1.6;python_version<"3.5"',
]
setup(
name='blobxfer',
version=version,
author='Microsoft Corporation',
author_email='',
description='Azure storage transfer tool and data movement library',
platforms='any',
url='https://github.com/Azure/blobxfer',
license='MIT',
long_description=long_description,
packages=packages,
package_data={'blobxfer': ['LICENSE']},
package_dir={'blobxfer': 'blobxfer', 'blobxfer_cli': 'cli'},
entry_points={
'console_scripts': 'blobxfer=blobxfer_cli.cli:cli',
},
zip_safe=False,
install_requires=install_requires,
tests_require=['pytest'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
keywords=[
'azure', 'storage', 'blob', 'files', 'transfer', 'copy', 'smb',
'cifs', 'blobxfer', 'azcopy'
],
)