зеркало из
1
0
Форкнуть 0
azure-kusto-python/azure-kusto-data/setup.py

53 строки
1.9 KiB
Python

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License
import re
from os import path
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
PACKAGE_NAME = "azure-kusto-data"
# a-b-c => a/b/c
PACKAGE_FOLDER_PATH = PACKAGE_NAME.replace("-", path.sep)
# a-b-c => a.b.c
NAMESPACE_NAME = PACKAGE_NAME.replace("-", ".")
with open(path.join(PACKAGE_FOLDER_PATH, "_version.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=PACKAGE_NAME,
version=VERSION,
description="Kusto Data Client",
long_description=open("README.rst", "r").read(),
url="https://github.com/Azure/azure-kusto-python",
author="Microsoft Corporation",
author_email="kustalk@microsoft.com",
license="MIT",
classifiers=[
# 5 - Production/Stable depends on multi-threading / aio / perf
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"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",
],
namespace_packages=["azure"],
keywords="kusto wrapper client library",
packages=find_packages(exclude=["azure", "*tests*", "*tests.*"]),
package_data={"": ["wellKnownKustoEndpoints.json", "py.typed"]},
include_package_data=True,
install_requires=["python-dateutil>=2.8.0", "requests>=2.13.0", "azure-identity>=1.5.0,<2", "msal>=1.9.0,<2", "ijson~=3.1", "azure-core>=1.11.0,<2"],
extras_require={"pandas": ["pandas"], "aio": ["aiohttp>=3.8.0,<4", "asgiref>=3.2.3,<4"]},
)