forked from geopy/geopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·108 lines (97 loc) · 3.26 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/usr/bin/env python
"""
geopy
"""
import sys
from setuptools import find_packages, setup
if sys.version_info < (3, 5):
raise RuntimeError(
"geopy 2 supports Python 3.5 and above. "
"Use geopy 1.x if you need Python 2.7 or 3.4 support."
)
# This import must be below the above `sys.version_info` check,
# because the code being imported here is not compatible with the older
# versions of Python.
from geopy import __version__ as version # noqa # isort:skip
INSTALL_REQUIRES = [
'geographiclib<2,>=1.49',
]
EXTRAS_DEV_TESTFILES_COMMON = [
"async_generator",
]
EXTRAS_DEV_LINT = [
"flake8>=3.8.0,<3.9.0",
"isort>=5.6.0,<5.7.0",
]
EXTRAS_DEV_TEST = [
"coverage",
"pytest-aiohttp", # for `async def` tests
"pytest>=3.10",
"sphinx", # `docutils` from sphinx is used in tests
]
EXTRAS_DEV_DOCS = [
"readme_renderer",
"sphinx",
"sphinx-issues",
"sphinx_rtd_theme>=0.5.0",
]
setup(
name='geopy',
version=version,
description='Python Geocoding Toolbox',
long_description=open('README.rst').read(),
maintainer='Kostya Esmukov',
maintainer_email='[email protected]',
url='https://github.com/geopy/geopy',
download_url=(
'https://github.com/geopy/geopy/archive/%s.tar.gz' % version
),
packages=find_packages(exclude=["*test*"]),
install_requires=INSTALL_REQUIRES,
extras_require={
"dev": sorted(set(
EXTRAS_DEV_TESTFILES_COMMON +
EXTRAS_DEV_LINT +
EXTRAS_DEV_TEST +
EXTRAS_DEV_DOCS
)),
"dev-lint": (EXTRAS_DEV_TESTFILES_COMMON +
EXTRAS_DEV_LINT),
"dev-test": (EXTRAS_DEV_TESTFILES_COMMON +
EXTRAS_DEV_TEST),
"dev-docs": EXTRAS_DEV_DOCS,
"aiohttp": ["aiohttp"],
"requests": [
"urllib3>=1.24.2",
# ^^^ earlier versions would work, but a custom ssl
# context would silently have system certificates be loaded as
# trusted: https://github.com/urllib3/urllib3/pull/1566
"requests>=2.16.2",
# ^^^ earlier versions would work, but they use an older
# vendored version of urllib3 (see note above)
],
"timezone": ["pytz"],
},
license='MIT',
keywords='geocode geocoding gis geographical maps earth distance',
python_requires=">=3.5",
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 :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)