From ee6af55929933a4b4bd04acc9e4249d973109d09 Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Fri, 22 Mar 2024 13:27:12 -0600 Subject: [PATCH] Test with Python 3.12; set minimum to Python 3.10 --- .github/workflows/build-test-ci.yml | 6 +++--- environment.yml | 2 +- noxfile.py | 2 +- pyproject.toml | 5 ++++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml index b13a478..1bd98e5 100644 --- a/.github/workflows/build-test-ci.yml +++ b/.github/workflows/build-test-ci.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 @@ -46,10 +46,10 @@ jobs: nox -s test --python ${{ matrix.python-version }} - name: Test BMI - if: ${{ matrix.python-version == '3.9' }} + if: ${{ matrix.python-version == '3.12' }} run: | nox -s test-bmi --python ${{ matrix.python-version }} - name: Coveralls - if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' + if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' uses: AndreMiras/coveralls-python-action@develop diff --git a/environment.yml b/environment.yml index b245f00..f2ca7fd 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ name: geotiff channels: - conda-forge dependencies: - - python >=3.9 + - python >=3.10 - pip - pyyaml - rioxarray diff --git a/noxfile.py b/noxfile.py index f8c16ab..880e60a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -10,7 +10,7 @@ HERE = pathlib.Path(__file__) ROOT = HERE.parent PATHS = [PACKAGE, "docs", "examples", "tests", HERE.name] -PYTHON_VERSIONS = ["3.9", "3.10", "3.11"] +PYTHON_VERSIONS = ["3.10", "3.11", "3.12"] @nox.session(python=PYTHON_VERSIONS) diff --git a/pyproject.toml b/pyproject.toml index 5187942..53caf9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,9 @@ keywords = [ license = {text = "MIT License"} classifiers = [ "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Intended Audience :: Developers", @@ -24,7 +27,7 @@ classifiers = [ "Intended Audience :: Education", "Topic :: Scientific/Engineering", ] -requires-python = ">=3.7" +requires-python = ">=3.10" dependencies = [ "numpy", "pyyaml",