From d58febf2ffb93300dda94fde20c99112f5381108 Mon Sep 17 00:00:00 2001 From: Chris Durbin Date: Mon, 21 Oct 2024 10:57:13 -0400 Subject: [PATCH] HARMONY-1645: Drop support for EOL Python 3.8 and test with 3.12 and 3.13. --- .github/workflows/publish-release.yml | 2 +- .github/workflows/test.yml | 2 +- README.md | 2 +- harmony_service_lib/util.py | 2 -- pyproject.toml | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 75fe629..0392b36 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -13,7 +13,7 @@ jobs: fetch-depth: '0' - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.13' - shell: bash env: VERSION_TAG: ${{ github.event.release.tag_name }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e3f566..1f0b7f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9, '3.10'] + python-version: [3.9, 3.10, 3.11, 3.12, 3.13] steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index 24aaa18..5375b46 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ OPTIONAL -- Use with CAUTION: ## Development Setup Prerequisites: - - Python 3.8+, ideally installed via a virtual environment + - Python 3.9+, ideally installed via a virtual environment - A local copy of the code Install dependencies: diff --git a/harmony_service_lib/util.py b/harmony_service_lib/util.py index af6d695..7e466ee 100644 --- a/harmony_service_lib/util.py +++ b/harmony_service_lib/util.py @@ -49,8 +49,6 @@ alive. MAX_DOWNLOAD_RETRIES: Number of times to retry HTTP download calls that fail due to transient errors. """ -# Remove this import when Python 3.8 is no longer supported -from __future__ import annotations from base64 import b64decode from collections import namedtuple diff --git a/pyproject.toml b/pyproject.toml index 4790673..a29afa3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ dynamic = ["dependencies", "optional-dependencies", "version"] license = { text = "License :: OSI Approved :: Apache Software License" } name = "harmony-service-lib" readme = "README.md" -requires-python = ">= 3.8" +requires-python = ">= 3.9" [project.scripts] harmony-service-lib = "harmony_service_lib.cli.__main__:main"