forked from Azure/azure-data-lake-store-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (55 loc) · 1.95 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
#!/usr/bin/env python
import os
from setuptools import find_packages, setup
from io import open
import re
try:
from azure_bdist_wheel import cmdclass
except ImportError:
from distutils import log as logger
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}
with open('README.rst', encoding='utf-8') as f:
readme = f.read()
with open('HISTORY.rst', encoding='utf-8') as f:
history = f.read()
# Version extraction inspired from 'requests'
with open('azure/datalake/store/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
setup(name='azure-datalake-store',
version=version,
description='Azure Data Lake Store Filesystem Client Library for Python',
url='https://github.com/Azure/azure-data-lake-store-python',
author='Microsoft Corporation',
author_email='[email protected]',
license='MIT License',
keywords='azure',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
],
packages=find_packages(exclude=['tests']),
install_requires=[
'cffi',
'adal>=0.4.2',
'msrest~=0.4.5'
],
extras_require={
":python_version<'3.4'": ['pathlib2'],
":python_version<='2.7'": ['futures'],
},
long_description=readme + '\n\n' + history,
zip_safe=False,
cmdclass=cmdclass
)