From 17a4c17e52a919547d65d1c55983e2a3c95211b6 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Tue, 2 Jan 2024 14:53:18 -0600 Subject: [PATCH] Bump minimum Python from 3.8 to 3.9; add 3.12 to CIs (#1610) drop py3.8, add py3.12 --- .github/workflows/prerelease.yml | 2 +- .github/workflows/tests.yml | 26 +++++++++++++------------- pyproject.toml | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 94d189281..967322248 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c7e4a7181..05322bbd4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.11"] + python-version: ["3.12"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -44,22 +44,22 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] sphinx-version: [""] include: # macos test - os: macos-latest - python-version: "3.11" + python-version: "3.12" # windows test - os: windows-latest - python-version: "3.11" + python-version: "3.12" # old Sphinx test - os: ubuntu-latest - python-version: "3.8" + python-version: "3.9" sphinx-version: "old" # dev Sphinx test - os: ubuntu-latest - python-version: "3.11" + python-version: "3.12" sphinx-version: "dev" # needed to cache the browsers for the accessibility tests env: @@ -93,7 +93,7 @@ jobs: - name: Run tests run: pytest -m "not a11y" --color=yes --cov --cov-report=xml - name: Upload to Codecov - if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' + if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -111,7 +111,7 @@ jobs: ${{ runner.os }}-pw- - name: Run accessibility tests with playwright - if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' + if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' run: | nox -s a11y continue-on-error: true @@ -123,14 +123,14 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.11"] + python-version: ["3.12"] sphinx-version: [""] include: - os: ubuntu-latest - python-version: "3.8" + python-version: "3.9" sphinx-version: "old" - os: ubuntu-latest - python-version: "3.11" + python-version: "3.12" sphinx-version: "dev" env: SPHINX_VERSION: ${{ matrix.sphinx-version }} @@ -162,7 +162,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.11"] + python-version: ["3.12"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -205,7 +205,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.11"] + python-version: ["3.12"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index e26df6287..8d674125d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ name = "pydata-sphinx-theme" description = "Bootstrap-based Sphinx theme from the PyData community" dynamic = ["version"] readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" dependencies = [ "sphinx>=5.0", "beautifulsoup4", @@ -36,10 +36,10 @@ maintainers = [ classifiers = [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Framework :: Sphinx", "Framework :: Sphinx :: Theme", "License :: OSI Approved :: BSD License",