annotate setup.py @ 98:f6d885adb3d7

STUB: numerics/histogram.py numerics/text_display.py
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Mar 2015 20:23:34 -0800
parents a027870e7a93
children b7d4b7f84883
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 """
45
ef915968d104 put this in the parser so that i can use this in convert
Jeff Hammel <k0scist@gmail.com>
parents: 41
diff changeset
2 setup packaging script for numerics python package
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 import os
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 version = "0.0"
2
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
8 dependencies = ['numpy',
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
9 'pandas',
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
10 'matplotlib',
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
11 'bokeh']
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 # allow use of setuptools/distribute or distutils
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 kw = {}
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 try:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 from setuptools import setup
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 kw['entry_points'] = """
11
5609225fb254 read csv
Jeff Hammel <k0scist@gmail.com>
parents: 3
diff changeset
18 [console_scripts]
62
18c0820bfe12 stub concatenating columns
Jeff Hammel <k0scist@gmail.com>
parents: 61
diff changeset
19 cat-columns = numerics.cat_columns:main
95
Jeff Hammel <k0scist@gmail.com>
parents: 66
diff changeset
20 display-fraction = numerics.text_display:main
63
0df8bcb6d521 stubbing: unicode histograms
Jeff Hammel <k0scist@gmail.com>
parents: 62
diff changeset
21 histogram = numerics.histogram:main
15
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
22 interpolate = numerics.interpolation:main
61
82a18c9337c3 more stubbing
Jeff Hammel <k0scist@gmail.com>
parents: 54
diff changeset
23 manipulate = numerics.manipulate:main
17
5245d7d0c1bf basic usage
Jeff Hammel <k0scist@gmail.com>
parents: 15
diff changeset
24 plot = numerics.plot:main
5245d7d0c1bf basic usage
Jeff Hammel <k0scist@gmail.com>
parents: 15
diff changeset
25 read-csv = numerics.read:main
29
c2c92c8da611 add simple smoother
Jeff Hammel <k0scist@gmail.com>
parents: 27
diff changeset
26 smooth = numerics.smooth:main
41
dee0a650bd5a eternally stubbing
Jeff Hammel <k0scist@gmail.com>
parents: 29
diff changeset
27 sum = numerics.sum:main
27
f865bc916593 stub for type inference
Jeff Hammel <k0scist@gmail.com>
parents: 17
diff changeset
28 types = numerics.convert:main
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 """
54
bbfe25d23a9f notes to self re fitting Skinny Puppy reference
Jeff Hammel <k0scist@gmail.com>
parents: 45
diff changeset
30 # TODO:
66
7dd1b18c9f78 minor cleanup and better error
Jeff Hammel <k0scist@gmail.com>
parents: 63
diff changeset
31 # cleanse = numerics.clean:main # cleans up outliers
54
bbfe25d23a9f notes to self re fitting Skinny Puppy reference
Jeff Hammel <k0scist@gmail.com>
parents: 45
diff changeset
32 # fold = numerics.fold:main
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33 kw['install_requires'] = dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34 except ImportError:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35 from distutils.core import setup
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
36 kw['requires'] = dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
37
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
38 try:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
39 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
40 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
41 except IOError:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
42 description = ''
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
43
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
44
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
45 setup(name='numerics',
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
46 version=version,
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
47 description="personal experiments in numerics + plotting",
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
48 long_description=description,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
49 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
50 author='Jeff Hammel',
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
51 author_email='k0scist@gmail.com',
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
52 url='http://k0s.org/hg/numerics',
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
53 license='',
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
54 packages=['numerics'],
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
55 include_package_data=True,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
56 zip_safe=False,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
57 **kw
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
58 )