forked from Azure/azure-data-lake-store-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (52 loc) · 2.01 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
#!/usr/bin/env python
from setuptools import find_packages, setup
from io import open
import re
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',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
],
packages=find_packages(exclude=['tests',
# Exclude packages that will be covered by PEP420 or nspkg
'azure',
]),
install_requires=[
'cffi',
'adal>=0.4.2',
'requests>=2.20.0',
],
extras_require={
":python_version<'3.4'": ['pathlib2'],
":python_version<='2.7'": ['futures'],
":python_version<'3.0'": ['azure-nspkg'],
},
long_description=readme + '\n\n' + history,
zip_safe=False,
)