| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
from setuptools import find_packages, setup |
| 4 |
from io import open |
| 5 |
import re |
| 6 |
|
| 7 |
with open('README.rst', encoding='utf-8') as f: |
| 8 |
readme = f.read() |
| 9 |
with open('HISTORY.rst', encoding='utf-8') as f: |
| 10 |
history = f.read() |
| 11 |
|
| 12 |
# Version extraction inspired from 'requests' |
| 13 |
with open('azure/datalake/store/__init__.py', 'r') as fd: |
| 14 |
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', |
| 15 |
fd.read(), re.MULTILINE).group(1) |
| 16 |
|
| 17 |
if not version: |
| 18 |
raise RuntimeError('Cannot find version information') |
| 19 |
|
| 20 |
setup(name='azure-datalake-store', |
| 21 |
version=version, |
| 22 |
description='Azure Data Lake Store Filesystem Client Library for Python', |
| 23 |
url='https://github.com/Azure/azure-data-lake-store-python', |
| 24 |
author='Microsoft Corporation', |
| 25 |
author_email='[email protected]', |
| 26 |
license='MIT License', |
| 27 |
keywords='azure', |
| 28 |
classifiers=[ |
| 29 |
'Development Status :: 3 - Alpha', |
| 30 |
'Programming Language :: Python', |
| 31 |
'Programming Language :: Python :: 3', |
| 32 |
'Programming Language :: Python :: 3.9', |
| 33 |
'Programming Language :: Python :: 3.10', |
| 34 |
'Programming Language :: Python :: 3.11', |
| 35 |
'Programming Language :: Python :: 3.12', |
| 36 |
'License :: OSI Approved :: MIT License', |
| 37 |
], |
| 38 |
packages=find_packages(exclude=['tests', |
| 39 |
# Exclude packages that will be covered by PEP420 or nspkg |
| 40 |
'azure', |
| 41 |
]), |
| 42 |
install_requires=[ |
| 43 |
'requests>=2.20.0' |
| 44 |
], |
| 45 |
extras_require={ 'auth': ['azure-identity']}, |
| 46 |
long_description=readme + '\n\n' + history, |
| 47 |
long_description_content_type="text/x-rst", |
| 48 |
zip_safe=False, |
| 49 |
) |