-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (156 loc) · 3.76 KB
/
pyproject.toml
File metadata and controls
170 lines (156 loc) · 3.76 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
[project]
name = "datacube_ows"
dynamic = ["version"]
description = "Open Data Cube Open Web Services"
authors = [
{name = "Open Data Cube", email = "earth.observation@ga.gov.au"},
]
dependencies = [
"Pillow>=10.2.0",
"affine",
"antimeridian",
"click",
"datacube[performance,s3]>=1.9.14,<1.10.0",
"deepdiff",
"fsspec",
"geoalchemy2",
"lark",
"numpy>=1.22",
"pyows",
"python_dateutil",
"python_slugify",
"rasterio",
"regex",
"requests",
"scipy",
"timezonefinder!=6.6.0",
"urllib3",
"xarray",
]
requires-python = ">=3.11.0"
readme = "README.rst"
license = "Apache-2.0"
keywords = ["datacube", "wms", "wcs"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://github.com/opendatacube/datacube-ows"
[dependency-groups]
doc = [
"datacube-ows[webserver]",
"Sphinx>=8.2.3",
"sphinx-click",
]
[project.optional-dependencies]
dev = [
"datacube-ows[webserver]",
"mypy",
"pydevd-pycharm~=252.26830.99",
"pylint",
"ruff",
"ty",
"types-python-dateutil",
"types-PyYAML", # Used by metadata_importer.py.
"types-requests",
]
ops = [
"blinker",
"datacube-ows[webserver]",
"gunicorn[gevent]>=22.0.0",
"prometheus_client",
"psycopg2",
"psycopg[c]",
"sentry_sdk",
]
postgres = ["psycopg2"]
setup = ["setuptools", "setuptools_scm"]
test = [
"flask-cors",
"fsspec",
"lxml",
"owslib>0.29.2",
"psycopg2",
"pytest",
"pytest_cov",
"pytest_localserver",
"pytest_mock",
]
webserver = [
"babel",
"flask",
"flask-babel>3.0.0",
"matplotlib",
"prometheus_flask_exporter",
]
all = ["datacube_ows[dev,ops,test]"]
[project.scripts]
datacube-ows = "datacube_ows.wsgi:main"
datacube-ows-cfg = "datacube_ows.cfg_parser_impl:main"
datacube-ows-update = "datacube_ows.update_ranges:main"
[project.entry-points."datacube_ows.plugins.index"]
postgis = "datacube_ows.index.postgis.api:ows_index_driver_init"
postgres = "datacube_ows.index.postgres.api:ows_index_driver_init"
[tool.mypy]
python_version = "3.11"
allow_redefinition = true
enable_error_code = ["explicit-override"]
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pytest.ini_options]
console_output_style = "times"
[tool.ruff]
extend-exclude = [
"datacube_ows/_version.py",
"docs/conf.py",
"licenseheaders.py",
]
[tool.ruff.lint]
future-annotations = true
select = [
"A", # Don't shadow built-ins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"EXE", # flake8-executable
"FLY", # flynt
"FURB", # refurb
"I", # isort
"RET", # flake8-ret
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warnings
"F", # pyflakes
"T10", # flake8-debugger
"TC", # Import types in TYPE_CHECKING block
]
ignore = [
"B026",
"E501",
"RUF012",
"RUF022",
]
[tool.ruff.lint.per-file-ignores]
# Multiline string, no good place for adding a noqa.
"integration_tests/cfg/ows_test_cfg.py" = ["RUF001"]
[tool.ruff.lint.pycodestyle]
max-line-length = 120
[build-system]
requires = ["setuptools>=69", "setuptools_scm[toml]>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
exclude = ["integration_tests", "tests"]
include = ["datacube*"]
[tool.setuptools_scm]
write_to = "datacube_ows/_version.py"
fallback_version = "1.9.13"
version_scheme = "post-release"