Mercurial > hg > GlobalNeighbors
view setup.py @ 4:8e130b7bfed9
remove unintended boilerplate
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 24 Jun 2017 14:48:55 -0700 |
parents | 5dba84370182 |
children | 316e1d54ffd4 |
line wrap: on
line source
""" 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 )