Skip to content

Commit

Permalink
Prep for 1.8.40 release (#1013)
Browse files Browse the repository at this point in the history
* Increment default version number.

* Add test for Robbi's s3 URL displaying PR.

* Update HISTORY.rst for 1.8.40 release.

* Lintage.

* Fix broken date call.

* More lintage.

(cherry picked from commit 26f7002)
  • Loading branch information
SpacemanPaul committed May 13, 2024
1 parent d1ac065 commit 193bcca
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
14 changes: 14 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ History

Datacube-ows version 1.8.x indicates that it is designed work with datacube-core versions 1.8.x.

1.8.40 (2024-04-29)
-------------------

Bug fix release

* Loading now uses `skip_broken_datasets=True` by default. (#1001)
* Bump base osgeo/gdal docker image version. (#1003)
* Update versions of several upstream packages to avoid known security issues (#1004, #1005, #1008)
* pre-commit autoupdate (#1006)
* Make S3 URL rewriting work with metadata indexed from STAC (#1011)
* Update HISTORY.rst and increment default version for release and some tests. (#1013)

This release includes contributions from @whatnick, @pjonsson, @SpacemanPaul, and various automatic updater bots.

1.8.39 (2024-03-13)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion datacube_ows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
try:
from ._version import version as __version__
except ImportError:
__version__ = "1.8.39+?"
__version__ = "1.8.40?"
9 changes: 7 additions & 2 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ def __init__(self, uris):
"s3://test-bucket/hello_world/data.yaml"
])
d2 = TestDataset([
"s3://test-bucket/hello.word/foo.bar/hello.test.yaml",
"s3://test-bucket/hello.word/foo.bar/hello-test.yaml"
"s3://test-bucket/hello.word/foo.bar/hello.test.yaml",
"s3://test-bucket/hello.word/foo.bar/hello-test.yaml"
])
d3 = TestDataset([
"s3://test-bucket/this.is/from.stac/hello.test.json",
])

datasets.append(d1)
datasets.append(d2)
datasets.append(d3)

class DataSetMock:
def __init__(self, datasets):
Expand Down Expand Up @@ -69,6 +73,7 @@ def test_s3_browser_uris(s3_url_datasets):

assert "http://test-bucket.s3-website-ap-southeast-2.amazonaws.com/?prefix=hello_world" in uris
assert "http://test-bucket.s3-website-ap-southeast-2.amazonaws.com/?prefix=hello.word/foo.bar" in uris
assert "http://test-bucket.s3-website-ap-southeast-2.amazonaws.com/?prefix=this.is/from.stac" in uris

# TODO: read_data is now a method of the DataStacker class. This test needs a rewrite.
# @patch('xarray.Dataset')
Expand Down

0 comments on commit 193bcca

Please sign in to comment.