-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·73 lines (67 loc) · 1.85 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from collections import OrderedDict
import sys
import setuptools
from sphinx.setup_command import BuildDoc
with open('README.rst', 'rt', encoding='utf8') as f:
readme = f.read()
name = "dataviz"
version = "0.1"
release = "0.1.0"
needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []
setuptools.setup(
name=name,
author="James K. Glasbrenner",
author_email="jglasbr2@gmu.edu",
license="MIT",
version=release,
url="https://github.com/jkglasbrenner/data-visualization-demo",
project_urls=OrderedDict((
("Documentation", "https://dataviz.readthedocs.io"),
("Code", "https://github.com/jkglasbrenner/data-visualization-demo"),
)),
description=
"Demonstration of a simple data visualization dashboard in a Jupyter notebook.",
long_description=readme,
python_requires=">=3.7",
packages=setuptools.find_packages(),
package_data={"": "configurations"},
include_package_data=True,
setup_requires=[] + pytest_runner,
install_requires=[
"click",
"ipython",
"ipympl",
"ipywidgets",
"matplotlib",
"plotly",
"pandas",
"numpy",
"scipy",
],
extras_require={
"docs": [
"sphinx",
"sphinx_rtd_theme",
],
},
tests_require=[
"pytest",
],
cmdclass={"build_sphinx": BuildDoc},
command_options={
"build_sphinx": {
"project": ("setup.py", name),
"version": ("setup.py", version),
"release": ("setup.py", release),
"source_dir": ("setup.py", "docs"),
"build_dir": ("setup.py", "docs/_build"),
}
},
entry_points="""
[console_scripts]
dataviztool=dataviz.cli:cli
""",
)