-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·99 lines (87 loc) · 3.56 KB
/
setup.py
File metadata and controls
executable file
·99 lines (87 loc) · 3.56 KB
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
#!/usr/bin/env python
import io
import os
import re
from setuptools import setup, find_packages
file_dir = os.path.dirname(__file__)
def read(path, encoding='utf-8'):
path = os.path.join(os.path.dirname(__file__), path)
with io.open(path, encoding=encoding) as fp:
return fp.read()
def version(path):
"""Obtain the packge version from a python file e.g. pkg/__init__.py
See <https://packaging.python.org/en/latest/single_source_version.html>.
"""
version_file = read(path)
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.")
LONG_DESCRIPTION = """
Pandashells is a set of unix command-line tools that provide accessibility
to the python data stack directly from the bash prompt. Users can utilize
pandas-based data-munging, perform linear regression, and even take
the spectral decomposition of non-uniformly sampled time series.
"""
setup(
name="pandashells",
version=version(os.path.join(file_dir, 'pandashells', '__init__.py')),
author="Rob deCarvalho",
author_email="unlisted@unlisted.net",
description=("Command line data tools"),
license="BSD",
keywords=("pandas plot plotting data dataframe command line cli "
"statistics stats"),
url="https://github.com/robdmc/pandashells",
packages=find_packages(),
package_data={'pandashells': ['example_data/*.csv']},
# include_package_data=True,
long_description=LONG_DESCRIPTION,
classifiers=[
'Environment :: Console',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering',
],
# If you add/remove a requirement, please also update full
extras_require={
'console': [
'numpy', 'pandas', 'scipy', 'patsy', 'statsmodels', 'scikit-learn',
'supersmoother', 'gatspy',
],
'full': [
'numpy', 'pandas', 'scipy', 'patsy', 'statsmodels', 'scikit-learn',
'supersmoother', 'gatspy', 'matplotlib', 'jinja2', 'mpld3',
'seaborn',
],
},
entry_points={
'console_scripts': [
'p.config = pandashells.bin.p_config:main',
'p.crypt = pandashells.bin.p_crypt:main',
'p.format = pandashells.bin.p_format:main',
'p.parallel = pandashells.bin.p_parallel:main',
'p.df = pandashells.bin.p_df:main',
'p.example_data = pandashells.bin.p_example_data:main',
'p.gui = pandashells.bin.p_gui:main',
'p.linspace = pandashells.bin.p_linspace:main',
'p.merge = pandashells.bin.p_merge:main',
'p.rand = pandashells.bin.p_rand:main',
'p.regress = pandashells.bin.p_regress:main',
'p.sig_edit = pandashells.bin.p_sig_edit:main',
'p.smooth = pandashells.bin.p_smooth:main',
'p.cdf = pandashells.bin.p_cdf:main',
'p.facet_grid = pandashells.bin.p_facet_grid:main',
'p.hist = pandashells.bin.p_hist:main',
'p.plot = pandashells.bin.p_plot:main',
'p.regplot = pandashells.bin.p_regplot:main',
'p.lomb_scargle = pandashells.bin.p_lomb_scargle:main',
],
}
)