Skip to content

Commit 5d52698

Browse files
Update to stac-fastapi 3.0.0a4 (#275)
- Update from stac-fastapi 3.0.0a3 to [3.0.0a4](https://github.com/stac-utils/stac-fastapi/releases/tag/3.0.0a4) - Fixed a linting issue when running pre-commit **PR Checklist:** - [x] Code is formatted and linted (run `pre-commit run --all-files`) - [x] Tests pass (run `make test`) - [x] Documentation has been updated to reflect changes, if applicable - [x] Changes are added to the changelog
1 parent 0db4d61 commit 5d52698

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
- Added docker-compose.route_dependencies_env.yml that gives an example using the STAC_FASTAPI_ROUTE_DEPENDENCIES environment variable. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251)
1414

1515
### Changed
16+
- Updated to stac-fastapi 3.0.0a4. [#275](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/275)
1617
- Converted Basic auth to a route dependency and merged with new route depndencies method. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251)
1718
- Updated docker-compose.basic_auth_protected.yml to use STAC_FASTAPI_ROUTE_DEPENDENCIES environment variable. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251)
1819

stac_fastapi/core/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"attrs>=23.2.0",
1111
"pydantic[dotenv]",
1212
"stac_pydantic>=3",
13-
"stac-fastapi.types==3.0.0a3",
14-
"stac-fastapi.api==3.0.0a3",
15-
"stac-fastapi.extensions==3.0.0a3",
13+
"stac-fastapi.types==3.0.0a4",
14+
"stac-fastapi.api==3.0.0a4",
15+
"stac-fastapi.extensions==3.0.0a4",
1616
"orjson",
1717
"overrides",
1818
"geojson-pydantic",

stac_fastapi/core/stac_fastapi/core/route_dependencies.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import json
66
import logging
77
import os
8+
from typing import List
89

910
from fastapi import Depends
1011
from jsonschema import validate
@@ -156,7 +157,7 @@ def get_route_dependencies(route_dependencies_env: str = "") -> list:
156157
route_dependencies_env = os.environ.get(
157158
"STAC_FASTAPI_ROUTE_DEPENDENCIES", route_dependencies_env
158159
)
159-
route_dependencies: list[tuple] = []
160+
route_dependencies: List[tuple] = []
160161

161162
if not route_dependencies_env:
162163
_LOGGER.info("Authentication skipped.")

0 commit comments

Comments
 (0)