From 1837bc8236fdf884ad07e8067cccb40ab0cd85a0 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Tue, 20 Feb 2024 14:14:45 +0100 Subject: [PATCH] Verify support for Python 3.12 --- .github/workflows/linkcheck.yaml | 2 +- .github/workflows/publish.yaml | 4 ++-- .github/workflows/test.yaml | 6 +++--- CONTRIBUTING.md | 2 +- pyproject.toml | 5 +---- 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/linkcheck.yaml b/.github/workflows/linkcheck.yaml index d9d26203..96cf9040 100644 --- a/.github/workflows/linkcheck.yaml +++ b/.github/workflows/linkcheck.yaml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install deps run: pip install -r docs/requirements.txt diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5568e64d..69f41802 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -36,7 +36,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - uses: actions/setup-node@v4 with: @@ -90,7 +90,7 @@ jobs: steps: - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Download artifacts from build uses: actions/download-artifact@v3 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 74195ca5..1db47abf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -37,7 +37,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - uses: actions/setup-node@v4 with: @@ -71,13 +71,13 @@ jobs: fail-fast: false matrix: os: [ubuntu-22.04, windows-2022] - python-version: ["3.8", "3.11"] + python-version: ["3.8", "3.12"] pip-extras: ["lab", "classic"] exclude: # windows should work for all test variations, but a limited selection # is run to avoid doubling the amount of test runs - os: windows-2022 - python-version: "3.11" + python-version: "3.12" pip-extras: classic - os: windows-2022 python-version: "3.8" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 020fc417..44203b4c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,7 +25,7 @@ For example, after installing [`mambaforge`](https://conda-forge.org/miniforge), create a new environment with all heavy development and test dependencies: ```yaml -mamba create --name=jupyter-server-proxy --channel=conda-forge "python=3.11" "nodejs=20" pip git geckodriver firefox +mamba create --name=jupyter-server-proxy --channel=conda-forge "python=3.12" "nodejs=20" pip git geckodriver firefox mamba activate jupyter-server-proxy ``` diff --git a/pyproject.toml b/pyproject.toml index 37fe1119..8f9f489b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,10 +40,6 @@ classifiers = [ "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", ] dependencies = [ "aiohttp", @@ -150,6 +146,7 @@ target_version = [ "py39", "py310", "py311", + "py312", ] extend-exclude = 'contrib\/template\/'