-
Notifications
You must be signed in to change notification settings - Fork 37
/
setup.py
125 lines (112 loc) · 3.29 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
120
121
122
123
124
125
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from setuptools import find_packages, setup
install_requirements = [
'datacube[performance,s3]>=1.8.12,<1.9',
'flask',
'requests',
'affine',
'click',
'colour',
'fsspec',
'lxml',
'deepdiff',
'matplotlib',
'pyparsing',
'numpy>=1.22',
'scipy',
'Pillow>=10.2.0',
'Babel',
'Flask-Babel>3.0.0', # New API in 3.x, bug in 3.0.0
'psycopg2',
'python_dateutil',
'pytz',
'rasterio>=1.3.2',
'regex',
'timezonefinder',
'python_slugify',
'geoalchemy2',
'lark',
'xarray',
'pyows',
'prometheus_flask_exporter',
'setuptools_scm'
]
test_requirements = [
'pytest', 'pytest_cov', 'pytest_localserver',
'owslib>0.29.2',
'pytest_mock', 'pep8',
'pytest-helpers-namespace', 'flask-cors',
'fsspec',
]
dev_requirements = [
'pydevd-pycharm~=242.23339.19', # For Pycharm 2024.2.3
'pylint',
'sphinx_click',
]
operational_requirements = [
"gunicorn>=22.0.0", "gunicorn[gevent]", "gevent", "prometheus_client", "sentry_sdk",
"prometheus_flask_exporter", "blinker"
]
setup_requirements = ['setuptools_scm', 'setuptools']
extras = {
"dev": dev_requirements + test_requirements + operational_requirements,
"test": test_requirements,
"ops": operational_requirements,
"setup": setup_requirements,
"all": dev_requirements + test_requirements + operational_requirements,
}
# Dropped requirements: ruamel.yaml, bottleneck, watchdog
setup(
name='datacube_ows',
description="Open Data Cube Open Web Services",
long_description="""
============
datacube-ows
============
Open Web Services for the Open Datacube.
* Free software: Apache Software License 2.0
* Documentation: https://datacube-ows.readthedocs.io.
Features
--------
* Leverages the power of the Open Data Cube, including support for COGs on S3.
* Supports WMS and WMTS.
* Experimental support for WCS (1.0, 2.0, 2.1).
""",
author="Open Data Cube",
author_email='[email protected]',
url='https://github.com/opendatacube/datacube-ows',
entry_points={
'console_scripts': [
'datacube-ows=datacube_ows.wsgi:main',
'datacube-ows-update=datacube_ows.update_ranges_impl:main',
'datacube-ows-cfg=datacube_ows.cfg_parser_impl:main'
]
},
python_requires=">=3.8.0",
packages=find_packages(exclude=["tests", "tests.cfg", "integration_tests", "integration_tests.cfg"]),
include_package_data=True,
install_requires=install_requirements,
license="Apache Software License 2.0",
zip_safe=False,
keywords='datacube, wms, wcs',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 3.8',
],
setup_requires=setup_requirements,
use_scm_version={
"version_scheme": "post-release",
},
test_suite='tests',
tests_require=test_requirements,
extras_require=extras
)