From 246d3d28d785c8ff577a692973a995f6d210d4bb Mon Sep 17 00:00:00 2001 From: M Bussonnier Date: Tue, 17 Dec 2024 10:56:07 +0100 Subject: [PATCH] Bump min Python to 3.9; 3.8 has been EOL for 2+ months. --- .github/actions/base-setup/action.yml | 2 +- .github/workflows/tests.yml | 4 ++-- README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/base-setup/action.yml b/.github/actions/base-setup/action.yml index c4ceb17..df1291c 100644 --- a/.github/actions/base-setup/action.yml +++ b/.github/actions/base-setup/action.yml @@ -23,7 +23,7 @@ runs: if [ $DEPENDENCY_TYPE == "pre" ]; then DEFAULT_PYTHON="3.13" elif [ $DEPENDENCY_TYPE == "minimum" ]; then - DEFAULT_PYTHON="3.8" + DEFAULT_PYTHON="3.9" elif [ $DEPENDENCY_TYPE != "standard" ]; then echo "Unrecognized dependency type $DEPENDENCY_TYPE" exit 1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 09d1826..19492a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.8", "3.12"] + python-version: ["3.9", "3.12"] include: - os: ubuntu-latest python-version: "3.13" @@ -40,7 +40,7 @@ jobs: pip install -e ".[test]" # NOTE: keep the python version in sync with README python --version - python --version | grep "3.8" + python --version | grep "3.9" hatch run check_minimum base_setup_pre: diff --git a/README.md b/README.md index 076e4cb..1970ad4 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ jobs: If you want to use your minimum dependencies, you can use the following option, which will create a constraints file and set the `PIP_CONSTRAINT` environment variable, so that installations will use that file. -By default the Python version will be "3.7", which can be overridden with +By default the Python version will be "3.9", which can be overridden with `python_version`. Note that the environment variable also works if you use virtual environments like `hatch`. Note: this does not work on Windows, and will error.