diff --git a/CHANGELOG.md b/CHANGELOG.md index deb5e63..7632776 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [5.4.1](https://github.com/developmentseed/eoapi-cdk/compare/v5.4.0...v5.4.1) (2023-10-05) + + +### Bug Fixes + +* synchronize pgstac versions -> 0.7.9 across constructs ([c6bb921](https://github.com/developmentseed/eoapi-cdk/commit/c6bb9213f745f1161d193b120083fac1e7943eb5)) + # [5.4.0](https://github.com/developmentseed/eoapi-cdk/compare/v5.3.0...v5.4.0) (2023-09-05) diff --git a/lib/database/bootstrapper_runtime/handler.py b/lib/database/bootstrapper_runtime/handler.py index dc20419..12fb1b5 100644 --- a/lib/database/bootstrapper_runtime/handler.py +++ b/lib/database/bootstrapper_runtime/handler.py @@ -5,8 +5,8 @@ import json import boto3 -import psycopg import httpx +import psycopg from psycopg import sql from psycopg.conninfo import make_conninfo from pypgstac.db import PgstacDB diff --git a/lib/ingestor-api/runtime/dev_requirements.txt b/lib/ingestor-api/runtime/dev_requirements.txt index c7f7a45..4270b89 100644 --- a/lib/ingestor-api/runtime/dev_requirements.txt +++ b/lib/ingestor-api/runtime/dev_requirements.txt @@ -1,2 +1,2 @@ httpx -moto[dynamodb, ssm]>=4.0.9 +moto[dynamodb, ssm]>=4.0.9 \ No newline at end of file diff --git a/lib/ingestor-api/runtime/src/utils.py b/lib/ingestor-api/runtime/src/utils.py index c0cbb1f..34d2cc8 100644 --- a/lib/ingestor-api/runtime/src/utils.py +++ b/lib/ingestor-api/runtime/src/utils.py @@ -2,9 +2,9 @@ import boto3 import pydantic +from fastapi.encoders import jsonable_encoder from pypgstac.db import PgstacDB from pypgstac.load import Methods -from fastapi.encoders import jsonable_encoder from .loader import Loader from .schemas import Ingestion diff --git a/lib/ingestor-api/runtime/tests/test_collection.py b/lib/ingestor-api/runtime/tests/test_collection.py index 6141342..b0ce9ca 100644 --- a/lib/ingestor-api/runtime/tests/test_collection.py +++ b/lib/ingestor-api/runtime/tests/test_collection.py @@ -1,9 +1,10 @@ +import os from unittest.mock import Mock, patch + import pytest +import src.collection as collection from pypgstac.load import Methods from src.utils import DbCreds -import src.collection as collection -import os @pytest.fixture() diff --git a/lib/ingestor-api/runtime/tests/test_registration.py b/lib/ingestor-api/runtime/tests/test_registration.py index 55721de..f83cbe0 100644 --- a/lib/ingestor-api/runtime/tests/test_registration.py +++ b/lib/ingestor-api/runtime/tests/test_registration.py @@ -4,9 +4,8 @@ from typing import TYPE_CHECKING, List from unittest.mock import call, patch -from fastapi.encoders import jsonable_encoder import pytest - +from fastapi.encoders import jsonable_encoder if TYPE_CHECKING: from fastapi.testclient import TestClient diff --git a/lib/ingestor-api/runtime/tests/test_utils.py b/lib/ingestor-api/runtime/tests/test_utils.py index f03bb1d..cdba105 100644 --- a/lib/ingestor-api/runtime/tests/test_utils.py +++ b/lib/ingestor-api/runtime/tests/test_utils.py @@ -1,8 +1,8 @@ from unittest.mock import Mock, patch import pytest -from pypgstac.load import Methods from fastapi.encoders import jsonable_encoder +from pypgstac.load import Methods from src.utils import DbCreds diff --git a/lib/stac-api/runtime/src/handler.py b/lib/stac-api/runtime/src/handler.py index dd79f0b..e4a4745 100644 --- a/lib/stac-api/runtime/src/handler.py +++ b/lib/stac-api/runtime/src/handler.py @@ -4,6 +4,7 @@ import asyncio import os + from mangum import Mangum from .app import app diff --git a/lib/tipg-api/runtime/src/handler.py b/lib/tipg-api/runtime/src/handler.py index cdc480d..51f2a18 100644 --- a/lib/tipg-api/runtime/src/handler.py +++ b/lib/tipg-api/runtime/src/handler.py @@ -4,21 +4,20 @@ import asyncio import os + from mangum import Mangum from utils import load_pgstac_secret load_pgstac_secret(os.environ["PGSTAC_SECRET_ARN"]) # required for the below imports -# skipping linting rule that wants all imports at the top -from tipg.main import app # noqa: E402 from tipg.collections import register_collection_catalog # noqa: E402 from tipg.database import connect_to_db # noqa: E402 -from tipg.settings import ( # noqa: E402 - CustomSQLSettings, # noqa: E402 - DatabaseSettings, # noqa: E402 - PostgresSettings, # noqa: E402 -) # noqa: E402 +# skipping linting rule that wants all imports at the top +from tipg.main import app # noqa: E402 +from tipg.settings import CustomSQLSettings # noqa: E402 +from tipg.settings import DatabaseSettings # noqa: E402 +from tipg.settings import PostgresSettings # noqa: E402; noqa: E402 postgres_settings = PostgresSettings() db_settings = DatabaseSettings() diff --git a/lib/tipg-api/runtime/src/utils.py b/lib/tipg-api/runtime/src/utils.py index f9a8ccd..dadb49e 100644 --- a/lib/tipg-api/runtime/src/utils.py +++ b/lib/tipg-api/runtime/src/utils.py @@ -1,8 +1,9 @@ import base64 import json -import boto3 import os +import boto3 + def load_pgstac_secret(secret_name: str): """Retrieve secrets from AWS Secrets Manager diff --git a/lib/titiler-pgstac-api/runtime/src/handler.py b/lib/titiler-pgstac-api/runtime/src/handler.py index 2b5a987..8f8880c 100644 --- a/lib/titiler-pgstac-api/runtime/src/handler.py +++ b/lib/titiler-pgstac-api/runtime/src/handler.py @@ -4,6 +4,7 @@ import asyncio import os + from mangum import Mangum from utils import get_secret_dict @@ -20,8 +21,8 @@ } ) -from titiler.pgstac.main import app # noqa: E402 from titiler.pgstac.db import connect_to_db # noqa: E402 +from titiler.pgstac.main import app # noqa: E402 @app.on_event("startup") diff --git a/lib/titiler-pgstac-api/runtime/src/utils.py b/lib/titiler-pgstac-api/runtime/src/utils.py index ec33300..5279139 100644 --- a/lib/titiler-pgstac-api/runtime/src/utils.py +++ b/lib/titiler-pgstac-api/runtime/src/utils.py @@ -1,5 +1,6 @@ import base64 import json + import boto3 diff --git a/package.json b/package.json index 2f257d0..d44b101 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eoapi-cdk", - "version": "5.4.0", + "version": "5.4.1", "description": "A set of constructs deploying pgSTAC with CDK", "main": "lib/index.js", "types": "lib/index.d.ts",