forked from geopy/geopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (54 loc) · 1.81 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
"""
geopy
"""
from setuptools import setup, find_packages
install_requires = []
tests_require = [
'nose-cov',
'oauth2',
'beautifulsoup4',
'tox',
]
# Test if we have built-in JSON - Python 2.6+, 3.0+.
# Older Python versions require simplejson.
# Alternatively, if Django is installed, plug into the django
# copy of simplejson.
try:
import json # pylint: disable=W0611
except ImportError:
try:
import simplejson # pylint: disable=W0611,F0401
except ImportError:
try:
from django.utils import simplejson # pylint: disable=F0401
except ImportError:
install_requires.append('simplejson')
# note: not automated since py3k cannot import geopy.get_version at
# install-time (since 2to3 has not yet run)
version = "0.97" # pylint: disable=C0103
setup(name='geopy',
version=version,
description='Python Geocoding Toolbox',
author='GeoPy Contributors',
author_email='[email protected]', # subject to change
url='https://github.com/geopy/geopy',
download_url = 'https://github.com/geopy/geopy/archive/%s.tar.gz' % version,
packages=find_packages(),
install_requires=install_requires,
tests_require=tests_require,
license='MIT',
keywords='geocode geocoding gis geographical maps earth distance',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
],
use_2to3=True,
)