Skip to content

Commit 81162c6

Browse files
update stac-fastapi and stac-pydantic requirements (#118)
1 parent 9d5525d commit 81162c6

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

CHANGES.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
## [3.0.0a1] - 2024-05-22
6+
7+
- Update stac-fastapi libraries to `~=3.0.0a1`
8+
- Update stac-pydantic dependency to `==3.1.*`
9+
510
## [3.0.0a0] - 2024-05-10
611

712
### Changed
@@ -308,7 +313,8 @@ As a part of this release, this repository was extracted from the main
308313

309314
- First PyPi release!
310315

311-
[Unreleased]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/3.0.0a0..main>
316+
[Unreleased]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/3.0.0a1..main>
317+
[3.0.0a1]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/3.0.0a0..3.0.0a1>
312318
[3.0.0a0]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/2.5.0..3.0.0a0>
313319
[2.5.0]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/2.4.11..2.5.0>
314320
[2.4.11]: <https://github.com/stac-utils/stac-fastapi-pgstac/compare/2.4.10..2.4.11>

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"attrs",
1010
"orjson",
1111
"pydantic",
12-
"stac_pydantic==3.0.*",
13-
"stac-fastapi.api~=3.0.0a0",
14-
"stac-fastapi.extensions~=3.0.0a0",
15-
"stac-fastapi.types~=3.0.0a0",
12+
"stac_pydantic==3.1.*",
13+
"stac-fastapi.api~=3.0.0a1",
14+
"stac-fastapi.extensions~=3.0.0a1",
15+
"stac-fastapi.types~=3.0.0a1",
1616
"asyncpg",
1717
"buildpg",
1818
"brotli_asgi",

tests/conftest.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,17 @@ async def pgstac(database):
8888
@pytest.fixture(
8989
params=[
9090
# hydratation, prefix
91-
(False, ""),
92-
(False, "/router_prefix"),
93-
(True, ""),
94-
(True, "/router_prefix"),
91+
(False, "", False),
92+
(False, "/router_prefix", False),
93+
(True, "", False),
94+
(True, "/router_prefix", False),
95+
(False, "", True),
96+
(True, "", True),
9597
],
9698
scope="session",
9799
)
98100
def api_client(request, database):
99-
hydrate, prefix = request.param
101+
hydrate, prefix, response_model = request.param
100102

101103
api_settings = Settings(
102104
postgres_user=database.user,
@@ -106,6 +108,7 @@ def api_client(request, database):
106108
postgres_port=database.port,
107109
postgres_dbname=database.dbname,
108110
use_api_hydrate=hydrate,
111+
enable_response_models=response_model,
109112
testing=True,
110113
)
111114

0 commit comments

Comments
 (0)