-
Notifications
You must be signed in to change notification settings - Fork 67
/
setup.py
52 lines (45 loc) · 1.43 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
"""Mercantile package build script"""
import sys
from setuptools import setup, find_packages
open_kwds = {}
if sys.version_info > (3,):
open_kwds["encoding"] = "utf-8"
with open("mercantile/__init__.py") as f:
for line in f:
if "__version__" in line:
version = line.split("=")[1].strip().strip('"').strip("'")
continue
with open("README.rst", **open_kwds) as f:
readme = f.read()
setup(
name="mercantile",
version=version,
description="Web mercator XYZ tile utilities",
long_description=readme,
classifiers=[
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: GIS',
],
keywords="mapping, web mercator, tiles",
author="Sean Gillies",
author_email="[email protected]",
url="https://github.com/mapbox/mercantile",
license="BSD",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
include_package_data=True,
zip_safe=False,
install_requires=["click>=3.0"],
extras_require={
"dev": ["check-manifest"],
"test": ["hypothesis", "pytest"],
},
entry_points="""
[console_scripts]
mercantile=mercantile.scripts:cli
""",
)