Skip to content

Commit

Permalink
update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jan 16, 2025
1 parent 438fbc2 commit 5ea0e00
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 115 deletions.
228 changes: 124 additions & 104 deletions poetry.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "podaac-tig"
version = "0.13.0-alpha.3"
version = "0.13.0a3"
description = "Tool for Image Generation (TIG)"
authors = ["podaac-tva <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -16,32 +16,32 @@ packages = [

[tool.poetry.dependencies]
python = ">=3.10, <3.13"
numpy = "^1.26.4"
numpy = "^2.2.1"
matplotlib = "^3.8.3"
netCDF4 = "^1.6.5"
xarray = "^2024.2.0"
xarray = "^2025.1.1"
imageio = "^2.34.0"
pygeogrids = "^0.5.0"
cumulus-process = "^1.3.0"
cumulus-process = "^1.4.0"
requests = "^2.31.0"
click = "^8.1.7"
scipy = "^1.12.0"

[tool.poetry.dev-dependencies]
pytest = "^8.0.1"
flake8 = "^7.0.0"
pytest-cov = "^5"
pytest-cov = "^6"
pylint = "^3.0.3"
Sphinx = "^7.2.6"
moto = "^4.2.14"
moto = "^5.0.26"
mock = "^5.1.0"

[tool.poetry.scripts]
tig = 'podaac.tig.cli:main'
generate_hitide_config = 'podaac.tig.generate_hitide_config:generate_hitide_config_command'

[tool.poetry.group.dev.dependencies]
scikit-image = "^0.22.0"
scikit-image = "^0.25.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions tests/test_lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from jsonschema import validate

from podaac.lambda_handler import lambda_handler
from moto import mock_s3
from moto import mock_aws
from mock import patch, Mock

file_schema = {
Expand Down Expand Up @@ -87,7 +87,7 @@ def test_get_file_type():
assert file_type == 'data'


@mock_s3
@mock_aws
def test_lambda_handler_upload():
"""Test lambda handler function upload_file_to_s3 uploads files to s3"""

Expand All @@ -108,7 +108,7 @@ def test_lambda_handler_upload():
aws_s3.Object(bucket, os.path.basename(nc_file)).load()


@mock_s3
@mock_aws
def test_get_config():
"""Test lambda handler function upload_file_to_s3 uploads files to s3"""
aws_s3 = boto3.resource('s3', region_name='us-east-1')
Expand Down Expand Up @@ -184,7 +184,7 @@ def __init__(self, aws_request_id):
self.aws_request_id = aws_request_id


@mock_s3
@mock_aws
@patch('requests.get')
def test_lambda_handler_cumulus(mocked_get):
"""Test lambda handler to run through cumulus handler"""
Expand Down

0 comments on commit 5ea0e00

Please sign in to comment.