-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
84 lines (73 loc) · 3.22 KB
/
setup.py
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import codecs
import os
import re
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
with codecs.open(os.path.join(here, *parts), "r") as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
with open("requirements.txt") as file:
install_requires = file.read().splitlines()
extras_requires = {}
extras_requires_patterns = re.compile(r"requirements-extras-(\w+)\.txt")
for file_name in os.listdir("."):
match = extras_requires_patterns.search(file_name)
if not match:
continue
with open(file_name) as file:
extras_name = match.group(1)
extras_requires[extras_name] = file.read().splitlines()
setup(
name="fireant",
version=find_version("fireant", "__init__.py"),
author="KAYAK, GmbH",
author_email="[email protected]",
# License
license="Apache License Version 2.0",
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
# Include additional files into the package
include_package_data=True,
# Details
url="https://github.com/kayak/fireant",
description="Data analysis tool for Python and Jupyter Notebooks",
long_description="Fireant is a tool which aims to simplify the process of accessing analytical data and building "
"dashboards and reports. It eliminates the need for handwritten queries or code to process "
"data. "
"The main feature, the dataset, is a schema that is used to configure metrics, the data being "
"visualized, and dimensions, the spatiality over which metrics can be extended and grouped. "
"Included in the Slicer is a Slicer Manager API which exposes methods to render tables and "
"charts "
"in a variety of different formats.\n\n"
"Fireant is a great compliment to Jupyter notebooks using matplotlib and pandas. It can be used "
"in "
"web projects with Highcharts and React-Table. It can even just provide a layer of "
"abstraction "
"for accessing analytical data akin to ORM libraries in software projects.",
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: PL/SQL",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
],
keywords=(
"fireant python query builder querybuilder sql mysql postgres mssql psql oracle vertica aggregated "
"relational database rdbms business analytics bi data science analysis pandas"
),
install_requires=install_requires,
extras_require=extras_requires,
tests_require=["mock"],
test_suite="fireant.tests",
)