Skip to content

Commit 3b90a5d

Browse files
authored
fix: tests (#1)
* fix: tests * fix: exclude .venv
1 parent 3a5a7e0 commit 3b90a5d

File tree

4 files changed

+38
-10
lines changed

4 files changed

+38
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: astral-sh/setup-uv@v5
1616
- name: Install
17-
run: scripts/install --dev
18-
- name: Copy env file
19-
run: cp .env.local .env
17+
run: uv sync --all-extras
2018
- name: Lint
2119
run: scripts/lint
2220
- name: Test

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
## [0.0.1] - 2025-03-11
10+
11+
Initial release.
12+
13+
[unreleased]: https://github.com/gadomski/antimeridian/compare/v0.0.1...HEAD
14+
[0.0.1]: https://github.com/gadomski/antimeridian/releases/tag/v0.0.1
15+
16+
<!-- markdownlint-disable-file MD024 -->

pyproject.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,25 @@ dependencies = [
1414
"stac-fastapi-types>=5.0.2",
1515
"stacrs==0.5.9",
1616
]
17+
classifiers = [
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
23+
"Development Status :: 1 - Planning",
24+
]
1725

1826
[project.optional-dependencies]
1927
lambda = ["mangum==0.19.0"]
2028
serve = ["uvicorn>=0.34.0"]
2129

30+
[project.urls]
31+
Documentation = "https://stac-utils.github.io/stac-fastapi-geoparquet"
32+
Github = "https://github.com/stac-utils/stac-fastapi-geoparquet"
33+
Issues = "https://github.com/stac-utils/stac-fastapi-geoparquet/issues"
34+
Changelog = "https://github.com/stac-utils/stac-fastapi-geoparquet/blob/main/CHANGELOG.md"
35+
2236
[dependency-groups]
2337
dev = [
2438
"boto3>=1.37.11",
@@ -50,7 +64,7 @@ default-groups = ["dev", "validate", "deploy"]
5064
[tool.mypy]
5165
strict = true
5266
files = ["src/**/*.py", "infrastructure/**/*.py"]
53-
exclude = ["infrastructure/aws/cdk.out/.*"]
67+
exclude = ["infrastructure/aws/cdk.out/.*", ".venv/*"]
5468
plugins = "pydantic.mypy"
5569

5670
[[tool.mypy.overrides]]

src/stac_fastapi/geoparquet/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ class State(TypedDict):
4646

4747
def create_api(settings: Settings | None = None) -> StacApi:
4848
if settings is None:
49-
settings = Settings()
49+
settings = Settings(
50+
stac_fastapi_landing_id="stac-fastapi-geoparquet",
51+
stac_fastapi_title="stac-geoparquet-geoparquet",
52+
stac_fastapi_description="A stac-fastapi server backend by stac-geoparquet",
53+
)
5054

5155
if settings.stac_fastapi_geoparquet_href.endswith(".toml"):
5256
with open(settings.stac_fastapi_geoparquet_href, "rb") as f:
@@ -86,11 +90,7 @@ async def lifespan(app: FastAPI) -> AsyncIterator[State]:
8690
}
8791

8892
api = StacApi(
89-
settings=Settings(
90-
stac_fastapi_landing_id="stac-fastapi-geoparquet",
91-
stac_fastapi_title="stac-geoparquet-geoparquet",
92-
stac_fastapi_description="A stac-fastapi server backend by stac-geoparquet",
93-
),
93+
settings=settings,
9494
client=Client(),
9595
app=FastAPI(
9696
lifespan=lifespan,

0 commit comments

Comments
 (0)