Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (52 loc) · 1.81 KB
/
Copy pathsetup.py
File metadata and controls
61 lines (52 loc) · 1.81 KB
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
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import re
from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
# The package's __version__ is the single source of the distribution version.
with open('sqlalchemy_dremio/__init__.py') as init_file:
version = re.search(r"^__version__ = '([^']+)'", init_file.read(), re.M).group(1)
# Lower bounds only: the dialect supports SQLAlchemy 1.4 and 2.x, and uses
# pyarrow's Flight client and Arrow-to-Python conversion, which have been
# stable since pyarrow 10. Upper caps here conflict with applications that
# pin newer releases (for example pyarrow 25).
requirements = [
'SQLAlchemy>=1.4,<3',
'pyarrow>=10.0.0',
]
setup_requirements = [
]
test_requirements = [
]
setup(
name='sqlalchemy_dremio',
version=version,
description="A SQLAlchemy dialect for Dremio via the Flight interface.",
long_description=readme,
long_description_content_type='text/markdown',
author="Naren",
author_email='me@narendran.info',
url='https://github.com/narendrans/sqlalchemy_dremio',
packages=find_packages(include=['sqlalchemy_dremio']),
python_requires='>=3.8',
entry_points={
'sqlalchemy.dialects': [
'dremio.flight = sqlalchemy_dremio.flight:DremioDialect_flight',
]
},
include_package_data=True,
install_requires=requirements,
license="Apache Software License",
zip_safe=False,
keywords='sqlalchemy_dremio',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8'
]
)