Skip to content

Commit d58cd44

Browse files
committed
remove pypgstac dependency
1 parent 202b8a2 commit d58cd44

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/cicd.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
- name: Install dependencies
4545
run: |
4646
python -m pip install --upgrade pip
47-
python -m pip install .[dev,server,validation]
48-
python -m pip install "pypgstac==${{ matrix.pypgstac }}"
47+
python -m pip install .[dev,server,validation] "pypgstac==${{ matrix.pypgstac }}"
4948
5049
- name: Run test suite
5150
run: python -m pytest --cov stac_fastapi.pgstac --cov-report xml --cov-report term-missing

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ build.out
126126

127127
# Virtualenv
128128
venv
129+
.venv
129130

130131
# IDE
131132
.vscode

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"buildpg",
1717
"brotli_asgi",
1818
"cql2>=0.3.6",
19-
"pypgstac>=0.8,<0.10",
19+
"hydraters>=0.1.3",
2020
"typing_extensions>=4.9.0",
2121
"jsonpatch>=1.33.0",
2222
"json-merge-patch>=0.3.0",
@@ -25,7 +25,7 @@
2525
extra_reqs = {
2626
"dev": [
2727
"pystac[validation]",
28-
"pypgstac[psycopg]==0.9.*",
28+
"pypgstac[psycopg]>=0.8,<0.10",
2929
"pytest-postgresql",
3030
"pytest",
3131
"pytest-cov",

stac_fastapi/pgstac/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from buildpg import render
1212
from cql2 import Expr
1313
from fastapi import HTTPException, Request
14+
from hydraters import hydrate
1415
from pydantic import ValidationError
15-
from pypgstac.hydration import hydrate
1616
from stac_fastapi.api.models import JSONResponse
1717
from stac_fastapi.types.core import AsyncBaseCoreClient, Relations
1818
from stac_fastapi.types.errors import InvalidQueryParameter, NotFoundError

0 commit comments

Comments
 (0)