From 3a9aae60dc2149b492be3534151d33fd3791e51d Mon Sep 17 00:00:00 2001 From: Vincent Sarago Date: Mon, 6 Jan 2025 14:46:24 +0100 Subject: [PATCH] add python 3.13 support (#770) --- .github/workflows/cicd.yaml | 6 +++--- .github/workflows/publish.yml | 2 +- CHANGES.md | 1 + stac_fastapi/api/setup.py | 1 + stac_fastapi/extensions/setup.py | 1 + stac_fastapi/types/setup.py | 1 + 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 3da9d9cdc..5f97b06c2 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.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] timeout-minutes: 20 steps: @@ -24,7 +24,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Lint code - if: ${{ matrix.python-version == 3.8 }} + if: ${{ matrix.python-version == 3.13 }} run: | python -m pip install pre-commit pre-commit run --all-files @@ -63,7 +63,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" - name: Install types run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0de566da..af3876a43 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,4 +27,4 @@ jobs: TWINE_USERNAME: ${{ secrets.PYPI_STACUTILS_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_STACUTILS_PASSWORD }} run: | - scripts/publish \ No newline at end of file + scripts/publish diff --git a/CHANGES.md b/CHANGES.md index 7ff0fe04c..f10a637fd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ * Add `numberMatched` and `numberReturned` properties in `types.stac.ItemCollection` model * Add `numberMatched` and `numberReturned` properties in `types.stac.Collections` model +* Add `python3.13` support ## Changed diff --git a/stac_fastapi/api/setup.py b/stac_fastapi/api/setup.py index 7f4b541f7..14b515e30 100644 --- a/stac_fastapi/api/setup.py +++ b/stac_fastapi/api/setup.py @@ -41,6 +41,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", ], keywords="STAC FastAPI COG", diff --git a/stac_fastapi/extensions/setup.py b/stac_fastapi/extensions/setup.py index cf49b5d0e..e5b2de5c2 100644 --- a/stac_fastapi/extensions/setup.py +++ b/stac_fastapi/extensions/setup.py @@ -38,6 +38,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", ], keywords="STAC FastAPI COG", diff --git a/stac_fastapi/types/setup.py b/stac_fastapi/types/setup.py index a3f18f90f..2d78ee17c 100644 --- a/stac_fastapi/types/setup.py +++ b/stac_fastapi/types/setup.py @@ -40,6 +40,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", ], keywords="STAC FastAPI COG",