Mercurial > hg > numerics
annotate setup.py @ 128:63bf582841a3
add median
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 16 Mar 2015 20:59:08 -0700 |
parents | 4e0c6887604e |
children | ce0e1e5efe77 |
rev | line source |
---|---|
103
067aa27050a3
limping along towards bar charts
Jeff Hammel <k0scist@gmail.com>
parents:
101
diff
changeset
|
1 # -*- coding: utf-8 -*-""" |
067aa27050a3
limping along towards bar charts
Jeff Hammel <k0scist@gmail.com>
parents:
101
diff
changeset
|
2 |
0 | 3 """ |
45
ef915968d104
put this in the parser so that i can use this in convert
Jeff Hammel <k0scist@gmail.com>
parents:
41
diff
changeset
|
4 setup packaging script for numerics python package |
0 | 5 """ |
6 | |
7 import os | |
8 | |
9 version = "0.0" | |
2 | 10 dependencies = ['numpy', |
11 'pandas', | |
12 'matplotlib', | |
120
4e0c6887604e
cleanup and note dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
116
diff
changeset
|
13 'bokeh>=0.8.1', |
4e0c6887604e
cleanup and note dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
116
diff
changeset
|
14 'python-dateutil', |
4e0c6887604e
cleanup and note dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
116
diff
changeset
|
15 'which'] |
0 | 16 |
17 # allow use of setuptools/distribute or distutils | |
18 kw = {} | |
19 try: | |
20 from setuptools import setup | |
21 kw['entry_points'] = """ | |
11 | 22 [console_scripts] |
103
067aa27050a3
limping along towards bar charts
Jeff Hammel <k0scist@gmail.com>
parents:
101
diff
changeset
|
23 bar-chart = numerics.bar:main |
62 | 24 cat-columns = numerics.cat_columns:main |
95 | 25 display-fraction = numerics.text_display:main |
63
0df8bcb6d521
stubbing: unicode histograms
Jeff Hammel <k0scist@gmail.com>
parents:
62
diff
changeset
|
26 histogram = numerics.histogram:main |
15 | 27 interpolate = numerics.interpolation:main |
61 | 28 manipulate = numerics.manipulate:main |
101
b7d4b7f84883
simple script to compute means
Jeff Hammel <k0scist@gmail.com>
parents:
95
diff
changeset
|
29 mean = numerics.mean:main |
128 | 30 median = numerics.median:main |
17 | 31 plot = numerics.plot:main |
32 read-csv = numerics.read:main | |
29 | 33 smooth = numerics.smooth:main |
41 | 34 sum = numerics.sum:main |
27 | 35 types = numerics.convert:main |
0 | 36 """ |
54
bbfe25d23a9f
notes to self re fitting Skinny Puppy reference
Jeff Hammel <k0scist@gmail.com>
parents:
45
diff
changeset
|
37 # TODO: |
66
7dd1b18c9f78
minor cleanup and better error
Jeff Hammel <k0scist@gmail.com>
parents:
63
diff
changeset
|
38 # cleanse = numerics.clean:main # cleans up outliers |
101
b7d4b7f84883
simple script to compute means
Jeff Hammel <k0scist@gmail.com>
parents:
95
diff
changeset
|
39 # fold = numerics.fold:main # fold data through functions (reduce) |
0 | 40 kw['install_requires'] = dependencies |
41 except ImportError: | |
42 from distutils.core import setup | |
43 kw['requires'] = dependencies | |
44 | |
45 try: | |
46 here = os.path.dirname(os.path.abspath(__file__)) | |
47 description = file(os.path.join(here, 'README.txt')).read() | |
48 except IOError: | |
49 description = '' | |
50 | |
51 | |
3 | 52 setup(name='numerics', |
0 | 53 version=version, |
3 | 54 description="personal experiments in numerics + plotting", |
0 | 55 long_description=description, |
56 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
57 author='Jeff Hammel', | |
58 author_email='k0scist@gmail.com', | |
3 | 59 url='http://k0s.org/hg/numerics', |
0 | 60 license='', |
3 | 61 packages=['numerics'], |
0 | 62 include_package_data=True, |
63 zip_safe=False, | |
64 **kw | |
65 ) |