-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathsetup.py
More file actions
201 lines (189 loc) · 6.91 KB
/
Copy pathsetup.py
File metadata and controls
201 lines (189 loc) · 6.91 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
from setuptools import setup, find_packages
# adaptation_path = "folder/"
setup(
name="opera_pcm",
version="3.2.0",
packages=find_packages(),
python_requires=">=3.12",
py_modules=["rtc_utils"], # Include standalone module
install_requires=[
"smart_open",
"pandas<2.3.0",
"h5py"
],
extras_require={
"docker": [
# The list of dependencies that are additionally installed as part of the opera-pcm docker image.
# See ./docker/Dockerfile
"more-itertools",
"pytest>=7.4.4,<8.0",
"scripttest",
"mock",
"mockito",
"flake8",
"pytest-cov",
"flake8-junit-report",
"flake8-string-format",
"xmltodict",
"yamale==3.0.6",
"ruamel.yaml",
"elasticmock",
"geopandas",
"smart_open",
"fastparquet", # To parse parquet files which is the format for DIST-S1 database
"pytest-asyncio",
"pytest-mock",
# hysds_commons already requires `elasticsearch>=7.0.0,<7.14.0` and
# `numpy<2.0.0` (elastic/elasticsearch-py#2646: ES 7.13.4 imports
# `np.float_` at module top, which numpy 2.0 removed). Repeat the
# pins here so the [docker] install can't transitively pull in a
# newer numpy/elasticsearch via geopandas/xarray/etc.
"numpy<2.0.0",
"elasticsearch>=7.0.0,<7.14.0",
"elasticsearch[async]",
"mgrs",
"pyproj",
"python-dateutil",
"validators",
"cachetools==5.2.0",
"boto3-stubs",
"boto3-stubs-lite[essential]", # for ec2, s3, rds, lambda, sqs, dynamo and cloudformation
"aws-requests-auth",
# for ECMWF merger
"rioxarray",
"boto3",
"backoff",
"netCDF4",
"cfgrib",
"dask",
"python-dotenv"
],
"disp_s1_status": [
# The list of dependencies required to run the disp_s1_status tool.
"folium",
"branca",
],
"subscriber": [
# The list of dependencies required to run the data_subscriber module standalone.
"boto3",
"boto3-stubs",
"boto3-stubs-lite[essential]", # for ec2, s3, rds, lambda, sqs, dynamo and cloudformation
"python-dateutil",
"elasticsearch==7.13.4",
"elasticsearch[async]>=7.13.4",
"more-itertools==8.13.0",
"requests==2.*",
"validators",
"cachetools==5.2.0",
"geopandas",
"pyproj",
"fastparquet",
# for additional daac subscriber test utilities that are executed from pytest
# * DSWx-S1 trigger logic tests
"pytest>=7.4,<8.0",
"pytest-mock>=3.15.1",
"pytest-asyncio==0.20.3",
"pytest-cov==4.0.0",
],
"test": [
# The list of dependencies required to run tests locally.
# Also doubles as list of dependencies to run all modules of the codebase outside of a cloud environment.
"prov-es@https://github.com/hysds/prov_es/archive/refs/tags/v0.3.0.tar.gz",
"osaka@https://github.com/hysds/osaka/archive/refs/tags/v1.3.2.tar.gz",
"hysds-commons@https://github.com/hysds/hysds_commons/archive/refs/tags/v2.4.1.tar.gz",
"hysds@https://github.com/hysds/hysds/archive/refs/tags/v3.3.2.tar.gz",
"chimera@https://github.com/hysds/chimera/archive/refs/tags/v3.0.0.tar.gz",
# "pcm-commons@git+https://<git_oauth_token_here>@github.jpl.nasa.gov/IEMS-SDS/pcm_commons.git@3.1.2", # install other dependencies first.
"pyyaml",
"backoff",
"yamale",
"jinja2",
"boto3",
"botocore",
"click==8.1.3",
# "GDAL==3.10.2", # install native gdal first. `brew install gdal` on macOS.
"Shapely",
"elasticsearch==7.13.4",
"elasticsearch[async]>=7.13.4",
"requests==2.*",
"pytest>=7.4,<8.0",
"pytest-mock>=3.15.1",
"pytest-asyncio==0.20.3",
"pytest-cov==4.0.0",
"mgrs",
"pyproj",
"validators",
"cachetools==5.2.0",
"matplotlib",
"numpy >= 1.2.4, < 2.0.0",
"more-itertools==8.13.0",
"ruamel.yaml" # NOTE: deployed instances use ruamel-yaml-conda
],
"integration": [
# The list of dependencies required for the integration test module
"pytest>=7.4,<8.0",
"boto3",
"boto3-stubs-lite[essential]", # for ec2, s3, rds, lambda, sqs, dynamo and cloudformation
"boto3-stubs[sns]",
"elasticsearch==7.13.4",
"elasticsearch-dsl==7.3.0",
"requests==2.*",
"backoff==1.11.1",
"python-dotenv==0.20.0",
"pytest-xdist>=3.8.0",
"pytest-xdist[psutil]",
"filelock==3.6.0",
"opensearch-py==2.8.*"
],
"benchmark": [
# The list of dependencies required for the benchmarking module
"boto3-stubs",
"boto3-stubs-lite[essential]", # for ec2, s3, rds, lambda, sqs, dynamo and cloudformation
"boto3-stubs[autoscaling]",
"botocore",
"elasticsearch[async]",
"more-itertools==8.13.0",
'pytest-asyncio==0.20.3'
],
"audit": [
# The list of dependencies required for the (internal) audit tools.
"elasticsearch[async]",
"more-itertools",
"python-dateutil",
"python-dotenv"
],
"cmr_audit": [
# The list of dependencies required for the (CMR) audit tools.
"aiohttp[speedups]",
"backoff",
"compact-json",
"Deprecated",
"elasticsearch[async]",
"fastparquet",
"mgrs",
"more-itertools",
"opensearch-py",
"python-dateutil",
"python-dotenv",
"requests",
# "GDAL==3.10.2", # install native gdal first. `brew install gdal` on macOS.
"pyyaml",
"jinja2",
"boto3",
"mypy-boto3-s3",
],
"cnm_check": [
# The list of dependencies required for the cnm_check tool.
"compact-json",
"elasticsearch[async]",
"more-itertools",
"python-dateutil",
"python-dotenv"
],
"subscriber_client": [
"more-itertools",
"python-dateutil",
# "GDAL==3.10.2", # install native gdal first. `brew install gdal` on macOS.
]
}
)