Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-maschler committed Apr 4, 2024
1 parent 7208dd7 commit e24351a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 13 deletions.
13 changes: 9 additions & 4 deletions stac_fastapi/api/setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
"""stac_fastapi: api module."""

from distutils.util import convert_path

from setuptools import find_namespace_packages, setup

main_ns = {}
ver_path = convert_path("stac_fastapi/api/version.py")
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)

with open("README.md") as f:
desc = f.read()

install_requires = [
"attrs",
"pydantic[dotenv]>=2",
"stac_pydantic>=3",
"brotli_asgi",
"stac-fastapi.types",
f"stac-fastapi.types=={main_ns['__version__']}",
]

extra_reqs = {
Expand Down Expand Up @@ -54,4 +58,5 @@
install_requires=install_requires,
tests_require=extra_reqs["dev"],
extras_require=extra_reqs,
version=main_ns["__version__"],
)
8 changes: 6 additions & 2 deletions stac_fastapi/api/tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""Implement all read_only methods of BaseCoreClient
and test all GET endpoints of the API"""

import importlib
import os
from datetime import datetime
Expand Down Expand Up @@ -30,8 +33,9 @@ def cleanup():
("False", dict),
],
)
def test_app(validate, response_type, collection_dict, item_dict, cleanup):
os.environ["VALIDATE_RESPONSE"] = str(validate)
def test_app(validate, response_type, collection_dict, item_dict, cleanup, monkeypatch):
monkeypatch.setenv("VALIDATE_RESPONSE", validate)

importlib.reload(response_model)
importlib.reload(core)

Expand Down
16 changes: 11 additions & 5 deletions stac_fastapi/extensions/setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
"""stac_fastapi: extensions module."""

from distutils.util import convert_path

from setuptools import find_namespace_packages, setup

main_ns = {}
ver_path = convert_path("stac_fastapi/extensions/version.py")
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)


with open("README.md") as f:
desc = f.read()

install_requires = [
"attrs",
"pydantic[dotenv]>=2",
"stac_pydantic>=3",
"stac-fastapi.types",
"stac-fastapi.api",
f"stac-fastapi.types=={main_ns['__version__']}",
f"stac-fastapi.api=={main_ns['__version__']}",
]

extra_reqs = {
Expand Down Expand Up @@ -52,4 +57,5 @@
install_requires=install_requires,
tests_require=extra_reqs["dev"],
extras_require=extra_reqs,
version=main_ns["__version__"],
)
11 changes: 9 additions & 2 deletions stac_fastapi/types/setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
"""stac_fastapi: types module."""

from distutils.util import convert_path

from setuptools import find_namespace_packages, setup

main_ns = {}
ver_path = convert_path("stac_fastapi/types/version.py")
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)

with open("README.md") as f:
desc = f.read()

install_requires = [
"fastapi>=0.100.0",
"attrs",
"pydantic[dotenv]>=2",
"attrs>=23.2.0",
"pydantic-settings>=2",
"stac_pydantic>=3",
"pystac==1.*",
Expand Down Expand Up @@ -54,4 +60,5 @@
install_requires=install_requires,
tests_require=extra_reqs["dev"],
extras_require=extra_reqs,
version=main_ns["__version__"],
)

0 comments on commit e24351a

Please sign in to comment.