This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 127
/
setup.py
102 lines (89 loc) · 2.79 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import glob
import json
import os
from setuptools import find_packages
from setuptools import setup
MY_DIRECTORY = os.path.dirname(__file__)
with open(os.path.join(MY_DIRECTORY, 'cauldron', 'settings.json'), 'r') as f:
settings = json.load(f)
def readme():
"""Returns the contents of the package README.rst."""
path = os.path.realpath(os.path.join(
os.path.dirname(__file__),
'README.rst'
))
with open(path) as f:
return f.read()
def populate_extra_files():
"""
Creates a list of non-python data files to include in package distribution
"""
out = ['cauldron/settings.json']
for entry in glob.iglob('cauldron/resources/**/*', recursive=True):
out.append(entry)
return out
setup(
name='cauldron-notebook',
version=settings['version'],
description='The Unnotebook: Data Analysis Environment',
long_description=readme(),
long_description_content_type="text/x-rst",
keywords=[
'Data', 'Analysis', 'Visualization',
'Interactive', 'Interpreter', 'Shell'
],
url='https://github.com/sernst/cauldron',
author='Scott Ernst',
author_email='[email protected]',
license='MIT',
platforms='Linux, Mac OS X, Windows',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
package_data={'': populate_extra_files()},
include_package_data=True,
zip_safe=False,
entry_points=dict(
console_scripts=['cauldron=cauldron.invoke:run']
),
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: Information Analysis'
],
install_requires=[
'pandas',
'numpy',
'jinja2',
'markdown',
'pygments',
'beautifulsoup4',
'flask',
'requests',
'waitress',
],
extras_require={
'plotly': ['plotly'],
'matplotlib': ['matplotlib', 'beautifulsoup4'],
'bokeh': ['bokeh'],
'seaborn': ['seaborn'],
'plotting': [
'plotly',
'matplotlib',
'beautifulsoup4',
'bokeh',
'seaborn',
],
},
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov']
)