This repository was archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
79 lines (73 loc) · 2.29 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
from codecs import open
import re
try:
from setuptools import setup
except ImportError: # noqa
from distutils.core import setup
import sys
if 'sdist' in sys.argv or 'bdist_wheel' in sys.argv:
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>=2.1.0,<3',
'azure-storage-file>=2.1.0,<3',
'bitstring>=3.1.9,<4',
'click>=8.0.1,<9',
'cryptography>=3.3.2',
'python-dateutil>=2.8.2,<3',
'requests>=2.26.0,<3',
'ruamel.yaml>=0.17.3',
]
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,
long_description_content_type='text/markdown',
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 :: 5 - Production/Stable',
'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 :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
keywords=[
'azure', 'storage', 'blob', 'files', 'transfer', 'copy', 'smb',
'cifs', 'blobxfer', 'azcopy'
],
)