From 6727568ecca852463804c06b4dfbe2b67cfc3af4 Mon Sep 17 00:00:00 2001 From: Thomas Maschler Date: Tue, 20 Feb 2024 14:28:51 -0500 Subject: [PATCH] keep py38 --- .github/workflows/cicd.yaml | 2 +- CHANGES.md | 1 - pyproject.toml | 2 +- stac_fastapi/api/setup.py | 1 + stac_fastapi/extensions/setup.py | 1 + stac_fastapi/types/setup.py | 1 + stac_fastapi/types/stac_fastapi/types/search.py | 3 ++- 7 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 219d415fa..7d5c0461f 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] timeout-minutes: 20 services: diff --git a/CHANGES.md b/CHANGES.md index fc0a5f1d3..d1fad03f3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,7 +6,6 @@ * Update to pydantic v2 and stac_pydantic v3 * Removed internal Stac, Search and Operator Types in favor of stac_pydantic Types -* Drop support for Python 3.8 ## [2.4.9] - 2023-11-17 diff --git a/pyproject.toml b/pyproject.toml index 3ab78e7fd..08a267798 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,4 +18,4 @@ known-third-party = ["stac_pydantic", "fastapi"] section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] [tool.black] -target-version = ["py39", "py310", "py311", "py312"] +target-version = ["py38", "py39", "py310", "py311", "py312"] diff --git a/stac_fastapi/api/setup.py b/stac_fastapi/api/setup.py index 9afdf49ce..d8ab1a007 100644 --- a/stac_fastapi/api/setup.py +++ b/stac_fastapi/api/setup.py @@ -37,6 +37,7 @@ "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/stac_fastapi/extensions/setup.py b/stac_fastapi/extensions/setup.py index 87258d7e5..0d1b7b113 100644 --- a/stac_fastapi/extensions/setup.py +++ b/stac_fastapi/extensions/setup.py @@ -35,6 +35,7 @@ "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/stac_fastapi/types/setup.py b/stac_fastapi/types/setup.py index 509de601e..9858acac3 100644 --- a/stac_fastapi/types/setup.py +++ b/stac_fastapi/types/setup.py @@ -37,6 +37,7 @@ "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/stac_fastapi/types/stac_fastapi/types/search.py b/stac_fastapi/types/stac_fastapi/types/search.py index 952ce8ee3..4b7ce2bb0 100644 --- a/stac_fastapi/types/stac_fastapi/types/search.py +++ b/stac_fastapi/types/stac_fastapi/types/search.py @@ -3,12 +3,13 @@ """ import abc -from typing import Annotated, Dict, List, Optional +from typing import Dict, List, Optional import attr from pydantic import PositiveInt from pydantic.functional_validators import AfterValidator from stac_pydantic.api import Search +from typing_extensions import Annotated def crop(v: PositiveInt) -> PositiveInt: