Skip to content

Commit c6bb921

Browse files
committed
fix: synchronize pgstac versions -> 0.7.9 across constructs
Affects stac-api, ingestor, bootstrapper
1 parent a1081a2 commit c6bb921

File tree

14 files changed

+26
-24
lines changed

14 files changed

+26
-24
lines changed

lib/bootstrapper/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function hasVpc(
1717
return (instance as aws_rds.DatabaseInstance).vpc !== undefined;
1818
}
1919

20-
const DEFAULT_PGSTAC_VERSION = "0.6.13";
20+
const DEFAULT_PGSTAC_VERSION = "0.7.9";
2121

2222
/**
2323
* Bootstraps a database instance, installing pgSTAC onto the database.

lib/bootstrapper/runtime/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import json
66

77
import boto3
8-
import psycopg
98
import httpx
9+
import psycopg
1010
from psycopg import sql
1111
from psycopg.conninfo import make_conninfo
1212
from pypgstac.db import PgstacDB
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
httpx
2-
moto[dynamodb, ssm]>=4.0.9
2+
moto[dynamodb, ssm]>=4.0.9
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
Authlib==1.0.1
2-
cachetools==5.1.0
32
fastapi>=0.75.1
43
mangum>=0.15.0
54
orjson>=3.6.8
65
psycopg[binary,pool]>=3.0.15
76
pydantic_ssm_settings>=0.2.0
87
pydantic>=1.9.0
9-
pypgstac==0.6.13
8+
pypgstac==0.7.9
109
requests>=2.27.1
1110
# Waiting for https://github.com/stac-utils/stac-pydantic/pull/116
1211
stac-pydantic @ git+https://github.com/alukach/stac-pydantic.git@patch-1

lib/ingestor-api/runtime/src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import boto3
44
import pydantic
5+
from fastapi.encoders import jsonable_encoder
56
from pypgstac.db import PgstacDB
67
from pypgstac.load import Methods
7-
from fastapi.encoders import jsonable_encoder
88

99
from .loader import Loader
1010
from .schemas import Ingestion

lib/ingestor-api/runtime/tests/test_collection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import os
12
from unittest.mock import Mock, patch
3+
24
import pytest
5+
import src.collection as collection
36
from pypgstac.load import Methods
47
from src.utils import DbCreds
5-
import src.collection as collection
6-
import os
78

89

910
@pytest.fixture()

lib/ingestor-api/runtime/tests/test_registration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
from typing import TYPE_CHECKING, List
55
from unittest.mock import call, patch
66

7-
from fastapi.encoders import jsonable_encoder
87
import pytest
9-
8+
from fastapi.encoders import jsonable_encoder
109

1110
if TYPE_CHECKING:
1211
from fastapi.testclient import TestClient

lib/ingestor-api/runtime/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from unittest.mock import Mock, patch
22

33
import pytest
4-
from pypgstac.load import Methods
54
from fastapi.encoders import jsonable_encoder
5+
from pypgstac.load import Methods
66
from src.utils import DbCreds
77

88

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
mangum==0.15.1
2-
stac-fastapi.api==2.4.1
3-
stac-fastapi.extensions==2.4.1
4-
stac-fastapi.pgstac==2.4.1
5-
stac-fastapi.types==2.4.1
2+
stac-fastapi.api==2.4.8
3+
stac-fastapi.extensions==2.4.8
4+
stac-fastapi.pgstac==2.4.8
5+
stac-fastapi.types==2.4.8
66
# https://github.com/stac-utils/stac-fastapi/pull/466
77
pygeoif==0.7
88
starlette_cramjam

lib/stac-api/runtime/src/handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import asyncio
66
import os
7+
78
from mangum import Mangum
89

910
from .app import app

0 commit comments

Comments
 (0)