File tree Expand file tree Collapse file tree 3 files changed +17
-13
lines changed Expand file tree Collapse file tree 3 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ services:
45
45
46
46
database :
47
47
container_name : stac-db
48
- image : ghcr.io/stac-utils/pgstac:v0.7.10
48
+ image : ghcr.io/stac-utils/pgstac:v0.8.5
49
49
environment :
50
50
- POSTGRES_USER=username
51
51
- POSTGRES_PASSWORD=password
Original file line number Diff line number Diff line change 8
8
install_requires = [
9
9
"attrs" ,
10
10
"orjson" ,
11
- "pydantic[dotenv]>=1.10.8" , # https://github.com/pydantic/pydantic/issues/5821
12
- "stac_pydantic==2.0.*" ,
13
- "stac-fastapi.types~=2.5.5.post1" ,
14
- "stac-fastapi.api~=2.5.5.post1" ,
15
- "stac-fastapi.extensions~=2.5.5.post1" ,
11
+ "pydantic" ,
12
+ "stac_pydantic==3.0.*" ,
13
+ # "stac-fastapi.api~=3.0",
14
+ # "stac-fastapi.extensions~=3.0",
15
+ # "stac-fastapi.types~=3.0",
16
+ # For now we use latest commit in master
17
+ "stac-fastapi.api @ git+https://github.com/stac-utils/stac-fastapi/@e7f82d6996af0f28574329d57f5a5e90431d66bb#egg=stac-fastapi.api&subdirectory=stac_fastapi/api" ,
18
+ "stac-fastapi.extensions @ git+https://github.com/stac-utils/stac-fastapi/@e7f82d6996af0f28574329d57f5a5e90431d66bb#egg=stac-fastapi.extensions&subdirectory=stac_fastapi/extensions" ,
19
+ "stac-fastapi.types @ git+https://github.com/stac-utils/stac-fastapi/@e7f82d6996af0f28574329d57f5a5e90431d66bb#egg=stac-fastapi.types&subdirectory=stac_fastapi/types" ,
16
20
"asyncpg" ,
17
21
"buildpg" ,
18
22
"brotli_asgi" ,
19
23
"pygeofilter>=0.2" ,
20
- "pypgstac==0.7 .*" ,
24
+ "pypgstac==0.8 .*" ,
21
25
]
22
26
23
27
extra_reqs = {
24
28
"dev" : [
25
29
"pystac[validation]" ,
26
- "pypgstac[psycopg]==0.7 .*" ,
30
+ "pypgstac[psycopg]==0.8 .*" ,
27
31
"pytest-postgresql" ,
28
32
"pytest" ,
29
33
"pytest-cov" ,
Original file line number Diff line number Diff line change 4
4
from urllib .parse import quote
5
5
6
6
from pydantic import BaseModel , Extra
7
+ from pydantic_settings import SettingsConfigDict
7
8
from stac_fastapi .types .config import ApiSettings
8
9
9
10
from stac_fastapi .pgstac .types .base_item_cache import (
@@ -58,7 +59,7 @@ class Settings(ApiSettings):
58
59
postgres_pass : str
59
60
postgres_host_reader : str
60
61
postgres_host_writer : str
61
- postgres_port : str
62
+ postgres_port : int
62
63
postgres_dbname : str
63
64
64
65
db_min_conn_size : int = 10
@@ -89,7 +90,6 @@ def testing_connection_string(self):
89
90
"""Create testing psql connection string."""
90
91
return f"postgresql://{ self .postgres_user } :{ quote (self .postgres_pass )} @{ self .postgres_host_writer } :{ self .postgres_port } /pgstactestdb"
91
92
92
- class Config (ApiSettings .Config ):
93
- """Model config."""
94
-
95
- env_nested_delimiter = "__"
93
+ model_config = SettingsConfigDict (
94
+ ** {** ApiSettings .model_config , ** {"env_nested_delimiter" : "__" }}
95
+ )
You can’t perform that action at this time.
0 commit comments