-
Notifications
You must be signed in to change notification settings - Fork 70
/
setup.py
50 lines (45 loc) · 1.76 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
#!/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 :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: MIT License',
],
packages=find_packages(exclude=['tests',
# Exclude packages that will be covered by PEP420 or nspkg
'azure',
]),
install_requires=[
'cffi',
'requests>=2.20.0'
],
extras_require={ 'auth': ['azure-identity']},
long_description=readme + '\n\n' + history,
long_description_content_type="text/x-rst",
zip_safe=False,
)