-
Notifications
You must be signed in to change notification settings - Fork 288
/
setup.py
61 lines (54 loc) · 1.93 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
#!/usr/bin/python
# coding: utf8
from codecs import open
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('geocoder/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
with open('README.md', 'r', 'utf-8') as f:
readme = f.read()
requires = ['requests', 'ratelim', 'click', 'six', 'future']
setup(
name='geocoder',
version=version,
description="Geocoder is a simple and consistent geocoding library.",
long_description=readme,
author='Denis Carriere',
author_email='[email protected]',
url='https://github.com/DenisCarriere/geocoder',
download_url='https://github.com/DenisCarriere/geocoder',
license="The MIT License",
entry_points='''
[console_scripts]
geocode=geocoder.cli:cli
''',
packages=['geocoder'],
package_data={'': ['LICENSE', 'README.md']},
package_dir={'geocoder': 'geocoder'},
include_package_data=True,
install_requires=requires,
zip_safe=False,
keywords='geocoder arcgis tomtom opencage google bing here',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)