Skip to content

Commit

Permalink
DEP: Drop Python 3.8 support (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Mar 3, 2023
1 parent ae6635a commit f847ace
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ 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
shell: bash
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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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']
Expand Down Expand Up @@ -138,15 +138,15 @@ jobs:
conda info
- name: pylint
if: matrix.python-version == '3.8'
if: matrix.python-version == '3.9'
shell: bash
run: |
source activate test
pylint rioxarray/
- name: mypy
shell: bash
if: matrix.python-version == '3.8'
if: matrix.python-version == '3.9'
run: |
source activate test
mypy rioxarray/
Expand Down Expand Up @@ -177,15 +177,15 @@ 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
shell: bash
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 \
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

environment:
matrix:
- PYTHON_VERSION: "3.8"
- PYTHON_VERSION: "3.9"
MINICONDA: "C:\\Miniconda3-x64"

install:
Expand Down
1 change: 1 addition & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ History

Latest
------
- DEP: Drop Python 3.8 support (issue #582)

0.13.4
------
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.8
python_version = 3.9

[mypy-affine]
ignore_missing_imports = True
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f847ace

Please sign in to comment.