-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
47 lines (39 loc) · 1.18 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
#!/usr/bin/env python
import os
from setuptools import setup
def source_root_dir():
"""Return the path to the root of the source distribution"""
return os.path.abspath(os.path.dirname(__file__))
def read_version():
"""Read the version from the ``lens.version`` module"""
filename = os.path.join(source_root_dir(), "lens/version.py")
with open(filename) as fin:
namespace = {}
exec(fin.read(), namespace) # pylint: disable=exec-used
return namespace["__version__"]
with open("README.rst") as file:
LONG_DESCRIPTION = file.read()
setup(
name="lens",
version=read_version(),
description="Summarise and explore Pandas DataFrames",
copyright="Copyright 2017-2019, Faculty",
license="Apache 2.0",
url="https://github.com/facultyai/lens",
author="Faculty",
author_email="opensource@faculty.ai",
packages=["lens"],
zip_safe=False,
long_description=LONG_DESCRIPTION,
install_requires=[
"dask[dataframe,delayed]>=0.18.0",
"ipywidgets>=6.0.0",
"matplotlib",
"numpy>=1.11",
"pandas",
"plotly>=3.0.0",
"scipy",
"tdigest>=0.5.0",
"seaborn",
],
)