forked from DHI/terracotta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
119 lines (114 loc) · 3.38 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
109
110
111
112
113
114
115
116
117
118
119
from setuptools import setup, find_packages
from os import path
import re
here = path.abspath(path.dirname(__file__))
# get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# resolve relative links to figures
long_description = re.sub(
r'!\[(.*?)\]\((docs/_figures/.*?)\)',
r'![\1](https://github.com/DHI-GRAS/terracotta/raw/master/\2)',
long_description
)
numpy_version = '>=1.15,!=1.17.0'
setup(
# metadata
name='terracotta',
description='A modern XYZ tile server written in Python',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/DHI-GRAS/terracotta',
author='Philip Graae',
author_email='[email protected]',
keywords='xyz tileserver rasterio cloud-optimized-geotiff serverless',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Framework :: Flask',
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Multimedia :: Graphics :: Viewers',
'Topic :: Scientific/Engineering :: GIS'
],
# module
packages=find_packages(exclude=['docs', 'tests']),
python_requires='>=3.6',
use_scm_version={
'write_to': 'terracotta/_version.py'
},
# dependencies
setup_requires=[
'setuptools_scm',
'setuptools_scm_git_archive',
'numpy' + numpy_version
],
install_requires=[
'apispec>=1.0',
'apispec-webframeworks',
'cachetools>=3.1.0',
'click',
'flask',
'flask_cors',
'marshmallow>=3.0.0b12',
'mercantile',
'numpy' + numpy_version,
'pillow',
'pyyaml>=3.10', # downstream dependency of apispec
'shapely',
'rasterio>=1.0',
'shapely',
'toml',
'tqdm'
],
extras_require={
'test': [
'pytest',
'pytest-cov',
'pytest-mypy',
'pytest-flake8',
'pytest-benchmark',
'attrs>=17.4.0',
'codecov',
'colorlog',
'crick',
'flake8',
'matplotlib',
'moto',
'pymysql'
],
'docs': [
'sphinx',
'sphinx_autodoc_typehints',
'sphinx-click',
'pymysql'
],
'recommended': [
'colorlog',
'crick',
'pymysql'
]
},
# CLI
entry_points='''
[console_scripts]
terracotta=terracotta.scripts.cli:entrypoint
''',
# package data
include_package_data=True,
package_data={
'terracotta': [
'cmaps/*_rgb.npy', # colormaps
'templates/*.html', 'static/*.js', 'static/*.css', 'static/images/*.png' # preview app
]
},
)