From e3eed9e89b669db8289dd24bbd7cca69a6a9addd Mon Sep 17 00:00:00 2001 From: Daniele Nerini Date: Tue, 20 Aug 2024 17:06:30 +0200 Subject: [PATCH] Drop python 3.9, support python 3.12 (#422) * Drop python 3.9, supoprt python 3.12 * Fix syntax --- .github/workflows/check_black.yml | 4 ++-- .github/workflows/test_pysteps.yml | 2 +- ci/ci_test_env.yml | 2 +- doc/source/user_guide/install_pysteps.rst | 2 +- environment.yml | 2 +- environment_dev.yml | 2 +- requirements_dev.txt | 2 +- setup.py | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check_black.yml b/.github/workflows/check_black.yml index ebfe07385..41e1ca6ff 100644 --- a/.github/workflows/check_black.yml +++ b/.github/workflows/check_black.yml @@ -22,10 +22,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: "3.10" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/test_pysteps.yml b/.github/workflows/test_pysteps.yml index 749dbc6ee..092147880 100644 --- a/.github/workflows/test_pysteps.yml +++ b/.github/workflows/test_pysteps.yml @@ -20,7 +20,7 @@ jobs: fail-fast: false matrix: os: [ "ubuntu-latest", "macos-latest", "windows-latest" ] - python-version: ["3.9", "3.11"] + python-version: ["3.10", "3.12"] max-parallel: 6 defaults: diff --git a/ci/ci_test_env.yml b/ci/ci_test_env.yml index 289f7c245..4c0b8732f 100644 --- a/ci/ci_test_env.yml +++ b/ci/ci_test_env.yml @@ -4,7 +4,7 @@ channels: - conda-forge - defaults dependencies: - - python>=3.9 + - python>=3.10 - pip - mamba # Minimal dependencies diff --git a/doc/source/user_guide/install_pysteps.rst b/doc/source/user_guide/install_pysteps.rst index 8e8e43de6..3561154ab 100644 --- a/doc/source/user_guide/install_pysteps.rst +++ b/doc/source/user_guide/install_pysteps.rst @@ -8,7 +8,7 @@ Dependencies The pysteps package needs the following dependencies -* `python >=3.9, <3.12 `_ (lower or higher versions may work but are not tested). +* `python >=3.10, <3.13 `_ (lower or higher versions may work but are not tested). * `jsonschema `_ * `matplotlib `_ * `netCDF4 `_ diff --git a/environment.yml b/environment.yml index 3f539b2d7..bfa7bfdb8 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge - defaults dependencies: - - python>=3.9 + - python>=3.10 - jsmin - jsonschema - matplotlib diff --git a/environment_dev.yml b/environment_dev.yml index 2e443103a..cf9e34b12 100644 --- a/environment_dev.yml +++ b/environment_dev.yml @@ -4,7 +4,7 @@ channels: - conda-forge - defaults dependencies: - - python>=3.9 + - python>=3.10 - pip - jsmin - jsonschema diff --git a/requirements_dev.txt b/requirements_dev.txt index bd69b2253..84cf372b1 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,5 +1,5 @@ # Base dependencies -python>=3.9 +python>=3.10 numpy opencv-python pillow diff --git a/setup.py b/setup.py index 58b23be59..b5338bbff 100644 --- a/setup.py +++ b/setup.py @@ -94,9 +94,9 @@ "Topic :: Scientific/Engineering :: Hydrology", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Operating System :: OS Independent", ], ext_modules=external_modules,