From ff616d4f14d1f37b3d1467aa49106c0c447da700 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 3 Dec 2024 23:32:16 +0100 Subject: [PATCH] Backport PR #7528: Bump Python version used on CI --- .github/workflows/build.yml | 13 ++++++------- .github/workflows/buildutils.yml | 2 +- pyproject.toml | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe53675e48..8f36140033 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: fail-fast: false matrix: # used by the jupyterlab/maintainer-tools base-setup action - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout uses: actions/checkout@v4 @@ -121,18 +121,18 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-12, windows-latest] - python: ['3.8', '3.11', '3.12'] + os: [ubuntu-latest, macos-latest, windows-latest] + python: ['3.9', '3.11', '3.13'] include: - - python: '3.8' + - python: '3.9' dist: 'notebook*.tar.gz' - python: '3.11' dist: 'notebook*.whl' - - python: '3.12' + - python: '3.13' dist: 'notebook*.whl' - os: windows-latest py_cmd: python - - os: macos-12 + - os: macos-latest py_cmd: python3 - os: ubuntu-latest py_cmd: python @@ -141,7 +141,6 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - architecture: 'x64' allow-prereleases: true - uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/buildutils.yml b/.github/workflows/buildutils.yml index 50172dacc5..d6ecaed62e 100644 --- a/.github/workflows/buildutils.yml +++ b/.github/workflows/buildutils.yml @@ -74,7 +74,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.10' architecture: 'x64' - name: Install dependencies diff --git a/pyproject.toml b/pyproject.toml index 42533f9c40..cdffe7b299 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,11 +23,11 @@ classifiers = [ "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Programming Language :: Python", - "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", + "Programming Language :: Python :: 3.13", "Typing :: Typed", ] dependencies = [ @@ -229,7 +229,7 @@ source = ["notebook"] [tool.mypy] files = "notebook" -python_version = "3.8" +python_version = "3.9" strict = true enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] warn_unreachable = true