Skip to content

Commit e4fb34f

Browse files
authored
Prepare for release (#517)
* increase version * update hooks * adjust changelog * rerun hooks with a clean cache
1 parent ec0d592 commit e4fb34f

8 files changed

+58
-64
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ repos:
1313
- id: debug-statements
1414

1515
- repo: https://github.com/psf/black
16-
rev: 23.11.0
16+
rev: 23.12.1
1717
hooks:
1818
- id: black
1919
language_version: python3
2020

2121
- repo: https://github.com/charliermarsh/ruff-pre-commit
22-
rev: "v0.1.5"
22+
rev: "v0.1.11"
2323
hooks:
2424
- id: ruff
2525

2626
- repo: https://github.com/nbQA-dev/nbQA
27-
rev: 1.7.0
27+
rev: 1.7.1
2828
hooks:
2929
- id: nbqa-black
3030
- id: nbqa-ruff

CHANGELOG.MD

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [Version 3.10.1] - 2024-01-10
2+
3+
- Improved documentation for Copernicus Data Space Ecosystem.
4+
- Restrict numpy version to <2 in anticipation of numpy 2.0 release.
5+
6+
17
## [Version 3.10.0] - 2023-12-08
28

39
- Adjust session caching to mirror changes to the core services. Older version might no longer correctly cache sessions.

examples/process_request.ipynb

+7-9
Original file line numberDiff line numberDiff line change
@@ -989,15 +989,13 @@
989989
"request_raw_dict = {\n",
990990
" \"input\": {\n",
991991
" \"bounds\": {\"properties\": {\"crs\": betsiboka_bbox.crs.opengis_string}, \"bbox\": list(betsiboka_bbox)},\n",
992-
" \"data\": [\n",
993-
" {\n",
994-
" \"type\": \"S2L1C\",\n",
995-
" \"dataFilter\": {\n",
996-
" \"timeRange\": {\"from\": \"2020-06-01T00:00:00Z\", \"to\": \"2020-06-30T00:00:00Z\"},\n",
997-
" \"mosaickingOrder\": \"leastCC\",\n",
998-
" },\n",
999-
" }\n",
1000-
" ],\n",
992+
" \"data\": [{\n",
993+
" \"type\": \"S2L1C\",\n",
994+
" \"dataFilter\": {\n",
995+
" \"timeRange\": {\"from\": \"2020-06-01T00:00:00Z\", \"to\": \"2020-06-30T00:00:00Z\"},\n",
996+
" \"mosaickingOrder\": \"leastCC\",\n",
997+
" },\n",
998+
" }],\n",
1001999
" },\n",
10021000
" \"output\": {\n",
10031001
" \"width\": betsiboka_size[0],\n",

examples/process_request_cdse.ipynb

+7-9
Original file line numberDiff line numberDiff line change
@@ -941,15 +941,13 @@
941941
"request_raw_dict = {\n",
942942
" \"input\": {\n",
943943
" \"bounds\": {\"properties\": {\"crs\": betsiboka_bbox.crs.opengis_string}, \"bbox\": list(betsiboka_bbox)},\n",
944-
" \"data\": [\n",
945-
" {\n",
946-
" \"type\": \"S2L1C\",\n",
947-
" \"dataFilter\": {\n",
948-
" \"timeRange\": {\"from\": \"2020-06-01T00:00:00Z\", \"to\": \"2020-06-30T00:00:00Z\"},\n",
949-
" \"mosaickingOrder\": \"leastCC\",\n",
950-
" },\n",
951-
" }\n",
952-
" ],\n",
944+
" \"data\": [{\n",
945+
" \"type\": \"S2L1C\",\n",
946+
" \"dataFilter\": {\n",
947+
" \"timeRange\": {\"from\": \"2020-06-01T00:00:00Z\", \"to\": \"2020-06-30T00:00:00Z\"},\n",
948+
" \"mosaickingOrder\": \"leastCC\",\n",
949+
" },\n",
950+
" }],\n",
953951
" },\n",
954952
" \"output\": {\n",
955953
" \"width\": betsiboka_size[0],\n",

sentinelhub/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version of the sentinelhub package."""
22

3-
__version__ = "3.10.0"
3+
__version__ = "3.10.1"

tests/api/batch/test_process.py

+13-15
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,21 @@ def test_create_and_run_batch_request(batch_client: SentinelHubBatch, requests_m
6767
request_id = "mocked-id"
6868
requests_mock.post(
6969
"/api/v1/batch/process",
70-
[
71-
{
72-
"json": {
73-
"id": request_id,
74-
"processRequest": {
75-
"input": {
76-
"bounds": {
77-
"bbox": list(bbox),
78-
"properties": {"crs": "http://www.opengis.net/def/crs/OGC/1.3/CRS84"},
79-
}
70+
[{
71+
"json": {
72+
"id": request_id,
73+
"processRequest": {
74+
"input": {
75+
"bounds": {
76+
"bbox": list(bbox),
77+
"properties": {"crs": "http://www.opengis.net/def/crs/OGC/1.3/CRS84"},
8078
}
81-
},
82-
"tileCount": 42,
83-
"status": "CREATED",
84-
}
79+
}
80+
},
81+
"tileCount": 42,
82+
"status": "CREATED",
8583
}
86-
],
84+
}],
8785
)
8886

8987
batch_request = batch_client.create(

tests/api/test_byoc.py

+15-19
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,13 @@ def collection_fixture() -> JsonDict:
4242
"maxMetersPerPixel": 800.0,
4343
"extent": {
4444
"type": "Polygon",
45-
"coordinates": [
46-
[
47-
[13.293347498, 45.366449953],
48-
[13.293347498, 46.897693758],
49-
[16.575424424, 46.897693758],
50-
[16.575424424, 45.366449953],
51-
[13.293347498, 45.366449953],
52-
]
53-
],
45+
"coordinates": [[
46+
[13.293347498, 45.366449953],
47+
[13.293347498, 46.897693758],
48+
[16.575424424, 46.897693758],
49+
[16.575424424, 45.366449953],
50+
[13.293347498, 45.366449953],
51+
]],
5452
},
5553
"hasSensingTimes": "NO",
5654
},
@@ -82,17 +80,15 @@ def tile_fixture() -> JsonDict:
8280
"coverGeometry": {
8381
"crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:EPSG::32633"}},
8482
"type": "MultiPolygon",
85-
"coordinates": [
83+
"coordinates": [(
8684
(
87-
(
88-
(369999.99998228427, 5025000.000464492),
89-
(620000.000010147, 5025000.000464773),
90-
(620000.000012391, 5195000.000585059),
91-
(369999.9999783558, 5195000.00058473),
92-
(369999.99998228427, 5025000.000464492),
93-
),
94-
)
95-
],
85+
(369999.99998228427, 5025000.000464492),
86+
(620000.000010147, 5025000.000464773),
87+
(620000.000012391, 5195000.000585059),
88+
(369999.9999783558, 5195000.00058473),
89+
(369999.99998228427, 5025000.000464492),
90+
),
91+
)],
9692
},
9793
"created": "2020-06-22T12:33:36.081000Z",
9894
"sensingTime": None,

tests/download/test_sentinelhub_statistical_client.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,13 @@ def test_statistical_client_runs_out_of_retries(download_request: DownloadReques
6969

7070
requests_mock.post(
7171
url="/api/v1/statistics",
72-
response_list=[
73-
{
74-
"json": {
75-
"data": [
76-
{"interval": {"from": "2020-01-20", "to": "2020-01-20"}, "error": {"type": "EXECUTION_ERROR"}},
77-
]
78-
}
72+
response_list=[{
73+
"json": {
74+
"data": [
75+
{"interval": {"from": "2020-01-20", "to": "2020-01-20"}, "error": {"type": "EXECUTION_ERROR"}},
76+
]
7977
}
80-
],
78+
}],
8179
)
8280

8381
with pytest.raises(DownloadFailedException) as exception_info:

0 commit comments

Comments
 (0)