OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
setup.py
Go to the documentation of this file.
1 import os
2 from codecs import open
3 
4 from setuptools import setup, find_packages
5 
6 CONDA_BUILD = int(os.environ.get('CONDA_BUILD', '0'))
7 
8 here = os.path.abspath(os.path.dirname(__file__))
9 
10 # Get the long description from the README file
11 with open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
12  long_description = f.read()
13 
14 import importlib.util
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() # gets version from ../CMakeLists.txt
19 assert VERSION is not None
20 
21 install_requires = [
22  "thrift == 0.13.0",
23  "numpy",
24  "sqlalchemy >= 1.3",
25  "packaging >= 20.0",
26  "requests >= 2.23.0",
27  "rbc-project >= 0.2.2",
28 ]
29 
30 # Optional Requirements
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
35 
36 extra_requires = {
37  "docs": doc_requires,
38  "test": test_requires,
39  "dev": dev_requires,
40  "complete": complete_requires,
41 } if not CONDA_BUILD else {} # CONDA deps are specified in meta.yaml
42 
43 setup(
44  name="pyomniscidb",
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",
49  author="OmniSci",
50  author_email="community@omnisci.com",
51  license="Apache Software License",
52  python_requires=">=3.7",
53  classifiers=[
54  "Development Status :: 5 - Production/Stable",
55  "Intended Audience :: Developers",
56  "Topic :: Database",
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",
63  ],
64  packages=find_packages(exclude=('tests',)),
65  version=VERSION,
66  install_requires=install_requires,
67  extras_require=extra_requires,
68 )
int open(const char *path, int flags, int mode)
Definition: omnisci_fs.cpp:64
Definition: setup.in.py:1