Mercurial > hg > GlobalNeighbors
view setup.py @ 13:94af113e498a
we have links
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 14:04:49 -0700 |
parents | 21ed15391e8a |
children | 4583d0d9331a |
line wrap: on
line source
""" setup packaging script for GlobalNeighbors """ import os version = "0.0" dependencies = ['Flask', 'gunicorn', 'jinja2', 'paste', 'webob'] # 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='http://k0s.org/hg/GlobalNeighbors', license='', packages=['globalneighbors'], include_package_data=True, tests_require=['tox', 'pytest'], zip_safe=False, **kw )