annotate setup.py @ 16:9e593b26e93b

add script to plot data
author Jeff Hammel <k0scist@gmail.com>
date Sat, 20 Sep 2014 18:45:08 -0700
parents 90edb741397d
children 5245d7d0c1bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 """
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
2 setup packaging script for numerics
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]
15
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
19 interpolate = numerics.interpolation:main
Jeff Hammel <k0scist@gmail.com>
parents: 11
diff changeset
20 read-csv = numerics.read:main
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 kw['install_requires'] = dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 except ImportError:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 from distutils.core import setup
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 kw['requires'] = dependencies
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 try:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30 except IOError:
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31 description = ''
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
32
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
34 setup(name='numerics',
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35 version=version,
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
36 description="personal experiments in numerics + plotting",
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
37 long_description=description,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
38 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
39 author='Jeff Hammel',
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
40 author_email='k0scist@gmail.com',
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
41 url='http://k0s.org/hg/numerics',
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
42 license='',
3
Jeff Hammel <k0scist@gmail.com>
parents: 2
diff changeset
43 packages=['numerics'],
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
44 include_package_data=True,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
45 zip_safe=False,
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
46 **kw
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
47 )