comparison setup.py @ 0:5dba84370182

initial commit; half-working prototype
author Jeff Hammel <k0scist@gmail.com>
date Sat, 24 Jun 2017 12:03:39 -0700
parents
children 316e1d54ffd4
comparison
equal deleted inserted replaced
-1:000000000000 0:5dba84370182
1 """
2 setup packaging script for GlobalNeighbors
3 """
4
5 import os
6
7 version = "0.0"
8 dependencies = ['webob', 'gunicorn']
9
10 # allow use of setuptools/distribute or distutils
11 kw = {}
12 try:
13 from setuptools import setup
14 kw['entry_points'] = """
15 [console_scripts]
16 determine-distances = globalneighbors.determine_distances:main
17 find-neighbors = globalneighbors.distance:main
18 global-neighbors = globalneighbors.main:main
19 global-web = globalneighbors.web:main
20 """
21 kw['install_requires'] = dependencies
22 except ImportError:
23 from distutils.core import setup
24 kw['requires'] = dependencies
25
26 try:
27 here = os.path.dirname(os.path.abspath(__file__))
28 description = open(os.path.join(here, 'README.txt')).read()
29 except IOError:
30 description = ''
31
32
33 setup(name='GlobalNeighbors',
34 version=version,
35 description="locate nearest cities",
36 long_description=description,
37 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
38 author='Jeff Hammel',
39 author_email='k0scist@gmail.com',
40 url='',
41 license='',
42 packages=['globalneighbors'],
43 include_package_data=True,
44 tests_require=['tox'],
45 zip_safe=False,
46 **kw
47 )