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
|
"""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",
],
keywords="mapping, web mercator, tiles",
author="Sean Gillies",
author_email="sean@mapbox.com",
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-cov", "pydocstyle"],
},
entry_points="""
[console_scripts]
mercantile=mercantile.scripts:cli
""",
)
|