diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..4fa1bd99 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" + groups: + all: + patterns: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cafe998..f1ba6c6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ on: pull_request: env: - LATEST_PY_VERSION: '3.10' + LATEST_PY_VERSION: '3.12' jobs: tests: @@ -27,6 +27,7 @@ jobs: - '3.9' - '3.10' - '3.11' + - '3.12' steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index c5c1a5da..03516b5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: GIS", ] dependencies = [ diff --git a/titiler/pgstac/dependencies.py b/titiler/pgstac/dependencies.py index 518400cc..4b1db3c1 100644 --- a/titiler/pgstac/dependencies.py +++ b/titiler/pgstac/dependencies.py @@ -64,7 +64,9 @@ def get_collection_id(pool: ConnectionPool, collection_id: str) -> str: metadata = model.Metadata( name=f"Mosaic for '{collection_id}' Collection", bounds=bbox[0], - # TODO: use asset extension to populate the `assets` attribute + # TODO: + # - use the `asset`` extension to populate the `assets` attribute + # - use the `render` extension to populate the `defaults` attribute ) cursor.row_factory = class_row(model.Search) @@ -75,7 +77,7 @@ def get_collection_id(pool: ConnectionPool, collection_id: str) -> str: metadata.model_dump_json(exclude_none=True), ), ) - search_info = cursor.fetchone() + search_info: model.Search = cursor.fetchone() return search_info.id diff --git a/titiler/pgstac/settings.py b/titiler/pgstac/settings.py index ede88a00..8cbe61b3 100644 --- a/titiler/pgstac/settings.py +++ b/titiler/pgstac/settings.py @@ -95,7 +95,11 @@ class CacheSettings(BaseSettings): # Whether or not caching is enabled disable: bool = False - model_config = {"env_prefix": "TITILER_PGSTAC_CACHE_", "env_file": ".env"} + model_config = { + "env_prefix": "TITILER_PGSTAC_CACHE_", + "env_file": ".env", + "extra": "ignore", + } @model_validator(mode="after") def check_enable(self):