From 1c9613daf0745793696d2ca5c15d5f5c9a9acfe0 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Wed, 22 May 2024 14:12:29 +0200 Subject: [PATCH] update stac-fastapi and stac-pydantic requirements --- CHANGES.md | 8 +++++++- setup.py | 8 ++++---- tests/conftest.py | 13 ++++++++----- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7b5dd70..323c1c7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,11 @@ ## [Unreleased] +## [3.0.0a1] - 2024-05-22 + +- Update stac-fastapi libraries to `~=3.0.0a1` +- Update stac-pydantic dependency to `==3.1.*` + ## [3.0.0a0] - 2024-05-10 ### Changed @@ -308,7 +313,8 @@ As a part of this release, this repository was extracted from the main - First PyPi release! -[Unreleased]: +[Unreleased]: +[3.0.0a1]: [3.0.0a0]: [2.5.0]: [2.4.11]: diff --git a/setup.py b/setup.py index 17eda30..2dfc728 100644 --- a/setup.py +++ b/setup.py @@ -9,10 +9,10 @@ "attrs", "orjson", "pydantic", - "stac_pydantic==3.0.*", - "stac-fastapi.api~=3.0.0a0", - "stac-fastapi.extensions~=3.0.0a0", - "stac-fastapi.types~=3.0.0a0", + "stac_pydantic==3.1.*", + "stac-fastapi.api~=3.0.0a1", + "stac-fastapi.extensions~=3.0.0a1", + "stac-fastapi.types~=3.0.0a1", "asyncpg", "buildpg", "brotli_asgi", diff --git a/tests/conftest.py b/tests/conftest.py index dcd5d54..b3f569d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -88,15 +88,17 @@ async def pgstac(database): @pytest.fixture( params=[ # hydratation, prefix - (False, ""), - (False, "/router_prefix"), - (True, ""), - (True, "/router_prefix"), + (False, "", False), + (False, "/router_prefix", False), + (True, "", False), + (True, "/router_prefix", False), + (False, "", True), + (True, "", True), ], scope="session", ) def api_client(request, database): - hydrate, prefix = request.param + hydrate, prefix, response_model = request.param api_settings = Settings( postgres_user=database.user, @@ -106,6 +108,7 @@ def api_client(request, database): postgres_port=database.port, postgres_dbname=database.dbname, use_api_hydrate=hydrate, + enable_response_models=response_model, testing=True, )