Skip to content

Commit

Permalink
Update to stac-fastapi 3.0.0a4 (#275)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
jamesfisher-geo authored Jun 29, 2024
1 parent 0db4d61 commit 5d52698
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- 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)

### Changed
- Updated to stac-fastapi 3.0.0a4. [#275](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/275)
- 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)
- 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)

Expand Down
6 changes: 3 additions & 3 deletions stac_fastapi/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"attrs>=23.2.0",
"pydantic[dotenv]",
"stac_pydantic>=3",
"stac-fastapi.types==3.0.0a3",
"stac-fastapi.api==3.0.0a3",
"stac-fastapi.extensions==3.0.0a3",
"stac-fastapi.types==3.0.0a4",
"stac-fastapi.api==3.0.0a4",
"stac-fastapi.extensions==3.0.0a4",
"orjson",
"overrides",
"geojson-pydantic",
Expand Down
3 changes: 2 additions & 1 deletion stac_fastapi/core/stac_fastapi/core/route_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import json
import logging
import os
from typing import List

from fastapi import Depends
from jsonschema import validate
Expand Down Expand Up @@ -156,7 +157,7 @@ def get_route_dependencies(route_dependencies_env: str = "") -> list:
route_dependencies_env = os.environ.get(
"STAC_FASTAPI_ROUTE_DEPENDENCIES", route_dependencies_env
)
route_dependencies: list[tuple] = []
route_dependencies: List[tuple] = []

if not route_dependencies_env:
_LOGGER.info("Authentication skipped.")
Expand Down

0 comments on commit 5d52698

Please sign in to comment.