Skip to content

Commit

Permalink
HARMONY-1781 - Update to harmony-service-lib-py==2.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlittlejohns authored Oct 1, 2024
1 parent 18d12c4 commit 61f1276
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 28 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ The Harmony Regridding Service follows semantic versioning. All notable changes
to this project will be documented in this file. The format is based on [Keep a
Changelog](http://keepachangelog.com/en/1.0.0/).

## [v1.0.4] - 2024-09-30

## Changed
This version of the Harmony Regridding Service updates most dependency versions,
most notably updating to `harmony-service-lib-py==2.0.0`. This is a breaking
change in the package, requiring the renaming of imports in the Harmony
Regridding Service.

## [v1.0.3] - 2024-09-26

## Changed
Expand Down Expand Up @@ -42,6 +50,8 @@ include updated documentation and files outlined by the
For more information on internal releases prior to NASA open-source approval,
see legacy-CHANGELOG.md.

[v1.0.4]: https://github.com/nasa/harmony-regridding-service/releases/tag/1.0.4
[v1.0.3]: https://github.com/nasa/harmony-regridding-service/releases/tag/1.0.3
[v1.0.2]: https://github.com/nasa/harmony-regridding-service/releases/tag/1.0.2
[v1.0.1]: https://github.com/nasa/harmony-regridding-service/releases/tag/1.0.1
[v1.0.0]: https://github.com/nasa/harmony-regridding-service/releases/tag/1.0.0
2 changes: 1 addition & 1 deletion docker/service_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3
1.0.4
2 changes: 1 addition & 1 deletion harmony_regridding_service/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from sys import argv
from typing import List

from harmony import is_harmony_cli, run_cli, setup_cli
from harmony_service_lib import is_harmony_cli, run_cli, setup_cli

from harmony_regridding_service.adapter import RegriddingServiceAdapter

Expand Down
13 changes: 9 additions & 4 deletions harmony_regridding_service/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@
from tempfile import mkdtemp
from typing import Optional

from harmony import BaseHarmonyAdapter
from harmony.message import Source as HarmonySource
from harmony.message_utility import has_self_consistent_grid
from harmony.util import bbox_to_geometry, download, generate_output_filename, stage
from harmony_service_lib import BaseHarmonyAdapter
from harmony_service_lib.message import Source as HarmonySource
from harmony_service_lib.message_utility import has_self_consistent_grid
from harmony_service_lib.util import (
bbox_to_geometry,
download,
generate_output_filename,
stage,
)
from pystac import Asset, Catalog, Item

from harmony_regridding_service.exceptions import (
Expand Down
2 changes: 1 addition & 1 deletion harmony_regridding_service/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from harmony.util import HarmonyException
from harmony_service_lib.util import HarmonyException


class RegridderException(HarmonyException):
Expand Down
6 changes: 3 additions & 3 deletions harmony_regridding_service/regridding_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
from typing import TYPE_CHECKING, Dict, Iterable, List, Set, Tuple

import numpy as np
from harmony.message import Message, Source
from harmony.message_utility import has_dimensions
from harmony.util import generate_output_filename
from harmony_service_lib.message import Message, Source
from harmony_service_lib.message_utility import has_dimensions
from harmony_service_lib.util import generate_output_filename
from netCDF4 import Dataset, Dimension, Group, Variable
from pyresample.ewa import DaskEWAResampler
from pyresample.geometry import AreaDefinition, SwathDefinition
Expand Down
4 changes: 2 additions & 2 deletions harmony_regridding_service/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from os.path import splitext
from typing import Optional

from harmony.message import Message
from harmony.message_utility import rgetattr
from harmony_service_lib.message import Message
from harmony_service_lib.message_utility import rgetattr
from pyproj import CRS
from pyproj.exceptions import CRSError

Expand Down
10 changes: 5 additions & 5 deletions pip_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Open source packages available from PyPI
dask ~= 2024.9.1
earthdata-varinfo ~= 3.0.0
harmony-service-lib ~= 1.1.0
harmony-service-lib ~= 2.0.0
netCDF4 ~= 1.6.5
numpy ~= 1.24.2
netCDF4 ~= 1.6.3
pyproj ~= 3.4.1
pyresample ~= 1.26.1
dask ~= 2023.3.0
pyproj ~= 3.6.1
pyresample ~= 1.30.0
8 changes: 4 additions & 4 deletions tests/pip_test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage~=7.2.2
pre-commit~=3.7.0
pycodestyle~=2.10.0
pylint~=2.17.2
coverage~=7.6.1
pre-commit~=3.8.0
pycodestyle~=2.12.1
pylint~=3.3.1
unittest-xml-reporting~=3.2.0
4 changes: 2 additions & 2 deletions tests/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from unittest import TestCase
from unittest.mock import ANY, patch

from harmony.message import Message
from harmony.util import config
from harmony_service_lib.message import Message
from harmony_service_lib.util import config
from pystac import Catalog

from harmony_regridding_service.adapter import RegriddingServiceAdapter
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_adapter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest import TestCase

from harmony.message import Message
from harmony.util import HarmonyException, config
from harmony_service_lib.message import Message
from harmony_service_lib.util import HarmonyException, config

from harmony_regridding_service.adapter import RegriddingServiceAdapter
from harmony_regridding_service.exceptions import (
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_regridding_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from uuid import uuid4

import numpy as np
from harmony.message import Message
from harmony_service_lib.message import Message
from netCDF4 import Dataset, Variable
from numpy.testing import assert_array_equal
from pyresample.geometry import AreaDefinition
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_utilities.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import TestCase

from harmony.message import Message
from harmony_service_lib.message import Message

from harmony_regridding_service.exceptions import InvalidTargetCRS
from harmony_regridding_service.utilities import (
Expand Down
2 changes: 1 addition & 1 deletion tests/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from collections import namedtuple
from datetime import datetime

from harmony.util import bbox_to_geometry
from harmony_service_lib.util import bbox_to_geometry
from pystac import Asset, Catalog, Item

Granule = namedtuple('Granule', ['url', 'media_type', 'roles'])
Expand Down

0 comments on commit 61f1276

Please sign in to comment.