From f847ace77edd14945f708fc09369993f8cc0eafc Mon Sep 17 00:00:00 2001 From: "Alan D. Snow" Date: Fri, 3 Mar 2023 14:46:08 -0600 Subject: [PATCH] DEP: Drop Python 3.8 support (#641) --- .github/workflows/build_docs.yaml | 4 ++-- .github/workflows/release.yaml | 2 +- .github/workflows/tests.yaml | 18 +++++++++--------- CONTRIBUTING.rst | 2 +- Dockerfile | 2 +- appveyor.yml | 2 +- docs/history.rst | 1 + mypy.ini | 2 +- setup.cfg | 3 +-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 088676cc..50d60a4b 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -23,7 +23,7 @@ jobs: - name: Setup Conda uses: s-weigand/setup-conda@v1 with: - python-version: 3.8 + python-version: 3.9 conda-channels: conda-forge - name: Install and Build @@ -31,7 +31,7 @@ jobs: run: | conda config --prepend channels conda-forge conda config --set channel_priority strict - conda create -n docs python=3.8 rasterio xarray scipy pyproj pandoc + conda create -n docs python=3.9 rasterio xarray scipy pyproj pandoc source activate docs python -m pip install -e .[doc] sphinx-build -b html docs/ docs/_build/ diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5e90562c..e368ab68 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.9' - name: Install dependencies run: | diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index aaf40aed..8259a8d9 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,23 +32,23 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11'] rasterio-version: [''] xarray-version: [''] run-with-scipy: ['YES'] gdal-version: ['3.6.1'] include: - - python-version: '3.8' + - python-version: '3.9' rasterio-version: '' xarray-version: '==0.17' run-with-scipy: 'YES' gdal-version: '3.4.3' - - python-version: '3.8' + - python-version: '3.9' rasterio-version: '==1.1' xarray-version: '' run-with-scipy: 'YES' gdal-version: '3.4.3' - - python-version: '3.8' + - python-version: '3.9' rasterio-version: '==1.2.1' xarray-version: '' run-with-scipy: 'YES' @@ -104,7 +104,7 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11'] rasterio-version: ['*'] xarray-version: ['*'] run-with-scipy: ['YES'] @@ -138,7 +138,7 @@ jobs: conda info - name: pylint - if: matrix.python-version == '3.8' + if: matrix.python-version == '3.9' shell: bash run: | source activate test @@ -146,7 +146,7 @@ jobs: - name: mypy shell: bash - if: matrix.python-version == '3.8' + if: matrix.python-version == '3.9' run: | source activate test mypy rioxarray/ @@ -177,7 +177,7 @@ jobs: - name: Setup Conda uses: s-weigand/setup-conda@v1 with: - python-version: 3.8 + python-version: 3.9 conda-channels: conda-forge - name: Install Env @@ -185,7 +185,7 @@ jobs: run: | conda config --prepend channels conda-forge conda config --set channel_priority strict - conda create -n test python=3.8 proj libgdal cython netcdf4 + conda create -n test python=3.9 proj libgdal cython netcdf4 source activate test python -m pip install \ --index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple \ diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index cdde18f4..15178659 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -135,7 +135,7 @@ Before you submit a pull request, check that it meets these guidelines: 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst. -3. The pull request should work for Python 3.8-3.10. +3. The pull request should work for Python 3.9-3.11. Tips ---- diff --git a/Dockerfile b/Dockerfile index d0d4a42c..1effa5f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG GDAL=ubuntu-full-3.6.1 FROM osgeo/gdal:${GDAL} -ARG PYTHON_VERSION="3.8" +ARG PYTHON_VERSION="3.9" ENV LANG="C.UTF-8" ENV LC_ALL="C.UTF-8" ENV PIP_NO_BINARY="rasterio" diff --git a/appveyor.yml b/appveyor.yml index d1a8760b..03f37610 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,7 +4,7 @@ environment: matrix: - - PYTHON_VERSION: "3.8" + - PYTHON_VERSION: "3.9" MINICONDA: "C:\\Miniconda3-x64" install: diff --git a/docs/history.rst b/docs/history.rst index add1e03e..357da243 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -3,6 +3,7 @@ History Latest ------ +- DEP: Drop Python 3.8 support (issue #582) 0.13.4 ------ diff --git a/mypy.ini b/mypy.ini index dc19f7ab..2df744a3 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.8 +python_version = 3.9 [mypy-affine] ignore_missing_imports = True diff --git a/setup.cfg b/setup.cfg index b391ab43..cb71c9e4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,7 +17,6 @@ classifiers = Operating System :: OS Independent Topic :: Scientific/Engineering :: GIS Programming Language :: Python - Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 @@ -31,7 +30,7 @@ download_url = http://python.org/pypi/rioxarray packages = find: zip_safe = False # https://mypy.readthedocs.io/en/stable/installed_packages.html include_package_data = True -python_requires = >=3.8 +python_requires = >=3.9 install_requires = packaging rasterio>=1.1.1