2 from codecs
import open
4 from setuptools
import setup, find_packages
6 CONDA_BUILD = int(os.environ.get(
'CONDA_BUILD',
'0'))
8 here = os.path.abspath(os.path.dirname(__file__))
11 with
open(os.path.join(here,
"README.rst"), encoding=
"utf-8")
as f:
12 long_description = f.read()
15 spec = importlib.util.spec_from_file_location(
"omnisci_version", os.path.join(here,
'omnisci',
'version.py'))
16 version_module = importlib.util.module_from_spec(spec)
17 spec.loader.exec_module(version_module)
18 VERSION = version_module.get_source_version()
19 assert VERSION
is not None
27 "rbc-project >= 0.2.2",
31 doc_requires = [
'sphinx',
'numpydoc',
'sphinx-rtd-theme']
32 test_requires = [
'coverage',
'pytest',
'pytest-mock',
'pandas']
33 dev_requires = doc_requires + test_requires + [
'pre-commit']
34 complete_requires = dev_requires
38 "test": test_requires,
40 "complete": complete_requires,
41 }
if not CONDA_BUILD
else {}
45 description=
"A DB API 2 compatible client for OmniSci (formerly MapD).",
46 long_description=long_description,
47 long_description_content_type=
'text/x-rst',
48 url=
"https://github.com/omnisci/omniscidb",
50 author_email=
"community@omnisci.com",
51 license=
"Apache Software License",
52 python_requires=
">=3.7",
54 "Development Status :: 5 - Production/Stable",
55 "Intended Audience :: Developers",
57 "Topic :: Scientific/Engineering",
58 "License :: OSI Approved :: Apache Software License",
59 "Programming Language :: Python :: 3",
60 "Programming Language :: Python :: 3.7",
61 "Programming Language :: Python :: 3.8",
62 "Programming Language :: Python :: 3 :: Only",
64 packages=find_packages(),
66 install_requires=install_requires,
67 extras_require=extra_requires,
int open(const char *path, int flags, int mode)