Mercurial > hg > GlobalNeighbors
view setup.py @ 19:811adc9736eb
add configuration for gunicorn
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 15:43:45 -0700 |
parents | 4583d0d9331a |
children |
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 gridded-neighbors = globalneighbors.grid: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 )