From 43ed6a5e21a7c84603b4f72e0a37c239eca35cb2 Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Wed, 5 Jun 2024 12:32:23 -0500 Subject: [PATCH] Adjust CI to only test on python 3.5+ --- .github/workflows/basemap-data-hires.yml | 7 +++---- .github/workflows/basemap-data.yml | 7 +++---- .github/workflows/basemap-for-manylinux.yml | 12 +++++------- .github/workflows/basemap-for-windows.yml | 20 ++++++-------------- 4 files changed, 17 insertions(+), 29 deletions(-) diff --git a/.github/workflows/basemap-data-hires.yml b/.github/workflows/basemap-data-hires.yml index a33ddb14..25b2dd39 100644 --- a/.github/workflows/basemap-data-hires.yml +++ b/.github/workflows/basemap-data-hires.yml @@ -39,7 +39,7 @@ jobs: strategy: matrix: python-version: - ["2.7"] + ["3.5"] max-parallel: 1 needs: checkout runs-on: ubuntu-latest @@ -68,8 +68,7 @@ jobs: strategy: matrix: python-version: - ["2.6", "2.7", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", - "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 3 fail-fast: false needs: build @@ -101,7 +100,7 @@ jobs: strategy: matrix: python-version: - ["2.7"] + ["3.5"] max-parallel: 1 if: startsWith(github.event.ref, 'refs/tags/v') needs: test diff --git a/.github/workflows/basemap-data.yml b/.github/workflows/basemap-data.yml index 629213f3..8bacb633 100644 --- a/.github/workflows/basemap-data.yml +++ b/.github/workflows/basemap-data.yml @@ -39,7 +39,7 @@ jobs: strategy: matrix: python-version: - ["2.7"] + ["3.5"] max-parallel: 1 needs: checkout runs-on: ubuntu-latest @@ -68,8 +68,7 @@ jobs: strategy: matrix: python-version: - ["2.6", "2.7", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", - "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 3 fail-fast: false needs: build @@ -101,7 +100,7 @@ jobs: strategy: matrix: python-version: - ["2.7"] + ["3.5"] max-parallel: 1 if: startsWith(github.event.ref, 'refs/tags/v') needs: test diff --git a/.github/workflows/basemap-for-manylinux.yml b/.github/workflows/basemap-for-manylinux.yml index cdd577b1..9fb2c82a 100644 --- a/.github/workflows/basemap-for-manylinux.yml +++ b/.github/workflows/basemap-for-manylinux.yml @@ -40,7 +40,7 @@ jobs: strategy: matrix: python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 3 fail-fast: false needs: checkout @@ -132,7 +132,7 @@ jobs: arch: ["x64", "x86"] python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 3 fail-fast: false needs: build-geos @@ -164,8 +164,6 @@ jobs: x86) arch="i686" ;; esac case "${{ matrix.python-version }}" in - 2.6|3.[23]) pkgvers=1.11.3; tag=manylinux1 ;; - 2.7|3.[456789]) pkgvers=1.16.6; tag=manylinux1 ;; 3.10) pkgvers=1.21.4; tag=manylinux1 ;; 3.11) pkgvers=1.23.3; tag=manylinux_2_17 ;; *) pkgvers=1.26.1; tag=manylinux_2_28 ;; @@ -213,7 +211,7 @@ jobs: arch: ["x64", "x86"] python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 3 fail-fast: false needs: build @@ -258,7 +256,7 @@ jobs: arch: ["x64", "x86"] python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] exclude: # Missing precompiled binaries for `numpy`, `matplotlib`, # `pyproj`, `pillow` and `lxml`. @@ -413,7 +411,7 @@ jobs: arch: ["x64", "x86"] python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 1 if: startsWith(github.event.ref, 'refs/tags/v') needs: test diff --git a/.github/workflows/basemap-for-windows.yml b/.github/workflows/basemap-for-windows.yml index 92eb337f..4b35b802 100644 --- a/.github/workflows/basemap-for-windows.yml +++ b/.github/workflows/basemap-for-windows.yml @@ -42,7 +42,7 @@ jobs: strategy: matrix: python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 3 fail-fast: false needs: checkout @@ -96,10 +96,8 @@ jobs: arch: ["x64", "x86"] msvc-toolset: - ["9.0", "14.0"] + ["14.0"] include: - - msvc-toolset: "9.0" - python-version: "2.7" - msvc-toolset: "14.0" python-version: "3.5" max-parallel: 4 @@ -148,7 +146,7 @@ jobs: arch: ["x64", "x86"] python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 3 fail-fast: false needs: build-geos @@ -174,8 +172,6 @@ jobs: name: Build old numpy from source run: | Switch -regex ("${{ matrix.python-version }}") { - "^2\.6|3\.[123]$" { Set-Variable -Name "pkgvers" -Value "1.11.3" } - "^2\.7|3\.[456789]$" { Set-Variable -Name "pkgvers" -Value "1.16.6" } "^3\.10$" { Set-Variable -Name "pkgvers" -Value "1.21.4" } "^3\.11$" { Set-Variable -Name "pkgvers" -Value "1.23.3" } default { Set-Variable -Name "pkgvers" -Value "1.26.1" } @@ -185,11 +181,7 @@ jobs: - name: Set MSVC toolset version run: | - if ("${{ matrix.python-version }}" -eq "2.7") { - echo "msvc-toolset=9.0" >> $env:GITHUB_ENV - } else { - echo "msvc-toolset=14.0" >> $env:GITHUB_ENV - } + echo "msvc-toolset=14.0" >> $env:GITHUB_ENV - name: Set MSVC toolset uses: pylegacy/actions/setup-msvc@v2 @@ -223,7 +215,7 @@ jobs: arch: ["x64", "x86"] python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] exclude: # Missing precompiled binaries for `numpy` and `matplotlib`. - arch: "x86" @@ -286,7 +278,7 @@ jobs: arch: ["x64", "x86"] python-version: - ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 1 if: startsWith(github.event.ref, 'refs/tags/v') needs: test