Skip to content

Commit 214ff78

Browse files
committed
update from 0.10.1
1 parent 3dd41b3 commit 214ff78

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

CHANGES.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ Note: Minor version `0.X.0` update might break the API, It's recommended to pin
5353

5454
* fix URL in HTML templates when behind proxy
5555

56+
## [0.10.1] - 2025-03-04
57+
58+
* remove `PostgresSettings` initialization from main.py
5659

5760
## [0.10.0] - 2025-02-20
5861

@@ -381,7 +384,8 @@ Note: Minor version `0.X.0` update might break the API, It's recommended to pin
381384

382385
- Initial release
383386

384-
[unreleased]: https://github.com/developmentseed/tipg/compare/0.10.0...HEAD
387+
[unreleased]: https://github.com/developmentseed/tipg/compare/0.10.1...HEAD
388+
[0.10.1]: https://github.com/developmentseed/tipg/compare/0.10.0...0.10.1
385389
[0.10.0]: https://github.com/developmentseed/tipg/compare/0.9.0...0.10.0
386390
[0.9.0]: https://github.com/developmentseed/tipg/compare/0.8.0...0.9.0
387391
[0.8.0]: https://github.com/developmentseed/tipg/compare/0.7.3...0.8.0

tests/conftest.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ def app(database_url, monkeypatch):
166166

167167
monkeypatch.setenv("TIPG_DEBUG", "TRUE")
168168

169-
from tipg.main import app, db_settings, postgres_settings
170-
171-
postgres_settings.database_url = database_url
169+
from tipg.main import app, db_settings
172170

173171
db_settings.only_spatial_tables = False
174172
db_settings.exclude_tables = None

tipg/main.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111
from tipg.errors import DEFAULT_STATUS_CODES, add_exception_handlers
1212
from tipg.factory import Endpoints
1313
from tipg.middleware import CacheControlMiddleware, CatalogUpdateMiddleware
14-
from tipg.settings import (
15-
APISettings,
16-
CustomSQLSettings,
17-
DatabaseSettings,
18-
PostgresSettings,
19-
)
14+
from tipg.settings import APISettings, CustomSQLSettings, DatabaseSettings
2015

2116
from fastapi import FastAPI, Request
2217

@@ -25,7 +20,6 @@
2520
from starlette_cramjam.middleware import CompressionMiddleware
2621

2722
settings = APISettings()
28-
postgres_settings = PostgresSettings()
2923
db_settings = DatabaseSettings()
3024
custom_sql_settings = CustomSQLSettings()
3125

@@ -39,7 +33,6 @@ async def lifespan(app: FastAPI):
3933
schemas=db_settings.schemas,
4034
tipg_schema=db_settings.tipg_schema,
4135
user_sql_files=custom_sql_settings.sql_files,
42-
settings=postgres_settings,
4336
)
4437

4538
# Register Collection Catalog

0 commit comments

Comments
 (0)