Debian Codegraph @

azure-kusto-ingest/setup.py

raw
1 # Copyright (c) Microsoft Corporation.
2 # Licensed under the MIT License
3
4 import re
5 from os import path
6
7 from setuptools import setup, find_packages
8
9 PACKAGE_NAME = "azure-kusto-ingest"
10
11 # a-b-c => a/b/c
12 PACKAGE_FOLDER_PATH = PACKAGE_NAME.replace("-", path.sep)
13 # a-b-c => a.b.c
14 NAMESPACE_NAME = PACKAGE_NAME.replace("-", ".")
15
16 with open(path.join(PACKAGE_FOLDER_PATH, "_version.py"), "r") as fd:
17 VERSION = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
18
19 if not VERSION:
20 raise RuntimeError("Cannot find version information")
21
22 setup(
23 name=PACKAGE_NAME,
24 version=VERSION,
25 description="Kusto Ingest Client",
26 long_description_content_type="text/markdown",
27 long_description=open("README.rst", "r").read(),
28 license="MIT",
29 author="Microsoft Corporation",
30 author_email="[email protected]",
31 url="https://github.com/Azure/azure-kusto-python",
32 namespace_packages=["azure"],
33 classifiers=[
34 # 5 - Production/Stable depends on multi-threading / aio / perf
35 "Development Status :: 4 - Beta",
36 "Programming Language :: Python",
37 "Programming Language :: Python :: 3.8",
38 "Programming Language :: Python :: 3.9",
39 "Programming Language :: Python :: 3.10",
40 "Programming Language :: Python :: 3.11",
41 "Programming Language :: Python :: 3.12",
42 "Programming Language :: Python :: 3.13",
43 "License :: OSI Approved :: MIT License",
44 ],
45 packages=find_packages(exclude=["azure", "*tests*", "*tests.*"]),
46 package_data={"": ["py.typed"]},
47 install_requires=[
48 "azure-kusto-data=={}".format(VERSION),
49 # TODO - this has to be locked to this version due to https://github.com/Azure/azure-sdk-for-python/issues/40041
50 "azure-storage-blob==12.23.0",
51 "azure-storage-queue==12.12.0",
52 "tenacity>=8.0.0",
53 ],
54 extras_require={"pandas": ["pandas"], "aio": []},
55 )