From 60982b4f5c02ca5db6dd597c2eb29f31a9d02918 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Thu, 2 Jan 2025 11:18:14 -0600 Subject: [PATCH] Add tests for python 3.13 --- .github/workflows/build.yml | 4 ++-- .github/workflows/deploy.yml | 2 +- HISTORY.md | 5 ++++- noxfile.py | 2 +- poetry.lock | 2 +- pyinaturalist/__init__.py | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1e2367e..b56b2515 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ on: branches: [main] workflow_dispatch: env: - LATEST_PY_VERSION: '3.11' + LATEST_PY_VERSION: '3.13' COVERAGE_ARGS: '--cov --cov-report=term --cov-report=xml' XDIST_ARGS: '--numprocesses=auto' @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false 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'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6c1e9307..1cba7931 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,7 +14,7 @@ on: required: false default: '' env: - LATEST_PY_VERSION: '3.11' + LATEST_PY_VERSION: '3.13' jobs: # Deploy stable builds on tags only, and pre-release builds from manual trigger ("workflow_dispatch") diff --git a/HISTORY.md b/HISTORY.md index fd6ba70e..4b744c97 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,6 @@ # History -## 0.20.0 (Unreleased) +## 0.20.0 (2025-01-02) ### ⚠️ Deprecations & Removals * Drop support for python 3.7 @@ -26,6 +26,9 @@ ### Bugfixes * Fix `KeyError` when using `create_observation()` in dry-run mode +### Other changes +* Added support for python 3.13 + ## 0.19.0 (2023-12-12) ### New Endpoints diff --git a/noxfile.py b/noxfile.py index 20ed5d95..692bd2fb 100644 --- a/noxfile.py +++ b/noxfile.py @@ -25,7 +25,7 @@ ] -@session(python=['3.8', '3.9', '3.10', '3.11', '3.12']) +@session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']) def test(session): """Run tests for a specific python version""" test_paths = session.posargs or ['test'] diff --git a/poetry.lock b/poetry.lock index 00862ea2..f943dc0e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3211,4 +3211,4 @@ docs = ["furo", "ipython", "linkify-it-py", "matplotlib", "myst-parser", "nbsphi [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "9e0d4a5748f362f1d029ad49792539e45bed70cfb6a98ec790350a024a7716cc" +content-hash = "6012f9fb1520a2c511840073eedda372c5cd6882f4a71a3556e8cea3ed89824a" diff --git a/pyinaturalist/__init__.py b/pyinaturalist/__init__.py index acffd868..b02a705d 100644 --- a/pyinaturalist/__init__.py +++ b/pyinaturalist/__init__.py @@ -1,6 +1,6 @@ # ruff: noqa: F401, F403 # isort: skip_file -__version__ = '0.19.0' +__version__ = '0.20.0' from pyinaturalist.auth import get_access_token from pyinaturalist.client import iNatClient