Skip to content

Commit 144f2ea

Browse files
Merge pull request #157 from stac-utils/patch/avoid-pydantic-settings-bug
add extra=ignore to pydantic settings
2 parents 2505efe + 933fc6f commit 144f2ea

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
# Check for updates to GitHub Actions every week
10+
interval: "weekly"
11+
groups:
12+
all:
13+
patterns:
14+
- "*"

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
pull_request:
1717
env:
18-
LATEST_PY_VERSION: '3.10'
18+
LATEST_PY_VERSION: '3.12'
1919

2020
jobs:
2121
tests:
@@ -27,6 +27,7 @@ jobs:
2727
- '3.9'
2828
- '3.10'
2929
- '3.11'
30+
- '3.12'
3031

3132
steps:
3233
- uses: actions/checkout@v3

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.9",
2525
"Programming Language :: Python :: 3.10",
2626
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
2728
"Topic :: Scientific/Engineering :: GIS",
2829
]
2930
dependencies = [

titiler/pgstac/dependencies.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def get_collection_id(pool: ConnectionPool, collection_id: str) -> str:
6464
metadata = model.Metadata(
6565
name=f"Mosaic for '{collection_id}' Collection",
6666
bounds=bbox[0],
67-
# TODO: use asset extension to populate the `assets` attribute
67+
# TODO:
68+
# - use the `asset`` extension to populate the `assets` attribute
69+
# - use the `render` extension to populate the `defaults` attribute
6870
)
6971

7072
cursor.row_factory = class_row(model.Search)
@@ -75,7 +77,7 @@ def get_collection_id(pool: ConnectionPool, collection_id: str) -> str:
7577
metadata.model_dump_json(exclude_none=True),
7678
),
7779
)
78-
search_info = cursor.fetchone()
80+
search_info: model.Search = cursor.fetchone()
7981

8082
return search_info.id
8183

titiler/pgstac/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ class CacheSettings(BaseSettings):
9595
# Whether or not caching is enabled
9696
disable: bool = False
9797

98-
model_config = {"env_prefix": "TITILER_PGSTAC_CACHE_", "env_file": ".env"}
98+
model_config = {
99+
"env_prefix": "TITILER_PGSTAC_CACHE_",
100+
"env_file": ".env",
101+
"extra": "ignore",
102+
}
99103

100104
@model_validator(mode="after")
101105
def check_enable(self):

0 commit comments

Comments
 (0)