diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.py	Sat Jun 24 12:03:39 2017 -0700
@@ -0,0 +1,47 @@
+"""
+setup packaging script for GlobalNeighbors
+"""
+
+import os
+
+version = "0.0"
+dependencies = ['webob', 'gunicorn']
+
+# allow use of setuptools/distribute or distutils
+kw = {}
+try:
+    from setuptools import setup
+    kw['entry_points'] = """
+    [console_scripts]
+    determine-distances = globalneighbors.determine_distances:main
+    find-neighbors = globalneighbors.distance:main
+    global-neighbors = globalneighbors.main:main
+    global-web = globalneighbors.web:main
+"""
+    kw['install_requires'] = dependencies
+except ImportError:
+    from distutils.core import setup
+    kw['requires'] = dependencies
+
+try:
+    here = os.path.dirname(os.path.abspath(__file__))
+    description = open(os.path.join(here, 'README.txt')).read()
+except IOError:
+    description = ''
+
+
+setup(name='GlobalNeighbors',
+      version=version,
+      description="locate nearest cities",
+      long_description=description,
+      classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
+      author='Jeff Hammel',
+      author_email='k0scist@gmail.com',
+      url='',
+      license='',
+      packages=['globalneighbors'],
+      include_package_data=True,
+      tests_require=['tox'],
+      zip_safe=False,
+      **kw
+      )