-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
61 lines (49 loc) · 1.53 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"""
Setup and installation for the package.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
long_description = """
Interacting with the Mapquest Geocoding API should be easy.
>>> import mapq
>>> mapq.key('my_api_key')
>>> mapq.address('155 9th St San Francisco, CA')
[{'lots': {'of': 'results'}}, ...]
>>> mapq.batch('94103', '1 Infinity Loop Cupertino', 'Yerba Buena Park')
[{'multiple': 'locations'}, ...]
>>> mapq.geocode('155 9th St San Francisco, CA')
{'single': {'geocode': 'result'}}
>>> mapq.reverse(37.775002, -122.418297)
{'looks': {'like': '155 9th St'}}
>>> mapq.latlng('155 9th St San Francisco, CA')
{'lat': 37.775002, 'lng': -122.418297}
"""
setup(
name="mapq",
version="0.3",
url="http://github.com/zachwill/mapq",
author="Zach Williams",
author_email="[email protected]",
keywords=['mapquest', 'geocoding', 'google maps', 'geocode'],
description="An easy-to-use Mapquest Geocoding API wrapper.",
long_description=long_description,
packages=[
'mapq'
],
install_requires=[
'requests',
'simplejson',
],
license='MIT',
classifiers=[
'Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)