forked from geopy/geopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (45 loc) · 1.65 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
import os
from setuptools import setup, find_packages
from pkg_resources import resource_string
install_requires = []
# 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
except ImportError:
try:
import simplejson
except ImportError:
try:
from django.utils import simplejson
except:
install_requires.append('simplejson')
version_file = os.path.join(os.path.dirname(__file__), 'geopy', 'version.txt')
version = open(version_file).read().strip()
setup(name='geopy',
version=version,
description='Python Geocoding Toolbox',
author='Mike Tigas', # update this as needed
author_email='[email protected]', # update this as needed
url='http://www.geopy.org/',
download_url='http://code.google.com/p/geopy/downloads/list',
packages=find_packages(),
install_requires=install_requires,
test_suite = "geopy.tests.run_tests.all_tests",
license='MIT',
keywords='geocode geocoding gis geographical maps earth distance',
classifiers=["Development Status :: 3 - Alpha",
"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,
)