annotate setup.py @ 180:69543d62ae7a

more split stubbing
author Jeff Hammel <k0scist@gmail.com>
date Tue, 09 Aug 2016 14:34:31 -0700
parents f63194f81f7d
children a4a665aa8569
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
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
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 import os
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8
176
f9c87cba1df3 clean off some dust
Jeff Hammel <k0scist@gmail.com>
parents: 167
diff changeset
9 version = "0.2"
2
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
10 dependencies = ['numpy',
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
11 'pandas',
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
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',
139
ce0e1e5efe77 stubbing
Jeff Hammel <k0scist@gmail.com>
parents: 128
diff changeset
15 'tempita',
120
4e0c6887604e cleanup and note dependencies
Jeff Hammel <k0scist@gmail.com>
parents: 116
diff changeset
16 'which']
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 # allow use of setuptools/distribute or distutils
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 kw = {}
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 try:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 from setuptools import setup
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 kw['entry_points'] = """
11
5609225fb254 read csv
Jeff Hammel <k0scist@gmail.com>
parents: 3
diff changeset
23 [console_scripts]
103
067aa27050a3 limping along towards bar charts
Jeff Hammel <k0scist@gmail.com>
parents: 101
diff changeset
24 bar-chart = numerics.bar:main
62
18c0820bfe12 stub concatenating columns
Jeff Hammel <k0scist@gmail.com>
parents: 61
diff changeset
25 cat-columns = numerics.cat_columns:main
150
Jeff Hammel <k0scist@gmail.com>
parents: 139
diff changeset
26 cleanse = numerics.clean:main
95
Jeff Hammel <k0scist@gmail.com>
parents: 66
diff changeset
27 display-fraction = numerics.text_display:main
63
0df8bcb6d521 stubbing: unicode histograms
Jeff Hammel <k0scist@gmail.com>
parents: 62
diff changeset
28 histogram = numerics.histogram:main
15
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
29 interpolate = numerics.interpolation:main
61
82a18c9337c3 more stubbing
Jeff Hammel <k0scist@gmail.com>
parents: 54
diff changeset
30 manipulate = numerics.manipulate:main
162
28215de61342 more stubbing
Jeff Hammel <k0scist@gmail.com>
parents: 150
diff changeset
31 normalize = numerics.normalize:main
101
b7d4b7f84883 simple script to compute means
Jeff Hammel <k0scist@gmail.com>
parents: 95
diff changeset
32 mean = numerics.mean:main
128
63bf582841a3 add median
Jeff Hammel <k0scist@gmail.com>
parents: 120
diff changeset
33 median = numerics.median:main
17
5245d7d0c1bf basic usage
Jeff Hammel <k0scist@gmail.com>
parents: 15
diff changeset
34 plot = numerics.plot:main
5245d7d0c1bf basic usage
Jeff Hammel <k0scist@gmail.com>
parents: 15
diff changeset
35 read-csv = numerics.read:main
29
c2c92c8da611 add simple smoother
Jeff Hammel <k0scist@gmail.com>
parents: 27
diff changeset
36 smooth = numerics.smooth:main
179
f63194f81f7d stubbing table splitting
Jeff Hammel <k0scist@gmail.com>
parents: 176
diff changeset
37 split-table = numerics.split_table:main
41
dee0a650bd5a eternally stubbing
Jeff Hammel <k0scist@gmail.com>
parents: 29
diff changeset
38 sum = numerics.sum:main
179
f63194f81f7d stubbing table splitting
Jeff Hammel <k0scist@gmail.com>
parents: 176
diff changeset
39 table2json = numerics.table:main
27
f865bc916593 stub for type inference
Jeff Hammel <k0scist@gmail.com>
parents: 17
diff changeset
40 types = numerics.convert:main
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
41 """
54
bbfe25d23a9f notes to self re fitting Skinny Puppy reference
Jeff Hammel <k0scist@gmail.com>
parents: 45
diff changeset
42 # TODO:
101
b7d4b7f84883 simple script to compute means
Jeff Hammel <k0scist@gmail.com>
parents: 95
diff changeset
43 # fold = numerics.fold:main # fold data through functions (reduce)
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
44 kw['install_requires'] = dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
45 except ImportError:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
46 from distutils.core import setup
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
47 kw['requires'] = dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
48
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
49 try:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
50 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
51 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
52 except IOError:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
53 description = ''
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
54
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
55
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
56 setup(name='numerics',
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
57 version=version,
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
58 description="personal experiments in numerics + plotting",
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
59 long_description=description,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
60 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
61 author='Jeff Hammel',
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
62 author_email='k0scist@gmail.com',
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
63 url='http://k0s.org/hg/numerics',
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
64 license='',
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
65 packages=['numerics'],
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
66 include_package_data=True,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
67 zip_safe=False,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
68 **kw
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
69 )